Skip to content

ROX-29116: (fix) Use ARM GH action workflow runners for ARM builds #2106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

robbycochran
Copy link
Collaborator

@robbycochran robbycochran commented Apr 26, 2025

Description

This reverts the original revert and fixes the error of using a runtime computed value within a job matrix.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

@robbycochran robbycochran added the run-multiarch-builds Run steps for non-x86 archs. label Apr 26, 2025
@robbycochran robbycochran marked this pull request as ready for review April 28, 2025 21:21
@robbycochran robbycochran requested a review from a team as a code owner April 28, 2025 21:21
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @robbycochran - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider extracting the creation of ansible/secrets.yml into a reusable component to avoid duplication between local and remote build jobs.
Here's what I looked at during the review
  • 🟡 General issues: 3 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@robbycochran robbycochran removed the run-multiarch-builds Run steps for non-x86 archs. label Apr 29, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.52%. Comparing base (697c797) to head (192fb64).
Report is 3 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2106      +/-   ##
==========================================
+ Coverage   28.40%   28.52%   +0.11%     
==========================================
  Files          94       94              
  Lines        5717     5757      +40     
  Branches     2531     2547      +16     
==========================================
+ Hits         1624     1642      +18     
- Misses       3383     3393      +10     
- Partials      710      722      +12     
Flag Coverage Δ
collector-unit-tests 28.52% <ø> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Molter73 Molter73 left a comment

Choose a reason for hiding this comment

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

a runtime computed value within a job matrix.

GHA and its tiny little corner cases...

I would recommend adding the run-multiarch-builds label before merging to make sure power and Z build correctly.

Comment on lines 73 to 76
- name: Check arches for local build
if: ${{ ! contains(inputs.architectures, 'ppc64le') }}
id: arch
run: echo "local-exclude=[{\"arch\":\"ppc64le\"}]" >> "$GITHUB_OUTPUT"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not something we need to do as part of this PR, but it might be easier to create the excludes array in the init.yml workflow, then pass it in to the workflows that need it. We could probably replace the architectures input entirely, but that might require some jq magic for us to translate the JSON to strings in the manifest script. I'll look into it after this is merged if you want to ignore this comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agree -- we could also do something similar to stackrox and create a single object with named matrix strategies: https://github.com/stackrox/stackrox/blob/master/.github/workflows/build.yaml#L28

Copy link
Collaborator

@Molter73 Molter73 Apr 30, 2025

Choose a reason for hiding this comment

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

@robbycochran robbycochran added the run-multiarch-builds Run steps for non-x86 archs. label Apr 29, 2025
@robbycochran robbycochran changed the title (fix) ppc64le exclude ROX-29116: (fix) Use ARM GH action workflow runners for ARM builds Apr 30, 2025
Co-authored-by: Mauro Ezequiel Moltrasio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-multiarch-builds Run steps for non-x86 archs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants