Repository navigation
test(coganchor): verify Landlock ABIs on pinned kernels - #912
Conversation
c4e7acc to
daf7c4a
Compare
Run the fence tests inside Linux 5.15, 6.8, 6.10 and 6.12 guests under QEMU TCG. Assert ABI 1, 4, 5 and 6 and cover paths, TCP, signals and abstract Unix sockets, with the four results wired into ci-ok. Refs: humanfia#911 Signed-off-by: Yapeng Wang <snowmantin@foxmail.com>
daf7c4a to
d2caa0a
Compare
futrime
left a comment
There was a problem hiding this comment.
Read the whole diff and the four landlock logs. The matrix asserts the guest's ABI exactly, a leg can only pass on the guest's own RUN PASS line, and the tarballs are pinned by SHA-256. landlock::abi, landlock::able and the refusal text it checks are unchanged on current main, and the branch merges cleanly; the merge queue reruns CI there.
Two nits, neither blocking, fine as a follow-up:
- The
rust-cachestep inlandlocknever hits (No cache foundin all four legs):cache.ymlsaves no musl test build under that key. Either drop the step or havecache.ymlsave one. A cachedbzImageper kernel and config hash would save more, since each leg rebuilds its kernel. find … -name 'landlock_kernel-*' | head -n 1can pick a stale binary in a localtarget/;cargo test --no-run --message-format=jsonnames the one just built.
curl reads --max-time as seconds and took "10m" as 10, so a kernel.org download slower than about 14 MB/s failed all its retries.
|
The merge queue dropped this: |
Closes #911
MFCP task: missionhub-oss/mfcp#248
What and why
The fence has different guarantees at Landlock ABI 1, 4, 5 and 6, but the
existing tests exercise whichever kernel the runner happens to use. Add a GitHub
Actions matrix that boots pinned Linux 5.15, 6.8, 6.10 and 6.12 kernels under
QEMU TCG and runs the real tests in each guest.
The matrix:
filtering and
pidfd_getfd;coganchorand test binaries once;prerequisite to skip;
signals and abstract Unix sockets;
ci-ok.KVM is deliberately unnecessary: these jobs check kernel behaviour, not speed.
The user and contributor docs now name the capabilities added at kernels 5.13,
6.7 and 6.12. No protocol document changes are needed.
How it was tested
Each pinned kernel was built and booted locally under QEMU TCG:
Other checks:
cargo fmt --all -- --check: passcargo clippy --locked --all-targets -- -D warnings: passcargo test --locked: 388 library tests and all crate integration tests passuv run pytest tests/integration/test_core_ci_caches.py tests/integration/test_core_ci_filters.py: 48 passedA local full
uv run pytestreached 8386 passed and 9 skipped, with fourfailures in untouched code paths: one price-parsing assertion, two login-shell
tests affected by the local zsh first-run state, and one daemon test blocked by
local temporary-directory permissions. The affected files are not changed by
this PR; CI is the authoritative full-suite result.
The commit carries the author's DCO as
Yapeng Wang <snowmantin@foxmail.com>.Checklist
crates/coganchor/tests/, where the crate'sintegration tests live.
uv run pre-commit run --all-filesanduv run pytestpass locally.Their individual checks were run as described above; the full pre-commit
environment fetch timed out, and the full pytest result was not green for the
unrelated local environment failures listed above.