Skip to content

Fail a Pillow Bump That Changes the Redaction Output #365

Closed

Description

@ptr727

Dependabot now tracks the Pillow pin in scripts/requirements.txt, and per the fleet merge-bot standard its pull requests auto-merge once the required checks pass, since the required checks are the gate. No required check can see a Pillow bump change the redaction output.

  • checks/check-media-redactions.py compares the carried files against their committed hashes, so it never runs Pillow.
  • scripts/tests/test_redact_media.py records its expected hashes within the same run, so a different Pillow moves both sides together.
  • The pin check passes, because the pin and the installed Pillow move together.

So a bump that changes the output merges green, and the drift surfaces only when an entry is next re-run from its original.

Done looks like a required check that fails a pull request whose Pillow renders a fixed redaction to different bytes than a committed expectation, for example a small synthetic image and manifest entry under scripts/tests with its expected output hash committed.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    gate
    on Oct 1, 2026
  2. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    Related gap found while documenting the bump in #364: after a Pillow bump, redact-media.py --record re-records only entries whose fills or crop changed, so an entry whose declaration is unchanged has no re-record path other than hand-editing its recorded result in the manifest. A fix here should cover re-recording under a new pin too, or say why it is not needed.

  3. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    This is no longer hypothetical: within minutes of #366 reaching main, Dependabot moved Pillow from 11.3.0 to 12.3.0, a major version, and the merge bot auto-merged it into develop (#369) and main (#368, with #370 an overlapping group that changed nothing further). CI passed, which per the analysis above says nothing about the redaction output, so every carried redaction was produced under 11.3.0 and a re-run from an original now runs under 12.3.0. The check this issue asks for should establish whether 12.3.0 reproduces the recorded results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions