Skip to content

Ensure "lost-pixel docker" Returns Exit Code 1 on Failure #452

@silvioprog

Description

@silvioprog

Mode

Storybook

Feature description

Description:

Currently, when lost-pixel docker (or lost-pixel docker update) encounters a failure, it does not return an exit code of 1, making it difficult to detect failures in CI/CD pipelines.

Expected Behavior:

When lost-pixel docker encounters a failure (e.g., visual diffs detected, errors during execution), it should return an exit code of 1. This will allow CI/CD systems to properly detect failures and take appropriate actions.

Steps to Reproduce:

  • Run lost-pixel docker in a scenario where it should fail.
  • Check the exit code using echo $? (Unix) or echo $LASTEXITCODE (Windows).
  • Observe that the exit code is not 1, even when a failure occurs.

Suggested Fix:

Modify the Docker entry point script or application logic to ensure it exits with code 1 upon failure.

Let me know if you want to add more details! 🚀

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