-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Build k3s overhaul #12200
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
Build k3s overhaul #12200
Conversation
Seperate git and other version tags, improves caching on binary builds Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
- Build binary using GHA native commands - Use internal setup-go action for e2e.yaml Signed-off-by: Derek Nola <derek.nola@suse.com>
- Be consistent in k3s artifact names - Fix sha256sum CI naming Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
9dbedeb
to
6bb2ca5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12200 +/- ##
===========================================
- Coverage 45.13% 19.81% -25.32%
===========================================
Files 188 184 -4
Lines 19219 19144 -75
===========================================
- Hits 8675 3794 -4881
- Misses 9310 14920 +5610
+ Partials 1234 430 -804
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:
|
Signed-off-by: Derek Nola <derek.nola@suse.com>
@echo "INFO: Building K3s airgap tarball..." | ||
./scripts/package-airgap | ||
|
||
.PHONY: local-ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the new recommended dev workflow is make local-ci
instead of make ci
? Or does the old target still work, at least for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old targets still work, I have not removed Dapper or touched the old build process. But yes, for better performance, I would recommend make local-ci
or whatever subtarget you need for the dev process.
Dapper removal will be a future PR, likely only once we have successfully published a release with these new processes.
Signed-off-by: Derek Nola <derek.nola@suse.com>
73ecd6e
Signed-off-by: Derek Nola <derek.nola@suse.com>
a4a9be6
to
1bded1c
Compare
Thanks, would that make sense to also add |
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
* Add full ci support without Dapper * Seperate git and other version tags, improves caching on binary builds * Use new local targets for build-k3s.yaml workflow * Allow optional ghcr build caching * Build binary using GHA native commands * Use internal setup-go action for e2e.yaml * Add emulation builds to k3s-build.yaml (for arm32 and future riscv64) * Be consistent in k3s artifact names * Fix package/dockerfile warnings * Fix install script for PR installs Signed-off-by: Derek Nola <derek.nola@suse.com>
Proposed Changes
package
andairgap
to theDockerfile.local
, moving closer to achieving parity with the Dapper DockerfileOverhaul of
build_k3s.yaml
GHA workflow:arch
andcache
. Initial support for emulated builds.Types of Changes
CI/Build
Verification
make local-image
ormake local-binary
Performance
Setup is as follows:
Testing
N/A
Linked Issues
#12136
User-Facing Change
Further Comments
Future work is required to achieve nice build emulation times, with an eye on building arm32bit and potential riscv64. Need to look at QEMU emulation cost or implement
xx
usage, possibly with a separate builds stage.