Skip to content

Conversation

@raharper
Copy link
Contributor

What type of PR is this?

Which issue does this PR fix:

Building the stacker arm64 binary on arm64 runner has been failing

What does this PR do / Why do we need it:

Adjust where we get build and test images (ECR) which have multi-arch images

If an issue # is not available please add repro steps and logs showing the issue:

#735

Testing done on this change:

Local build on arm64 VM with the PR produces a functional static stacker go binary.

Automation added to e2e:

none

Will this break upgrades or downgrades?

no

Does this PR introduce any user-facing change?:

no


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 10.33%. Comparing base (f727f2b) to head (f13b6a3).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/stacker/convert.go 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (f727f2b) and HEAD (f13b6a3). Click for more details.

HEAD has 41 uploads less than BASE
Flag BASE (f727f2b) HEAD (f13b6a3)
42 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #737       +/-   ##
===========================================
- Coverage   60.43%   10.33%   -50.11%     
===========================================
  Files          59       59               
  Lines        6491     6491               
===========================================
- Hits         3923      671     -3252     
- Misses       1920     5710     +3790     
+ Partials      648      110      -538     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raharper raharper force-pushed the fix/arm64-stacker-build branch from 12f5e11 to e8a3e17 Compare October 19, 2025 21:11
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

- Update install deps script to add some additional packages that
  may not be installed in the arm64 image

- Remove hard-coded amd64/x86_64 binaries and strings
  - use GOARCH to build suffix for binary downloads
  - docker convert should use runtime.GOARCH
    set a default value for PRIVILEDGE_LEVEL for non github runners
  - add additional packages which are dependencies found during
    make check/test
  - invoke make check with the same STACKER_DOCKER_BASE to ensure
    we don't fetch non-GOARCH images
  - fix possible issue with quoted parameter during docker-clock

- Adjust github build workflow for publishing multi-arch
  - Add in maxtrix.platform strategy for 24.04 and 24.04-arm
  - Add a make publish-stacker-bin target which uses GOOS and GOARCH
    to name the stacker binary
  - Add build step to copy stacker to final name for publish
  - Adjust build job name to use defined matrix variable
  - Use matrix.platform and remove / from value

Signed-off-by: Ryan Harper <[email protected]>
@raharper raharper force-pushed the fix/arm64-stacker-build branch from 8ba8092 to f13b6a3 Compare October 19, 2025 23:52
@raharper raharper merged commit e83493b into project-stacker:main Oct 20, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants