Cloud analysis of github stopped working

Hi,

Since the afternoon of June 18 we have been unable to trigger any analysis on any of our github repos.

Are repos are mostly Typescript and PHP based.

Anyone have any pointers on things to try to get github analysis triggering again?

Hey there.

Are you using Automatic Analysis or CI-based Analysis?

Automatic analysis

That’s certain weird! Is your project still bound correctly? You can check the binding in Your Project > Administration > General Settings > Repository binding .

We don’t have quite the same path, but under…

My Organisation > Administration > Organisation settings

Bind this organization to GitHub
This organization is bound.

What is also odd is that yesterday (morning) a couple (though not all) of our repos did successfully trigger SonarCloud analysis from new PRs.

However today the same repos are NOT triggering SonarCloud analysis.

This is the organization binding. Automatic Analysis will rely on a valid project binding, which you can find in the project-level administration.’

I’m going to double check we don’t have any alerts. I don’t think we do, but it’s worth checking.

At the project level we only have the following options under “Administration”

  • Quality Profiles
  • Quality Gate

It looks like you’re somehow not an admin of this project (either permissions were removed manually, or a permission template isn’t granting you access).

You can restore admin access on the project by going to your organization-level Administration > Projects Management and clicking on the 3 dots next to your project to reveal a Restore Access button.

Once that’s done, you can also double check under your project Administration > Analysis Method that Automatic Analysis is still turned on.

So I have now been granted full admin permissions.

I can confirm each project is showing as bound with the appropriate Github repo

They are also all showing as having “Analysis method” of “Automatic Analysis”

If I toggle “Automatic Analysis” then this does start and run an Analysis of the Main branch.

However creating new PRs, or commits, still does not triggering an Analysis.

I’ve sent you a private message to collect some private details.

Hi @mark1011,

Just to clarify, did the analysis not start at all, or is the pull request decoration on GitHub that is missing?

Could you provide a specific timestamp, commit number, and pull request number where you pushed and it didn’t trigger the analysis?

In the logs, we don’t see anything after June 24. Did you re-push or re-do anything that should trigger an analysis since then?

Hi,

There has been lots of activity across and range of our repos in Github that should have triggered Analysis

It’s starting to look like we are getting a 4 to 5 day delay in Analysis results starting to show up in SonarCloud

Hello,

I’m having the same issue in the last few days. Automatic Analysis no longer runs on my PRs for all of my repositories in the same organization. Has a solution been found?

See fix!: delete workers from non-autoscaling fleets by moorec-aws · Pull Request #124 · aws-deadline/deadline-cloud-test-fixtures · GitHub for a recent PR that has not analysis run.

Strangely, as of this morning (July 4th :roll_eyes:), Automatic Analysis is now being triggered by commits and PRs, and is visible in SonarCloud almost immediately.

And today commits and PRs do NOT seem to be triggering Automatic Analysis at all.

Can you provide an approximate time of when you pushed a commit or opened a PR today? (Or the time of any event that should have triggered the analysis)

PR #437 was created at 2024-07-05 10:33 GMT+1
(this is on the same repo we discussed in the prvt msg)

Actually, I managed to find many GitHub events that were skipped because the Pull Requests are considered external.
Automatic analysis of external Pull Requests is not supported at the moment.

Thank you for the PR number, this one is also marked as external.