-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(umoci)!: umoci's copy buffer set to 1 MiB (#537)
* ci: add rules for 'rel-**' branches Signed-off-by: Ramkumar Chinchani <[email protected]> Signed-off-by: Scott Moser <[email protected]> * chore: Update squashfs dependency, pin squashfs-tools-ng to 1.2 anuvu/squashfs will not currently build with master from squashfs-tools-ng. squashfs-tools-ng has just moved forward with breaking changes to their api. We need to build and use a specific version. Change the squashfs-tools-ng both on the host (.github/workflows/build.yaml) and in the stacker build.yaml file Signed-off-by: Scott Moser <[email protected]> * ci: drop unnecessary build of anuvu/squashfs binary This step is just not necessary, we do not use the 'squashfs' binary for anything. Signed-off-by: Scott Moser <[email protected]> * fix: update build.yaml to address bitrot. This branch has not been built for some time. In that time, alpine container has moved forward, and has caused bitrot. The changes here are all present in main branch's build.yaml. Signed-off-by: Scott Moser <[email protected]> * fix: build.yaml run section needs set -e, and add -x Mostly a cherry-pick of 3134d84 But we do not need the po4a change here as we have an older version of xz. Signed-off-by: Scott Moser <[email protected]> * fix: update and re-enable test "test can read previous version's cache" cherry-pick commments: > below, is original upstream commit message. > Things that have been adjusted for this branch are: > * There is no 're-enable' here as it was not disabled here > * The version to compare against is v0.40.1, the last released > version on this branch. Commit 9671d8f disabled the caching.bats test "test can read previous version's cache". This re-enables that test after updating it to use a specific value (v1.0.0-rc4) as the "previous version". The change to use a specific version and use its released binary improves the test. That improves the test for the following reasons: * This should be faster - we don't have to build stacker twice. * Ultimately testing against the last released version is probably what you want... that is the cache that your users have, not the last development commit. * Building stacker from another version is both slow and hard to guarantee. This removes the assumption that the current build environment can build another version of stacker. * There was assumed knowledge about both the current and other stacker build systems in the 'make LXC_BRANCH=$(grep ...)' command. * The prior version of the test used "current/main" as "previous", but current/main is a moving target. Re-running a checkout at a future point in time may fail as current/main has moved forward. (Think about using 'git bisect' to diagnose a past regression) * Even when working as intended, a series of PRs could still break re-use of the cache. Given PRs A, B, C that all are merged to master. B is tested against A, C is tested against B, but nothing tested C against A. The change here *does* mean the following things are true, which are possibly undesirable: * There is a requirement to update the old version string. v1.0.0-rc4 is an arbitrary value. * The old binary must run in the current build environment. This may be hard to guarantee. I'm honestly not sure if static binary will be more reliable than building and executing a specific old version of source. (cherry picked from commit b4f7294) Signed-off-by: Scott Moser <[email protected]> * fix(umoci)!: umoci's copy buffer set to 1 MiB project-stacker/umoci@89a7ea1 Use updated umoci (project-stacker's fork) to use a 1 MiB copy buffer. This change brings stacker inline with compression parameters used in containers/image libraries and makes them compatible. * test(gzip): add unit tests for gzip (cherry picked from commit 589a648) Signed-off-by: Ramkumar Chinchani <[email protected]> Signed-off-by: Scott Moser <[email protected]> --------- Signed-off-by: Ramkumar Chinchani <[email protected]> Signed-off-by: Scott Moser <[email protected]> Co-authored-by: Ramkumar Chinchani <[email protected]>
- Loading branch information
Showing
12 changed files
with
180 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,11 @@ on: | |
push: | ||
branches: | ||
- main | ||
- rel-** | ||
pull_request: | ||
branches: | ||
- main | ||
- rel-** | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- rel-** | ||
|
||
jobs: | ||
check-commit-message-style: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- rel-** | ||
|
||
permissions: read-all | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.