Repository navigation
ci: pin the pilot kernel by digest, keep the Maven warm whole, fail man-lint without a formatter - #2478
Merged
Conversation
…an-lint without a formatter Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: jason.han <hanhuijun@gmail.com>
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 and why
Part of #2452.
Three supply-chain and CI fixes, batched into one pull request to keep CI load down. No job or step is added.
The pilot kernel is pinned by digest. The reference validators run the pilot's shaded kernel jar against the
sysml.libraryshipped beside it. Both come from a GitHub release ZIP that only a tag and a version string selected, so no commit covered them, and a build restored from the CI cache was trusted on its stamp and the presence of its files.scripts/pilot-pin.shpins the jar's SHA-256 (PILOT_KERNEL_JAR_SHA256) and a digest of the library tree (PILOT_KERNEL_LIBRARY_SHA256), and gainspilot_verify_kernelandpilot_kernel_digests.scripts/download-pilot-validator.shverifies both after the download and beforemvn packageshades the jar, and again on the fast path, so an installed or cache-restored copy that no longer matches is rebuilt.2026-09.1release ZIP, whose own SHA-256 matches the digest GitHub records for the asset.Not covered: the wrapper jar Maven builds from the kernel is not reproducible, so a cached copy of it is still trusted on the stamp; and the corpus caches under
.github/actions/corporaare unchanged (their content comes from commit-pinned git fetches, and a manifest stored inside the cache would be rewritable by whoever can write the cache).The Maven cache warm is never cancelled part-way.
maven-cache.ymlran withcancel-in-progress: true, and the cache step saves after the job, so a warm cancelled during a resolve could save a partial~/.m2/repositoryahead of the offline-build proof. A newer run now queues behind the running one.make man-lintfails without a formatter. With neithermandocnorgroffinstalled it printed a note and then "✓ Manual pages are formatter-clean". It now fails naming both;MAN_LINT_OPTIONAL=1keeps the old skip, and prints the note without the success line.How it was verified
scripts/pilot-pin-test.sh(already run by CI): eight new offline cases cover an accepted kernel, a changed jar, a changed, added and moved library file, a symbolic link to a file or a directory added to the library, and a missing jar. All cases pass.download-pilot-validator.shby hand, Java 21:PILOT_KERNEL_LIBRARY_SHA256=00on a real download: fails after the download and beforemvn package, the installed copy untouched and no work directory left behind;make man-lintwith aPATHholding neither formatter exits 2 with the error; withMAN_LINT_OPTIONAL=1it exits 0 and prints only the note; withmandocpresent it passes as before.go test -count=1 ./tests/hygienepasses, including the new assertion that the warm workflow does not cancel in progress.go vet ./tests/hygiene,gofmt -l,shellcheckon the changed scripts,actionlintonmaven-cache.yml,scripts/changelog.py checkandscripts/check-doc-ids.pyare clean.make testandmake lint, which were not run locally.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogImplemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop