Skip to content

check_cards: a figure_at_pin that is a string or float, or missing, silently switches WRONG off #260

Description

@realmarcin

From the Codex review of #212, after five internal rounds.

Where: scripts/fleet/check_cards.py check(), and the provenance test.

With HabitatMech's card mistyped as 3,026 and the audit's figure_at_pin stored as "3206" or 3206.0, the check skips WRONG and reports "grew", exit 0, with no AUDIT row. The provenance test also accepts 3206.0, because 3206.0 == 3206 in Python. A Mech whose source has a committed copy but whose entry lacks figure_at_pin is skipped the same way.

Fix:

  • report AUDIT when figure_at_pin is present but not an int, or missing for a source that has a committed copy (every source except ProteinTraitsMech);
  • make the provenance test require an int.

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