ROX-31023: arm64 support for operator images (2nd)#17140
Conversation
|
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
Blocking issues:
- An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. (link)
- An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. (link)
General comments:
- Double-check that the
push_operator_multiarch_manifests.archsmatrix value matches what yourpush_operator_manifest_listsscript expects (CSV vs array) so it actually pushes all arches correctly. - You’re only running operator unit tests on amd64—consider using QEMU to run them on arm64 too so you catch any arch-specific failures earlier.
- There’s a lot of duplicated logic for determining
push_contextand pushing images/manifests; consider extracting that into a shared CI function or action to reduce boilerplate.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Double-check that the `push_operator_multiarch_manifests.archs` matrix value matches what your `push_operator_manifest_lists` script expects (CSV vs array) so it actually pushes all arches correctly.
- You’re only running operator unit tests on amd64—consider using QEMU to run them on arm64 too so you catch any arch-specific failures earlier.
- There’s a lot of duplicated logic for determining `push_context` and pushing images/manifests; consider extracting that into a shared CI function or action to reduce boilerplate.
## Individual Comments
### Comment 1
<location> `.github/workflows/build.yaml:604` </location>
<code_context>
uses: docker/setup-buildx-action@v3
</code_context>
<issue_to_address>
**security (yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha):** An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
*Source: opengrep*
</issue_to_address>
### Comment 2
<location> `.github/workflows/build.yaml:645` </location>
<code_context>
uses: docker/setup-qemu-action@v3
</code_context>
<issue_to_address>
**security (yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha):** An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
*Source: opengrep*
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Images are ready for the commit at d15f81d. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #17140 +/- ##
==========================================
- Coverage 48.84% 48.83% -0.01%
==========================================
Files 2717 2717
Lines 203231 203231
==========================================
- Hits 99261 99253 -8
- Misses 96154 96159 +5
- Partials 7816 7819 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Keeping it like this for now for consistency reasons.
This is another attempt at #16915, which got reverted during CI failures on master.
The problems occurring on master before looked like this:
So, on master merges we were missing the "latest" tags for the arch-specific operator images.
Commit d7b0dee addresses this. The rest is the same as the original PR, just rebased on current master.