Portfolio: wrong number of analyzed projects

Hi,

I’m using SonarQube Cloud Enterprise and I have a Portfolio whose definition used an explicit list of component project names.

I updated the portfolio definition to use a regex-based list of components.

The portfolio overview page says the portfolio metrics are based on 13 analyzed components projects (out of 21 total components).

But the number of analyzed components for that portfolio is 14.

Is it another issue related to portfolios?

I can share portfolio and missing component URLs in private, if needed.

Thanks in advance!

Hi,

Perhaps. :sweat_smile:

Can you tell me if the 14th item conforms to your regex? Can you share your regex?

 
Thx,
Ann

Hi @ganncamp,

I can confirm the 14th item conforms to my regex, as it is listed in the portfolio breakdown page (and in that page I can see its analyses overview).

I can share my regex, by I’d prefer to do that privately as it exposes company details I’d prefer to keep private.

Hi,

Okay, so it’s the count that’s off, not what’s in the portfolio.

I’ve flagged this for the team.

 
Thx,
Ann

Hi @ftlvz , we’re starting to investigate this. We are aware of an issue that can cause this to happen for brief periods of time - wanted to check in with you whether you are still seeing this happening in your portfolio?

Hi @christoph.sachse,

at the momento I am NOT seeing the issue happening in the portfolio.

Hi @christoph.sachse, I’m sorry, my previous answer was wrong: I checked again the portfolio and the issue is still happening.

The portfolio overview page says the portfolio metrics are based on 15 analyzed components projects (out of 22 total components), but the number of analyzed components for that portfolio is 16.

Update: I’ve just realized that the component project that is not counted (despite being analyzed) has 0 lines of code (as it contains only JSON files)! That’s strange, but maybe that could be the issue here?

Hi @ftlvz, after some investigation, I don’t see any evidence that an “empty” project, or even one that hasn’t yet been analyzed, would be excluded from the project count.

Could it be that you have a “branch” specified in your portfolio definition that is missing from this project?

@ftlvz I sent you a private message to collect some information that will hopefully help us get to the bottom of these portfolio bugs.