Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/docs-inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@
#
# This runs as its own workflow rather than a step in the CI build for one reason: the
# generator downloads its inputs, and the Arlington archive alone is ~38 MB. Paying that
# on every push would tax runs that cannot possibly have caused drift. The path filter
# limits it to the two files that can.
# on every push would tax runs that cannot possibly have caused drift, so the filter
# lists exactly the paths that can — which is every local input the generator reads,
# plus this file.
#
# One of those is a source directory, and that is deliberate. rule_class_provenance()
# reads src/VellumPdf.Conformance/Rules/ and derives six of the figures on the page,
# including how many rule classes claim clean-room derivation and how many of those also
# name veraPDF. Without that path a pull request editing only rule comments moves the
# published figures with the gate never running, which is precisely what the #418 and
# #428 re-derivation batches do. It costs ordinary source edits a run, and that is the
# right trade for a page whose whole argument is that its claims are checkable.
#
# Not covered: drift caused by the upstream datasets changing under a table nobody
# touched. Gating unrelated pull requests on someone else's repository changing would be
# wrong, so that case is deliberately left to a human re-running the generator.
#
# Worth knowing, since the rule path makes it reachable: --check regenerates the whole
# page, so upstream drift can now fail a pull request that only edited a rule comment and
# caused no drift of its own. That is a false red on the contributor's change rather than
# a missed one, which is the safer direction, but it is a real cost of the wider filter.

name: Docs inventory

Expand All @@ -22,12 +36,14 @@ on:
paths:
- 'docs/pdf20-conformance.md'
- 'eng/generate-pdf20-inventory.py'
- 'src/VellumPdf.Conformance/Rules/**'
- '.github/workflows/docs-inventory.yml'
pull_request:
branches: [ main ]
paths:
- 'docs/pdf20-conformance.md'
- 'eng/generate-pdf20-inventory.py'
- 'src/VellumPdf.Conformance/Rules/**'
- '.github/workflows/docs-inventory.yml'

jobs:
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
arrives short and the 1024-character sink cut has nothing left to do on this path. Every other
finding is unaffected. (#406)

- **The generated-inventory gate now runs on the directory its own generator reads.**
`docs-inventory.yml` triggered on `docs/pdf20-conformance.md`, the generator, and itself, while
`rule_class_provenance()` in that generator reads `src/VellumPdf.Conformance/Rules/` and derives
six of the figures published on the page, among them how many rule classes claim clean-room
derivation and how many of those also name veraPDF. A pull request editing only rule comments
therefore moved the published figures with the gate silently skipped. The workflow's own header
claimed the filter covered everything that could cause drift, which stopped being true once the
generator started reading source. That directory is now in both path lists, and the header says
what the wider filter costs: ordinary source edits pay a run, and because `--check` regenerates
the whole page, upstream drift can now fail a pull request that caused none of its own. It matters
now because every batch of the #418 and #428 re-derivation edits exactly those comments, so the
disclosure measuring the sweep would have gone stale as the sweep ran. (#418)

### Fixed

- **`/P` bit 10 is now always set on a newly written `/Encrypt` dictionary.** The restriction this
Expand Down