Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail fast for attempts to use test --debug with a docker environment #18560

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Mar 22, 2023

As described in #18212, test --debug currently silently uses the local environment to attempt to debug a target, which can cause a lot of confusion. Other goals like run at least render a warning.

Until #17182 is fixed, we should ensure that we fail fast for the case of test --debug instead.

Fixes #18212.

@stuhood stuhood added needs-cherrypick category:bugfix Bug fixes for released features labels Mar 22, 2023
@stuhood stuhood added this to the 2.15.x milestone Mar 22, 2023
@stuhood stuhood enabled auto-merge (squash) March 23, 2023 03:35
@stuhood stuhood merged commit 9d0ea0c into pantsbuild:main Mar 23, 2023
17 checks passed
@stuhood stuhood deleted the stuhood/fail-fast-for-docker-test-debug-attempts branch March 23, 2023 16:20
stuhood added a commit to stuhood/pants that referenced this pull request Mar 23, 2023
pantsbuild#18560)

As described in pantsbuild#18212, `test --debug` currently silently uses the local
environment to attempt to debug a target, which can cause a lot of
confusion. Other goals like `run` at least render a warning.

Until pantsbuild#17182 is fixed, we should ensure that we fail fast for the case
of `test --debug` instead.

Fixes pantsbuild#18212.
stuhood added a commit to stuhood/pants that referenced this pull request Mar 23, 2023
pantsbuild#18560)

As described in pantsbuild#18212, `test --debug` currently silently uses the local
environment to attempt to debug a target, which can cause a lot of
confusion. Other goals like `run` at least render a warning.

Until pantsbuild#17182 is fixed, we should ensure that we fail fast for the case
of `test --debug` instead.

Fixes pantsbuild#18212.
stuhood added a commit that referenced this pull request Mar 23, 2023
…t (Cherry-pick of #18560) (#18567)

As described in #18212, `test --debug` currently silently uses the local
environment to attempt to debug a target, which can cause a lot of
confusion. Other goals like `run` at least render a warning.

Until #17182 is fixed, we should ensure that we fail fast for the case
of `test --debug` instead.

Fixes #18212.
stuhood added a commit that referenced this pull request Mar 23, 2023
…t (Cherry-pick of #18560) (#18568)

As described in #18212, `test --debug` currently silently uses the local
environment to attempt to debug a target, which can cause a lot of
confusion. Other goals like `run` at least render a warning.

Until #17182 is fixed, we should ensure that we fail fast for the case
of `test --debug` instead.

Fixes #18212.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour of test_extra_env_vars with docker environments
2 participants