Skip to content

ci: pin veraPDF 1.30.4 and qpdf 12.4.2 - #578

Merged
Tim81 merged 4 commits into
mainfrom
chore/oracles-verapdf-1304-qpdf-1242
Nov 18, 2026
Merged

Tim81 merged 4 commits into
mainfrom
chore/oracles-verapdf-1304-qpdf-1242

Conversation

@Tim81

@Tim81 Tim81 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

This PR moves the CI oracle pins from veraPDF v1.30.2 to v1.30.4 and from qpdf 12.4.1 to 12.4.2. veraPDF 1.30.3 and 1.30.4 carry a parser fix and several PDF/UA-1 rule fixes that change what the validator reports, and qpdf 12.4.2 is the current 12.4 patch release. The pins are edited in one place (ci.yml), and the version-assert step reads them from the same variables.

Three commits:

  • 29824c4 moves the pins (VERAPDF_TAG, QPDF_VERSION, QPDF_SHA256), updates CONTRIBUTING.md and docs/architecture.md, and adds the CHANGELOG entry.
  • A third commit re-attributes the R6 documentation to 1.30.2 and corrects the encrypted-fixture README, which now says the fixtures predate CI: qpdf and poppler oracles are installed unpinned, so CI is not reproducible #230's pin.
  • afbe314 re-measures statements that named the old versions as current.

What can move a verdict

From the release notes for veraPDF v1.30.3 and v1.30.4, and qpdf 12.4.2, limited to the PDF/A-2a, 2b, 2u and PDF/UA-1 flavours this suite runs:

  • veraPDF 1.30.3, parser: AES-256 revision 6 password hashing fix. The old code could reject valid passwords. This is the off-by-one the repository documents (veraPDF-parser 40ba1b3 starts the counter at 1 and tests rounds >= 64), so the docs now attribute the refusal to 1.30.2.
  • veraPDF 1.30.3, PDF/UA-1: the PDF 1.7 algorithm for determining table header scope is restored.
  • veraPDF 1.30.4, PDF/UA-1: rule 7.18.1-3 applies the alternative-description requirement only to Widget annotations associated with form fields.
  • veraPDF 1.30.4, PDF/UA-1: a fix to the rule about a missing parent element.
  • qpdf 12.4.2 (released 2026-09-27): linearized output may differ for some rare files.

The qpdf Linux asset qpdf-12.4.2-bin-linux-x86_64.zip is pinned to SHA-256 db367d897829f22c4198ce1094143c9d467bd6ee7dfabc44ba6f02056b24f8b1, taken from the official qpdf-12.4.2.sha256 release file.

Verified locally

Release build on Windows, using the Windows builds of veraPDF 1.30.4 and qpdf 12.4.2 (both confirmed with --version first), REQUIRE_ORACLES=1. The solution built with 0 warnings and 0 errors.

Project Total Passed Failed Skipped
Conformance 1325 1325 0 0
Kernel 1525 1525 0 0
Layout 412 412 0 0
Reader 1869 1857 0 12
Barcodes 1051 1051 0 0
Cli 908 908 0 0
TestSupport.Tests 17 17 0 0
  • ConformanceCatalogTests ran and did not skip.
  • Reader old versus new: the same project run against veraPDF 1.30.2 and qpdf 12.4.1 gave 1869 total, 1857 passed, 0 failed, 12 skipped. The 12 skips are the same count as under the old versions, and are data-driven. For the two I read, the reason is "the recorded startxref has only 3 digit(s), too few to represent a same-digit-count value". I only listed the names of the other ten. I did not re-run the other projects against the old versions, because nothing failed.
  • Two statements were re-measured on 1.30.4 and came out the same, so they now name both versions:
    • The language-tag table in docs/conformance-divergences.md. I rebuilt the fixtures from this description, using OracleCorpus.WriterPdfTagged with an appended /Lang revision and same-length byte edits, and ran both flavours. PDF/A-2a fails 6.7.4-1 and PDF/UA-1 fails 7.2-29 for the octal, raw LF and raw CRLF forms. The good form is compliant. This is identical on 1.30.2 and 1.30.4. These fixtures are not in the tree, and they are not the original files behind the table.
    • The profile clause counts in eng/clause-coverage.py: 75 values scraped and 54 with a rule, on both cli-1.30.2.jar and cli-1.30.4.jar. The comment does not define "belonging to a rule", so I counted distinct clause values on <id> elements across the 2A, 2B and 2U profiles.
  • dotnet format VellumPdf.slnx --verify-no-changes exits 0, and pwsh ./eng/clean-room-check.ps1 passes.
  • Docs that described the R6 refusal as current (Assets/README.md, UaEncryptionPermissionsVeraPdfTests) now attribute it to 1.30.2 and record the 1.30.3 fix.
  • The other references to veraPDF 1.30.2 and qpdf 12.4.1 in the tree (released CHANGELOG sections, rule comments, test comments, the NOTICE entry for the bundled glyph list) record what was measured then, and are left as written.

Not verified locally

  • The Linux CI path: docker pull verapdf/cli:v1.30.4 and the qpdf zip checksum check run only on CI for this PR. Locally I used the Windows builds of both tools.
  • I did not check whether any test exercises each release-note change (R6 hashing, UA-1 table header scope, 7.18.1-3, the missing-parent rule). A passing suite is the evidence here, not targeted tests, so a change in one of those areas that no test covers would not show up.
  • Only the Reader project was run against the old versions.
  • The PDF/UA-2 and WTPDF rule added in veraPDF 1.30.3 (it requires PDF version 2.0) is not run here: this suite validates only 2a, 2b, 2u and PDF/UA-1.

Part of

Prepares the v2.4 work. The oracles are bumped first so later PRs are judged against the new versions.

Checklist

  • dotnet build VellumPdf.slnx -c Release with warnings as errors
  • Tests pass in Release with REQUIRE_ORACLES=1
  • dotnet format VellumPdf.slnx --verify-no-changes
  • pwsh ./eng/clean-room-check.ps1
  • CHANGELOG.md updated under [Unreleased]
  • No public API change
  • AOT smoke test: CI runs it on all three OSes

Moves the oracle pins off versions that predate fixes in both tools:
veraPDF 1.30.3 corrects AES-256 revision 6 password hashing that could
reject valid passwords, and 1.30.3/1.30.4 change PDF/UA-1 table-header
scope and rules 7.18.1-3 and the missing-parent-element check. qpdf
12.4.2 is the current 12.4 patch release.

Verified locally in Release with REQUIRE_ORACLES=1 against veraPDF
1.30.4 and qpdf 12.4.2: no failing test in the Conformance, Kernel,
Layout, Reader, Barcodes, Cli and TestSupport projects. Reader skips 12
cases, the same count as under the old versions.
The pin commit left statements that named the old versions as current.
The language-tag table in conformance-divergences.md gives the same
verdicts on veraPDF 1.30.2 and 1.30.4 for every fixture form, and the
profile clause counts in clause-coverage.py are 75 scraped and 54 with a
rule on both jars, so both now name both versions. The encrypted-fixture
README says the files were generated with qpdf 12.4.1 and do not depend
on the CI pin. The CHANGELOG entry loses a local path and is re-wrapped.
veraPDF 1.30.3 fixed the Algorithm 2.B off-by-one that made it refuse
about one in ten freshly built AES-256 R6 files (veraPDF-parser
40ba1b3). The Assets README and the UaEncryptionPermissionsVeraPdf
remarks described the refusal as current; they now attribute it to
1.30.2 and record the fix. The encrypted-fixture README said the
fixtures were generated with qpdf 12.4.1, but all 18 predate #230's
pin (they came with #195 and #212, when that README recorded qpdf
12.3.2). The CHANGELOG entry drops the UA-2 rule, which this suite
does not run, and names the platform of the local run.
@Tim81
Tim81 merged commit f8d7da1 into main Nov 18, 2026
4 checks passed
@Tim81
Tim81 deleted the chore/oracles-verapdf-1304-qpdf-1242 branch November 21, 2026 06:37
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