New repo, Error: The last analysis has failed

I’m getting this error on a newly added typescript repo.

I’ve checked Administration | Background Tasks, and none show as failed. This is only happening for one of the two repos I have added.

The only difference is that this project’s primary branch is dev. The project overview shows this banner:

“dev” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.

But under Branches, it’s the only branch showing and is tagged as “main branch”.

As part of debugging, I deleted and re-added this project, only to get similar results.

Analysis status

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: 7e48845a-d6eb-4c59-bc48-ca614bb8f85c.

New PRs are getting assessments, but the main branch still fails.

Hey @yodakramer, welcome to the Community! I had a look at the logs from 7e48845a-d6eb-4c59-bc48-ca614bb8f85c and found something that looks like an issue on our side. I will flag this for the devs to investigate. I will also ask them to investigate the discrepancy between the project branches and the warning you see on the project overview page.

As a workaround while we figure it out, you could use CI-based analysis instead of automatic analysis for this project.

I can try. Let me know when you have a solution - prefer the GitHub App approach.

Any updates on a fix?

Hey @yodakramer, we’ve had a deeper look and found that most likely, your project is causing our Automatic Analysis runtime worker to be killed for excessive resource consumption due to a large project size and extensive git history. For the time being, I would recommend you to try analyzing it via CI analysis. It would be interesting to see if you run into similar kinds of limitations in the CI too.