Closed Tsuesun closed 2 weeks ago
We have had the same problem since yesterday (=> ~ 3PM UTC 2nd September).
Is this Github cloud or Github enterprise (self hosted)?
Github cloud in my case
GitHub cloud as well
I'm also having this exact same issue since yesterday and same message on the logs as @Tsuesun
DEBUG logs also show the following:
2024.09.03 06:58:26 DEBUG ce[a3272367-2d70-4e58-a5bd-7e9b1efc433f][c.g.m.s.p.a.g.v.GraphqlGithubClient] Using request: mutation { createCheckRun (input:{conclusion:SUCCESS,output:{summary:"![Passed](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/checks/QualityGateBadge/passed.png)\n\n# Analysis Details\n## 0 Issues\n- [![Bug](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/common/bug.png)](https://redacted.example.org/project/issues?pullRequest=2676&resolved=false&types=BUG&inNewCodePeriod=true&id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7) 0 Bugs\n- [![Vulnerability](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/common/vulnerability.png)](https://redacted.example.org/project/issues?pullRequest=2676&resolved=false&types=VULNERABILITY&inNewCodePeriod=true&id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7) 0 Vulnerabilities\n- [![Code Smell](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/common/code_smell.png)](https://redacted.example.org/project/issues?pullRequest=2676&resolved=false&types=CODE_SMELL&inNewCodePeriod=true&id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7) 0 Code Smells\n\n## Coverage and Duplications\n- [![Coverage](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/checks/CoverageChart/90.png)](https://redacted.example.org/component_measures?id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7&metric=new_coverage&pullRequest=2676&view=list) 93.30% Coverage (97.40% Estimated after merge)\n- [![Duplications](https://raw.githubusercontent.com/mc1arke/sonarqube-community-branch-plugin/master/src/main/resources/static/checks/Duplications/3.png)](https://redacted.example.org/component_measures?id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7&metric=new_duplicated_lines_density&pullRequest=2676&view=list) 0.00% Duplicated Code (0.00% Estimated after merge)\n\n**Project ID:** redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7\n\n[View in SonarQube](https://redacted.example.org/dashboard?id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7&pullRequest=2676)\n\n",annotations:[],title:"Quality Gate success"},completedAt:"2024-09-03T06:58:25Z",detailsUrl:"https://redacted.example.org/dashboard?id=redacted_example_21dfd0aa-349e-4cf0-ae55-811a8f7b56b7&pullRequest=2676",repositoryId:"MDEwOlJlcG9zaXRvcnkyNzI4MDIzMDY=",name:"example Sonarqube Results",startedAt:"2024-09-03T06:57:45Z",externalId:"8daedc9c-d934-48b0-b203-1e3f519295cd",headSha:"dfa29e4b525d4bc97da5fa683775ce4b660430b9",status:COMPLETED}) { clientMutationId checkRun { id } } }
2024.09.03 06:58:26 DEBUG ce[a3272367-2d70-4e58-a5bd-7e9b1efc433f][c.g.m.s.p.a.g.v.GraphqlGithubClient] Received response: GraphQLResponseEntity{errors=[Error{message='Expected string or block string, but it was malformed', locations=[Location{line='1', column='70'}]}], headers=null, response=null}
Same issue here.
We've had the same issue since yesterday
SonarQube Community Edition: v9.9 Plugin: 1.14 Github cloud
We also seen issue since yesterday SonarQube Community Edition: 10.2.1 Plugin version : 1.17.1
Same issue. On-prem SonarQube Community Edition: 10.5.1 Plugin version : 1.19.1 GitHub: Cloud
It's fairly obvious by now that this is a widespread issue. Please strongly consider just adding your thumb to the issue rather than sending these messages to everyone watching the issue.
We found that we had to use block strings """
for multiline text
I've proposed a fix in #961 which works for some local integration tests. It would be useful if anyone who is encountering this issue could try using the snapshot attached to the MRs pipeline to see if the fix resolves their issue. Once I have some confirmation that this works then I'll aim to get a release of the plugin out and the fix back-ported to the LTS-compatible version of the plugin.
I've proposed a fix in #961 which works for some local integration tests. It would be useful if anyone who is encountering this issue could try using the snapshot attached to the MRs pipeline to see if the fix resolves their issue. Once I have some confirmation that this works then I'll aim to get a release of the plugin out and the fix back-ported to the LTS-compatible version of the plugin.
@mc1arke I have tried out the snapshot. I got the snapshot from build / snapshot (17) (pull_request):
Artifact download URL: https://github.com/mc1arke/sonarqube-community-branch-plugin/actions/runs/10690893309/artifacts/1888225789
I upgraded my SonarQube version from 10.5
to 10.6
, then install this snapshot plugin.
It works! 🎉
Thanks! ❤️
Note: At first, I upgraded the plugin from 1.19.0
to the snapshot version on my SonarQube version 10.5
, and I encountered the issue where the ElasticSearch
keeps failing, and I had to restore the SonarQube VM from the backup.
I wonder if it is because the plugin version is not compatible with SonarQube version 10.5
, any idea?
Did the same as @kienw Using docker to run SonarQube and PostgreSQL.
Bumped SonarQube 10.5-community to 10.6-community before applying sonarqube-community-branch-plugin-1.22.0-SNAPSHOT.jar
PR decorations working.
Thank you!
I can also confirm that https://github.com/mc1arke/sonarqube-community-branch-plugin/pull/961 fixes this issue for us on GitHub cloud. Thank you!
FYI, I got this response from Github support
<snip>
Numerous customers have reached out in the last 24 hours highlighting similar behaviour, so we've gone ahead and raised this with our engineering team for further analysis. Hopefully, they'll be able to shed some light on this in the coming days and we'll update you as soon as news becomes available. Marking this case as On-Hold for now as it's sitting with another team to address.
Released in 1.22.0
@mc1arke can this also be released in the LTS supported version which is 1.14.0 please?
if I update sonarqube community edition it will solve this issue? or if I just update to the LTA it will work?
@mc1arke Now the issue got fixed automatically in 9.9LTA and 10.2 versions without updating the plugin. I wonder what is the reason behind this?
Is there something changed on Github side?
https://github.com/mc1arke/sonarqube-community-branch-plugin/issues/959#issuecomment-2330406190
We have not adjusted anything either. GitHub has apparently made adjustments
Describe the bug Github API is returning 'Expected string or block string, but it was malformed' when trying to decorate the PR. This occurred suddenly today.
To Reproduce Steps to reproduce the behavior: Unknown
Expected behavior Github API returns a 200 and pull request decoration completes
Software Versions
Additional context Add any other context about the problem here.