Repository navigation
ci: pin veraPDF 1.30.4 and qpdf 12.4.2 - #578
Merged
Merged
Conversation
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.
…-1304-qpdf-1242 # Conflicts: # CHANGELOG.md
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.
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:
29824c4moves the pins (VERAPDF_TAG,QPDF_VERSION,QPDF_SHA256), updatesCONTRIBUTING.mdanddocs/architecture.md, and adds the CHANGELOG entry.afbe314re-measures statements that named the old versions as current.What can move a verdict
From the release notes for veraPDF
v1.30.3andv1.30.4, and qpdf 12.4.2, limited to the PDF/A-2a, 2b, 2u and PDF/UA-1 flavours this suite runs:rounds >= 64), so the docs now attribute the refusal to 1.30.2.The qpdf Linux asset
qpdf-12.4.2-bin-linux-x86_64.zipis pinned to SHA-256db367d897829f22c4198ce1094143c9d467bd6ee7dfabc44ba6f02056b24f8b1, taken from the officialqpdf-12.4.2.sha256release file.Verified locally
Release build on Windows, using the Windows builds of veraPDF 1.30.4 and qpdf 12.4.2 (both confirmed with
--versionfirst),REQUIRE_ORACLES=1. The solution built with 0 warnings and 0 errors.ConformanceCatalogTestsran and did not skip.docs/conformance-divergences.md. I rebuilt the fixtures from this description, usingOracleCorpus.WriterPdfTaggedwith an appended/Langrevision 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. Thegoodform 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.eng/clause-coverage.py: 75 values scraped and 54 with a rule, on bothcli-1.30.2.jarandcli-1.30.4.jar. The comment does not define "belonging to a rule", so I counted distinctclausevalues on<id>elements across the 2A, 2B and 2U profiles.dotnet format VellumPdf.slnx --verify-no-changesexits 0, andpwsh ./eng/clean-room-check.ps1passes.Assets/README.md,UaEncryptionPermissionsVeraPdfTests) now attribute it to 1.30.2 and record the 1.30.3 fix.Not verified locally
docker pull verapdf/cli:v1.30.4and the qpdf zip checksum check run only on CI for this PR. Locally I used the Windows builds of both tools.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 Releasewith warnings as errorsREQUIRE_ORACLES=1dotnet format VellumPdf.slnx --verify-no-changespwsh ./eng/clean-room-check.ps1CHANGELOG.mdupdated under[Unreleased]