ci: pin pandoc to 3.10 for reproducible reference builds - #2
Merged
Conversation
Distro apt pandoc (3.1.3 on Ubuntu noble) converts the WCAG HTML to cosmetically different Markdown than the 3.10 used to author the committed reference, producing a false drift warning (100 insertions / 100 deletions, validate still passing). Install a sha256-pinned pandoc 3.10 static binary in CI so regeneration is byte-reproducible and the drift check fires only on real spec changes. Document the required version in build-reference.sh and AGENTS.
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.
Problem
The
build-referencejob emitted a drift warning on the post-merge main run. Root cause is toolchain drift, not a WCAG spec change: CI installed distro apt pandoc 3.1.3 (Ubuntu noble), while the committed reference was authored with pandoc 3.10. The two versions produce cosmetically different Markdown from identical HTML (symmetric 100 insertions / 100 deletions).validate.mjsstill passed, confirming structure and counts are unchanged.Fix
scripts/build-reference.shandAGENTS.md.Verified locally
validate.mjsOK (A=31 AA=24 AAA=31 total=86); regen with pandoc 3.10 leaves the reference byte-identical (empty diff); markdownlint clean. sha256e0f8af62d0f267d22baa5bcefe6d5dda3a097ccc60de794b759fe03159923244confirmed stable across two fetches.