Skip to content

./pants test exits with status 0 after failing test build #17657

Open
@shelbyd

Description

@shelbyd

Describe the bug
Run ./pants test ::.
Have test file (Go) fail to compile.
My error [ERROR] Completed: Compile with Go - <redacted> failed (exit code 1).
Run echo $?.

Expected:
A non-zero (failing) status code.

Observed:
A zero (successful) status code.

Pants version
2.14.0

OS
Only tested on Linux.

Additional info
Failing with a non-zero code is critical for correct use in CI. Basically every CI system will consider a command successful if the status code is 0. This breaks the ability to trust Pants output in CI.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions