Skip to content

Conversation

@tomasz-tylenda-sonarsource
Copy link
Contributor

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource commented Oct 2, 2025

SONARXML-259

Also merge Linux and Windows builds into one job with matrix strategy and clean up action versions.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Migrate ruling tasks to GitHub actions SONARXML-259 Migrate ruling tasks to GitHub actions Oct 2, 2025
@sonarqube-next
Copy link

sonarqube-next bot commented Oct 3, 2025

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@github-actions
Copy link
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions bot added the stale label Oct 11, 2025
@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource force-pushed the tt/gha-ruling branch 3 times, most recently from a1543af to 5c209c5 Compare October 15, 2025 13:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Migrates separate Linux/Windows build and QA workflows into consolidated matrix-driven jobs and adds ruling test execution in GitHub Actions. Key updates modernize action versions and unify deployment logic.

  • Merge build-linux and build-windows into a single matrix build job with conditional deploy
  • Introduce unified qa matrix covering plugin and ruling test suites across runners and SQ versions
  • Update pinned action versions (checkout v5.0.0, mise-action v3.2.0) and adjust Maven invocation to use env-driven parameters

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <[email protected]>
Copy link

@Seppli11 Seppli11 left a comment

Choose a reason for hiding this comment

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

Overall, the ruling implementation looks good to me.

While this isn't the focus of this PR, the windows build running on master would deploy (see here). I still approved since this was behavior was already present before.

needs:
- get-build-number
- build-linux
- build

Choose a reason for hiding this comment

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

nitpick: Depending on how the two builds are scheduled and how long they take, you could have the situation where the qa jobs are waiting to start, even though the relevant build job already finished.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Only one should be deployed, ideally Linux-based one, so Windows ruling should use the result of the the Linux build. I don't see a simple solution, but it's a small problem.

I added a comment.

plugin-qa:
runs-on: github-ubuntu-latest-s # Custom GitHub-hosted runner for public repos
name: Plugin QA (${{ matrix.sq_version }})
qa:

Choose a reason for hiding this comment

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

This might be misnamed since it does both Plugin QA and Ruling

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's intentional for consistency with https://github.com/SonarSource/sonar-ruby/blob/master/.github/workflows/build.yml We could rename it to "its", but I'll leave it for consistency.

@sonarqube-next
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource merged commit 77226e4 into master Oct 15, 2025
21 of 22 checks passed
@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource deleted the tt/gha-ruling branch October 15, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants