Skip to content

ci: pin the pilot kernel by digest, keep the Maven warm whole, fail man-lint without a formatter - #2478

Merged
HuiJun merged 2 commits into
developfrom
ci/supply-chain-mediums
Nov 22, 2026
Merged

HuiJun merged 2 commits into
developfrom
ci/supply-chain-mediums

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.library shipped 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.sh pins the jar's SHA-256 (PILOT_KERNEL_JAR_SHA256) and a digest of the library tree (PILOT_KERNEL_LIBRARY_SHA256), and gains pilot_verify_kernel and pilot_kernel_digests.
  • scripts/download-pilot-validator.sh verifies both after the download and before mvn package shades the jar, and again on the fast path, so an installed or cache-restored copy that no longer matches is rebuilt.
  • The evaluator, KerML validator, SysML validator and JSON exporter scripts verify before they compile against the jar.
  • The pinned jar digest was taken from the installed build and confirmed against a fresh download of the 2026-09.1 release 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/corpora are 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.yml ran with cancel-in-progress: true, and the cache step saves after the job, so a warm cancelled during a resolve could save a partial ~/.m2/repository ahead of the offline-build proof. A newer run now queues behind the running one.

make man-lint fails without a formatter. With neither mandoc nor groff installed it printed a note and then "✓ Manual pages are formatter-clean". It now fails naming both; MAN_LINT_OPTIONAL=1 keeps 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.sh by hand, Java 21:
    • a byte appended to the installed jar: the run reports the found and pinned SHA-256, rebuilds, and the installed jar is the pinned one again;
    • PILOT_KERNEL_LIBRARY_SHA256=00 on a real download: fails after the download and before mvn package, the installed copy untouched and no work directory left behind;
    • an untouched build: fast path, about one second for the digest check.
  • The four dependent scripts each build against the verified jar and exit 0.
  • make man-lint with a PATH holding neither formatter exits 2 with the error; with MAN_LINT_OPTIONAL=1 it exits 0 and prints only the note; with mandoc present it passes as before.
  • go test -count=1 ./tests/hygiene passes, including the new assertion that the warm workflow does not cancel in progress. go vet ./tests/hygiene, gofmt -l, shellcheck on the changed scripts, actionlint on maven-cache.yml, scripts/changelog.py check and scripts/check-doc-ids.py are clean.
  • Not verified: the workflows on a runner, and the full make test and make lint, which were not run locally.

Checklist

  • make test and make lint pass locally
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Quality Assurance opened this PR for Jason
Implemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop


…an-lint without a formatter

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: jason.han <hanhuijun@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun added this pull request to the merge queue Nov 21, 2026
Merged via the queue into develop with commit 8665112 Nov 22, 2026
32 of 80 checks passed
@HuiJun
HuiJun deleted the ci/supply-chain-mediums branch November 22, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant