Skip to content

Conversation

@vvalderrv
Copy link
Contributor

We recreated the SonarCloud project to clear the 404s. This commit fixes the workflow condition by comparing to the string '1', so the Sonar scan step runs and uploads results.

Description

Updates the GHA workflow guard so the Sonar scan actually executes:

  • Change if: inputs.sonar == 1if: inputs.sonar == '1' because inputs.sonar is a string (from workflow_call inputs).

Tests

No unit tests added (CI-only change). Validation: run the “Analysis” workflow and confirm SonarCloud receives results.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite.
  • If I added or modified a C++ API call, I have also amended the corresponding Python bindings.
  • My code follows the prevailing code style of this project.

We recreated the SonarCloud project to clear the 404s.
This commit fixes the workflow condition by comparing to the string '1',
so the Sonar scan step runs and uploads results.

Signed-off-by: Vanessa Valderrama <[email protected]>
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this matters. In the analysis.yml, it's clearly passed as 1, not '1', so isn't an integer comparison going to be fine?

@lgritz
Copy link
Collaborator

lgritz commented Sep 24, 2025

I'm not sure this is necessary. It's been like this for a long time, and the sonar step runs just fine when it's supposed to. (It was crashing in the sonar code itself! But it was not failing to run this step of the workflow.)

Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, even though I don't think it's necessary, its probably correct?

@lgritz lgritz merged commit 2c20370 into AcademySoftwareFoundation:main Sep 24, 2025
33 checks passed
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Sep 27, 2025
We recreated the SonarCloud project to clear the 404s. This commit fixes
the workflow condition by comparing to the string '1', so the Sonar scan
step runs and uploads results.

Updates the GHA workflow guard so the Sonar scan actually executes:
- Change `if: inputs.sonar == 1` → `if: inputs.sonar == '1'` because
`inputs.sonar` is a string (from `workflow_call` inputs).

No unit tests added (CI-only change). Validation: run the “Analysis”
workflow and confirm SonarCloud receives results.

Signed-off-by: Vanessa Valderrama <[email protected]>
@lgritz lgritz added the build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. label Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants