Skip to content

SonarCloud Build is failing #12328

Closed

Description

@blakeli0

SonarCloud Build has been failing since the monorepo migration. See recent failure logs.

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Mar 31, 2026
  2. chingor13 commented on Mar 31, 2026

    @chingor13
    Contributor

    We are also missing the SONAR_TOKEN GHA secret

  3. ldetmer commented on Apr 1, 2026

    @ldetmer
    Contributor

    google-cloud-java is using project key googleapis_gapic-generator-java which is associated with this sonar project. This is currently linked with cloud-sdk-platform not google-cloud-java.

    I went to the admin settings to try to update the repository binding, however google-cloud-java is not an available repository.

    When I went to add it, I don't have access in the organization, only @meltsufin is listed as org admin. Mike can you please:

    1. add google-cloud-java as a project we are tracking in sonar cube
    2. either update the repository binding for existing gapic-generator project to point to google-cloud-java OR update the github repo to point to a new sonar project/key for a new google-cloud-java sonar project
  4. meltsufin commented on Apr 6, 2026

    @meltsufin
    Contributor

    I created the google-cloud-java Sonar project and gave @ldetmer and @blakeli0 admin access. Do you have what you need to complete the setup now?

  5. meltsufin commented on Apr 6, 2026

    @meltsufin
    Contributor

    I updated the SONAR_TOKEN in google-cloud-java.
    cc @jinseopkim0

  6. blakeli0 commented on Apr 14, 2026

    @blakeli0
    ContributorAuthor

    This is still failing in recent PRs.

  7. meltsufin commented on Apr 14, 2026

    @meltsufin
    Contributor

    I see an unrelated issue in the log that causing the failure.

    2026-04-14T14:28:47.6900903Z /home/runner/work/_temp/95b0da69-7862-4039-9c79-5ebee6177dc1.sh: line 2: cd: java-showcase: No such file or directory
    
  8. blakeli0 commented on Apr 16, 2026

    @blakeli0
    ContributorAuthor

    Likely due to folder structure changes and caused this line to fail.

  9. chingor13 commented on Apr 16, 2026

    @chingor13
    Contributor

    Fix for the path: https://github.com/googleapis/google-cloud-java/actions/runs/24536086017/job/71731421561?pr=12821

    Getting this error when trying to report:

    [INFO] Loaded core extensions: a3s, architecture, sca
    [INFO] Process project properties
    [INFO] Project key: googleapis_gapic-generator-java
    [INFO] Base dir: /home/runner/work/google-cloud-java/google-cloud-java/sdk-platform-java
    [INFO] Working dir: /home/runner/work/google-cloud-java/google-cloud-java/sdk-platform-java/target/sonar
    [INFO] Found an active CI vendor: 'Github Actions'
    [INFO] Load project branches
    [INFO] Load project branches (done) | time=684ms
    [INFO] Load project settings for component key: 'googleapis_gapic-generator-java'
    [INFO] Load project settings for component key: 'googleapis_gapic-generator-java' (done) | time=700ms
    [INFO] Check ALM binding of project 'googleapis_gapic-generator-java'
    [INFO] Detected project binding: BOUND
    [INFO] Check ALM binding of project 'googleapis_gapic-generator-java' (done) | time=212ms
    [INFO] Load project pull requests
    [INFO] Load project pull requests (done) | time=252ms
    [INFO] Load branch configuration
    [INFO] Github event: pull_request
    [INFO] Auto-configuring pull request 12821
    Error:  Could not find the pullrequest with key '12821'
    
  10. chingor13 commented on Apr 16, 2026

    @chingor13
    Contributor

    Do we need to set up a different project for the google-cloud-java repository?

  11. meltsufin commented on Apr 16, 2026

    @meltsufin
    Contributor

    We shouldn't have a separate sdk-platform-java-sonar.yaml because the main one for the whole repo should collect all of the unit test coverage reports already.

  12. chingor13 commented on Apr 16, 2026

    @chingor13
    Contributor

    main one for the whole repo

    I don't think there was a previous one set up for google-cloud-java

  13. meltsufin commented on Apr 17, 2026

    @meltsufin
    Contributor

    I didn't realize that. We should just set it up for the entire repo unit test build. The project key is googleapis_google-cloud-java.

  14. meltsufin commented on Apr 17, 2026

    @meltsufin
    Contributor

    I didn't realize that. We should just set it up for the entire repo unit test build. The project key is googleapis_google-cloud-java.

    Scratch that for now. I'll first try to remap the old googleapis_gapic-generator-java project to this repo. I've updated the SONAR_TOKEN to one from the googleapis_gapic-generator-java project.

  15. meltsufin commented on Apr 21, 2026

    @meltsufin
    Contributor

    Fixed in #12835.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions