Skip to content

Add E2E tests for mactl pipeline run #938

@badcount

Description

@badcount

Is your feature request related to a problem? Please describe.
The mactl pipeline run command has no end-to-end tests. Regressions in the run command can go undetected until a user reports a failure in production. The TODO specifically calls out two missing scenarios: normal run and resume from checkpoint.

Describe the solution you'd like
Add E2E tests covering:

  • Successful pipeline run with a valid pipeline and project
  • Resume from checkpoint using --checkpoint flag
  • Run against a non-existent pipeline (expect a clear error message)
  • Run with missing required parameters (expect validation error before API call)
  • Run without authentication (expect auth error)

Describe alternatives you've considered
Add integration tests that mock the API server. Faster than full E2E but doesn't catch issues in the API call path or auth layer.

Additional context
See python/michelangelo/cli/mactl/plugins/entity/pipeline/run.py:31. The comment also mentions resume-from-checkpoint as a specific scenario to cover.

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