Help with what went wrong: AY6t0GwMauuSMIsS8SlM

The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum and provide the following failing analysis ID: “AY6t0GwMauuSMIsS8SlM”.

As a side note, I’m also having trouble excluding my test directory from the analysis. I have a file. In there, I have:

sonar.sources = src/**/*
sonar.tests = tests/**/*

This runs, but doesn’t exclude tests so I get a lot of spurious issues. I’ve tried “sonar.tests = tests/” but that fails instantly with an analysis ID.

Hi @hal-eisen-MG

The failing analysis and the problem with the test exclusions are related because the analysis failed with this error:

ERROR: File tests/public_benchmark/ldbc/ can't be indexed twice. 
Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

Could you explain what is your project structure, and which directories you’d like to analyze as tests or as main code?

I was able to solve my own problem. I needed to add this line to my

sonar.exclusions = tests/**/*
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.