Upgrade to 10.4 PR decoration won't post now to Github Enterprise

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Developer Edition
    Version 10.4.1 (build 88267)

  • how is SonarQube deployed: zip, Docker, Helm - Helm

  • what are you trying to achieve -

  • what have you tried so far to achieve this

We have upgraded but we cannot get the status checks to report back. We have re-keyed the github app to the sonarqube config but checks still will not report. We cannot find anything in the logs showing a failure in githbub OR sonar, even after setting the logs to DEBUG. Any help on how this works or how to troubleshoot further is very appreciated.

Hi,

Welcome to the community!

It’s not clear to me what’s not happening.

Which logs are you checking? If this is about PR decoration, I would expect it to show up in ce.log.

 
Ann

1 Like

Thanks,
Not much in the ce.log but found this in the access.log

172.26.196.254 - - [25/Jun/2024:16:02:50 +0000] "GET /api/system/health HTTP/1.1" 200 - "-" "Wget" "44a2002e-90cc-4424-961b-635864fdf105" 6

172.26.196.254 - - [25/Jun/2024:16:02:51 +0000] "GET /api/system/health HTTP/1.1" 200 - "-" "Wget" "916cbfa8-4a26-46b8-ba6b-1ffc15d27445" 6

172.26.200.13 - - [25/Jun/2024:16:02:52 +0000] "POST /api/ce/submit?projectKey=supply-chain-integration%3Awms-api&projectName=supply-chain-integration%2Fwms-api&characteristic=pullRequest%3D565 HTTP/1.1" 200 76 "-" "ScannerCLI/4.7.0.2747" "c3d48a56-6f12-4f63-9e34-adfe0e6679db" 60

172.26.196.254 - - [25/Jun/2024:16:02:52 +0000] "GET /api/system/health HTTP/1.1" 200 - "-" "Wget" "03867c0d-8f48-4b54-af98-53cf6a8d7541" 6

172.26.196.254 - - [25/Jun/2024:16:02:53 +0000] "GET /api/system/health HTTP/1.1" 200 - "-" "Wget" "c252cb1b-f856-4848-88bb-8f1a49764aff" 43

172.26.196.254 - - [25/Jun/2024:16:02:53 +0000] "GET /api/system/health HTTP/1.1" 200 - "-" "Wget" "9df46937-d1f1-4d5d-a73d-07a0e3f3b995" 45

and in the web log:

2024.06.25 13:03:09 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@6bca0a19 is alive

2024.06.25 13:03:22 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - Before cleanup stats (total=10, active=0, idle=10, waiting=0)

2024.06.25 13:03:22 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - After cleanup stats (total=10, active=0, idle=10, waiting=0)

2024.06.25 13:03:22 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled (queueDepth=0).

2024.06.25 13:03:25 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@17ec64bf is alive

2024.06.25 13:03:29 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@3da6777 is alive

2024.06.25 13:03:37 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@1d140fcf is alive

2024.06.25 13:03:38 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@771363ae is alive

2024.06.25 13:03:52 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - Before cleanup stats (total=10, active=0, idle=10, waiting=0)

2024.06.25 13:03:52 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - After cleanup stats (total=10, active=0, idle=10, waiting=0)

2024.06.25 13:03:52 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled (queueDepth=0).

2024.06.25 13:03:57 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@13d3f21d is alive

2024.06.25 13:03:57 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@5174c567 is alive

2024.06.25 13:04:07 DEBUG web[][c.z.h.p.HikariPool] HikariPool-1 - keepalive: connection org.postgresql.jdbc.PgConnection@15bc5efc is alive

None of this points to the PR decoration not working…

Does anyone know how it works within the github app to github enterprise. We re-keyed the app and it is working for running the sonar scans, we’re just not getting the PR decoration back.

It was working pre-upgrade on 9.9 and we went to 10.4

Hi,

To be clear, you were on 9.9 and it worked fine. And then you upgraded to 10.4 (BTW 10.6 was just released) and it stopped working? Upgrade shouldn’t have had any effect on this.

Can you double-check your GitHub configuration? Administration → DevOps Platform Integrations → GitHub → Check configuration?

 
Thx,
Ann

1 Like

That is correct, it just stopped working. The code scans work but we are just not getting the PR decoration back. i did re-key the devops platform integration twice and still no change. I hvae not removed the github app and recreated because I dont want to interrupt the working parts of the system. I’m just not sure what else to check to find why this isn’t working…

Hi,

Did you try the Check configuration button? It’s okay?

And what do you see at the Project level for DevOps configuration?

 
Ann