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

fix(cli): tolerate #2702 stderr noise #2704

Open
wants to merge 1 commit into
base: markm-fix2700-ignore-safe-asynchook-extras
Choose a base branch
from

Conversation

erights
Copy link
Contributor

@erights erights commented Jan 27, 2025

Staged on #2701

Closes: #2702
Refs: #XXXX

Description

As shown by #2702:
When tests are run under the vscode JavaScript Debug Terminal, every time that test spawns a subshell, extra noise appears on the stderr of that subshell, such as

Debugger attached.␊
  - Waiting for the debugger to disconnect...

This seems symptomatic of a widespread assumption that other tools on the toolchain can inject extra output into the stderr of subshells without typically causing problems.

The test framework code changed by this PR had defaulted both an absent stdout expectation and an absent stderr expectation to expecting the empty string. This PR changes the stderr default expectation to an regexp that accepts anything. This can still be overridden by an explicitly provided stderr expectation, including one explicitly expecting an empty string, so there is no loss of generality. Just a change in the default.

Security Considerations

This change will cause some tests to pass that might have otherwise failed. Some of these masked failures may have been symptoms of actual problems, rather than tool generated noise. This PR will mask such problems.

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

Because the #2702 bug this PR fixes is about a behavior seen under the vscode JavaScript Debug Terminal, I didn't see a way to write an automated test to check the fix under CI. Rather, I just verified the fix locally and interactively using vscode.

Compatibility Considerations

As mentioned in Security Considerations above, this PR may mask genuine errors that would have been flagged prior to this PR.

Upgrade Considerations

none

@erights erights self-assigned this Jan 27, 2025
@erights erights changed the base branch from master to markm-fix2700-ignore-safe-asynchook-extras January 27, 2025 19:50
@erights erights requested review from grypez and kriskowal January 27, 2025 20:02
@erights erights changed the title Markm tolerate stderr noise fix(cli): tolerate #2702 stderr noise Jan 27, 2025
@erights erights marked this pull request as ready for review January 27, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant