Add CI pipelines, nightly LKL builds, and documentation#1
Merged
Conversation
The all target now depends on .git/hooks/pre-commit, which is created by install-hooks. This ensures git hooks are active after the first make invocation without manual setup. Change-Id: Ia11781ed707d69ed70921580c93f0a65ff77d667
Nightly workflow (build-lkl.yml) builds liblkl.a for x86_64 and aarch64 in parallel, checks upstream lkl/linux HEAD to skip redundant rebuilds, and publishes to the lkl-nightly release on sysprog21/kbox with delete-then-create semantics. Build-and-test workflow (build-kbox.yml) splits unit tests from integration tests for parallelism: unit tests run immediately (no LKL dependency) while the build job fetches LKL, compiles, and prepares the rootfs. fetch-lkl.sh now fetches from sysprog21/kbox lkl-nightly release instead of querying lkl/linux releases. Auto-detects host arch. Also adds LKL API surface doc, threading mode analysis, LSAN suppression file for known LKL leaks, and ABI warning on manually-declared struct lkl_disk. The cache key derived from lkl-sha256.txt (currently comments-only) is effectively static, and restore-keys can serve stale artifacts that fetch-lkl.sh never validates. The nightly tarball is small enough that fetching it each run is simpler and always correct. Change-Id: Id36c47d6a304ea0c2bed3355e1d293a6c32542d4
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.
Nightly workflow (build-lkl.yml) builds liblkl.a for x86_64 and aarch64 in parallel, checks upstream lkl/linux HEAD to skip redundant rebuilds, and publishes to the lkl-nightly release on sysprog21/kbox with delete-then-create semantics.
Build-and-test workflow (build-kbox.yml) splits unit tests from integration tests for parallelism: unit tests run immediately (no LKL dependency) while the build job fetches LKL, compiles, and prepares the rootfs.
fetch-lkl.sh now fetches from sysprog21/kbox lkl-nightly release instead of querying lkl/linux releases. Auto-detects host arch.
Also adds LKL API surface doc, threading mode analysis, LSAN suppression file for known LKL leaks, and ABI warning on manually-declared struct lkl_disk.
Summary by cubic
Adds CI for build/test and a nightly LKL builder that publishes prebuilt
liblkl.afor x86_64 and aarch64. Speeds up testing, pins a consistent LKL, and documents our LKL interface and threading model.New Features
liblkl.afor x86_64/aarch64, skips if upstreamlkl/linuxHEAD unchanged, verifies required symbols, publishes tolkl-nightlyonsysprog21/kbox.fetch-lkl.sh: pulls fromsysprog21/kboxlkl-nightly, auto-detects host arch, optional SHA256 check.install-hooks(wired intoall); keeps auto-fetch of LKL.struct lkl_disk.Migration
main/infrastructureand nightly at 03:00 UTC; no action needed.lkl-<arch>and runmake fetch-lkl.LSAN_OPTIONS=suppressions=scripts/lsan-suppressions.txt.struct lkl_disklayout against upstream.Written for commit ae560ae. Summary will update on new commits.