Repository navigation
K2GO-595 fix(proot-builder): set a fixed date in the kernel matrix VMs - #832
Merged
Merged
Conversation
The 4.4 and 4.15 VMs boot with their clock at 0. A tar made in the first second had mtime 0, which gzip refuses (exit 2), so gzip-tar-roundtrip failed at random (Bins run 6).
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
kernel-matrix/guest-init.sh: the VM sets a fixed date (2026-01-01) before the tests, and theK2GO-KERNELline shows the clock at boot.Why
The 4.4 and 4.15 VMs have no real-time clock: their time starts at 0 (1970-01-01) and moves in 1 s steps. A tar made in the first second gets mtime 0, which gzip refuses (
warning: file timestamp out of range for gzip format, exit 2). Sogzip-tar-roundtripfailed at random and stopped the publish of Bins run 6 (4.4, arm64-v8a). The binaries are not at fault.Steps to QA
Baseline:
touch -d @0 f && gzip -c f: exit 2 with the same warning (gzip 1.14; the bundlelibgzip.sohas the same message).Change:
run-kernel-matrix.shon 3.16, 4.4, 4.9, 4.15, 6.12: the lines showclock at boot 0(4.4) and1(4.15), thenset to 1767225600.Verifications
Notes
After the merge, Bins 1 runs again on main to publish the K2GO-598 bundle.