Skip to content

exit codes: export-preset-axis uses 9, outside the 0 / 2+ convention #136

Description

@TMHSDigital

What

templates/headless-batch-script-template/script.py (and its README) uses 0 for success and 2+ for distinct failures. Argparse usage also exits 2.

examples/export-preset-axis/ does not. --same-axis when orientations did not differ returns 9. A second path in the same function also returns 9 when orientations did not differ on the happy path. Neighboring failures in that file already use 7, 8, and 11.

Why it matters

Phase 3 recorded that there is no repo-wide exit-code table, and that exit 9 is example-local. If two more examples copy that numbering, the template convention is dead and every consumer has to read each script.

Proposal (not this issue's implementation)

Normalize export-preset-axis onto 0 / 2+ (or document an example-local table in that README and stop implying a shared scheme). Do not do that in a CI-workflow PR; it is a shipped example and needs its own falsification pass.

Out of scope

Do not change the smoke matrix, templates, or other examples in the same PR as this cleanup.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions