Component "removed title" of pull request '4059' not found

  • ALM used is Bitbucket
  • CI system used is Jenkins
  • NodeJS
  • Error observed “Component “removed title” of pull request ‘4059’ not found”

The build in Bitbucket on our PR shows as failed, but when we follow the link to Sonarcloud we see the listed error. Yes, I am logged in and am the admin of the project. The logs in Jenkins show the build as success. This is not an old build. I am trying to access this within 30 minutes of completion of the build. This is the first time I have had this issue so curious if others have seen this and if there is a solution.

{"task":{"id":"AYqt7QkyrypepdZFLmf5","type":"REPORT","componentId":"AYqt7QknrypepdZFLmf4","componentKey":"redacted","componentName":"redacted","componentQualifier":"TRK","analysisId":"AYqt7QnBFhBamYeQbkAa","status":"SUCCESS","submittedAt":"2023-09-19T16:51:47+0200","submitterLogin":"apibovermyer@bitbucket","startedAt":"2023-09-19T16:51:47+0200","executedAt":"2023-09-19T16:51:48+0200","executionTimeMs":1220,"logs":false,"hasScannerContext":true,"organization":"redacted","pullRequest":"4059","warningCount":0,"warnings":[]}}

Hi,

Welcome to the community!

Where exactly are you seeing the ‘removed title’ error? Where are you seeing this JSON response?

 
Ann

Sorry, the actually error included the full name of my project component name, so I removed it.

The json response is from Jenkins reporting the Sonarscan results. The response shows success but there seems to be no record of it in Sonarcloud despite being a PR run that was only a few minutes old.

Hi,

Thanks for the screenshot. It helps. So now I want to go back to the OP:

Are you saying the build job failed? As in: PR analysis was not submitted to SonarCloud? Or are you saying that your pipeline shows that the PR failed the Qualtiy Gate?

The screenshot is what you see when you click the link in your analysis logs? What happens if you look at the project’s list of PRs? Do you see the PR there?

 
Ann

No it is not present in the project’s list of PRs, it is basically a ghost. The PR shows the failed build in Bitbucket along with other passed builds for the same PR. We are in a monorepo, so it ran 40 scans based on the affected parts of the codebase. 37 PRs passed and are accessible in Sonarcloud, but there are 3 scans that show as failed. Those 3 scan builds are unable to be found or accessed in Sonarcloud despite our Jenkins logs showing the successful scan and the links in Bitbucket.

Hi,

The build agent log says analysis succeeded, but it doesn’t show up at the server. It’s time to check the Adminstration → Background Tasks. At this point, I’m assuming the analysis failed in server-side processing. So you should see a failed task, and find the error under the row’s dots menu.

 
Ann

Ok, that is my first time exploring Background Tasks. Definitely good to know. However, the error doesn’t give me much information.

" There was an issue whilst processing the report. Please contact support with the Project Analysis ID: AYqt7RAAoT0_oNQedQEN."

1 Like

Hi,

With the analysis id at hand, I can flag this for the team. Which is what I’ve done.

 
Ann

Awesome! Thank you @ganncamp , this is my first post and you have been really helpful and I’ve learned something new. Next time I’ll be able to jump straight to the Background Task analysis. Interested to see what your team has to say about the error.

1 Like

Hello,

I checked the analysis “AYqt7RAAoT0_oNQedQEN” and saw that there is an error : Component has been deleted by end-user during analysis, which may happen if the PR is merged and the branch is deleted during analysis.

Well, in this case the PR was still open and could not be merged because the CI system considered the Sonarcloud scan run to be failed which blocks the merge. Could it be something else?

Maybe there was some error during the connection between Bitbucket and Sonarcloud, did you try to rerun the analysis for those PRs?