Skip to content

Card-check remedies: git log needs --, the PR body has no pin time, malformed audits and card_records are unaddressed #277

Description

@realmarcin

From the round-4 review of #265 (follows #276).

Where: scripts/fleet/check_cards.py closing line, and _fleet/README.md's remedy list.

  • Deleted file: git log -p _fleet/data/site_audit.json exits 128 once the file is deleted. It needs -- before the path.
  • PR body: the refresh PR body carries short shas and no pin time, so it can't supply what the bad-pin-time case needs.
  • Malformed audit: unparseable JSON, a non-object, or no repositories list has no clause. Only a "missing audit" does.
  • card_records: WRONG tells the reader to correct card_records in site_audit.json, while AUDIT says never to edit the file by hand. It is the one field a WRONG fix must change to match the corrected card, and a test requires it to equal the card.

Fix:

  • use git log -p -- <path>;
  • drop the PR body as a source;
  • cover a malformed audit;
  • state the card_records exception.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions