Scanner can't find files that were properly indexed?

Test files are found and indexed by scanner. Later on, scanner tries to find these tests, as they are referenced in the xunit report, but fails. The lookup key seems to match.

What could possibly be the cause of this failure?

15:33:25.785 DEBUG: 'tests/test_customized_components/test_drift_metrics.py' indexed as test with language 'py'
...
15:33:33.455 DEBUG: Trying to find a SonarQube resource for test case 'tests.test_customized_components.test_drift_metrics'
15:33:33.460 DEBUG: Using the key 'tests/test_customized_components/test_drift_metrics.py' to lookup the resource in SonarQube
15:33:33.463 DEBUG: Using the key 'tests/test_customized_components.py' to lookup the resource in SonarQube
15:33:33.468 WARN: The resource for 'tests.test_customized_components.test_drift_metrics' is not found, drilling down to the details of this test won't be possible

(Running Sonarqube 9.9.2.77730 locally)

Hi @rafaveguim,

Thank you for your message, and welcome to the Sonar community!

To get a better idea of what the issue is, would it be possible for you to share a bit more details? What do you mean by it fails, do you have any error you could share? Is it possible for you to share the integrality of the output of the scanner, that would help a lot.

Thank you in advance!

Kind regards,
David