Fix flaky help_options test: restore enableConsoleColoring after mutation#19385
Draft
Fix flaky help_options test: restore enableConsoleColoring after mutation#19385
Conversation
… global The `fsc --consolecolors switch` test mutates the global `enableConsoleColoring` via `--consolecolors-`. When help_options tests run after this test, the help output says "(off by default)" instead of "(on by default)", causing baseline mismatches. Fix: save and restore `enableConsoleColoring` around the test. Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix flaky test: help options baseline fails due to global mutable enableConsoleColoring
Fix flaky help_options test: restore enableConsoleColoring after mutation
Mar 3, 2026
Member
|
@copilot : Check AzDo CI errors. Collect them, fix them. |
Contributor
Author
I cannot access Azure DevOps from this sandbox (DNS blocked for Results — all 5 test suites pass with 0 failures:
Formatting also passes ( If there are specific AzDo errors you're seeing, could you share the error messages? I'm unable to reach the AzDo build logs from this environment. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
enableConsoleColoringis a global mutable. Thefsc --consolecolors switchtest sets it tofalsevia--consolecolors-, and since compilation runs in-process, the mutation leaks to subsequent tests. Whenhelp_optionsruns later, the help text reads(off by default)instead of(on by default), failing the baseline comparison.enableConsoleColoringaround the mutating test withtry/finallyOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.