-
Notifications
You must be signed in to change notification settings - Fork 308
Consolidate CI detection into core platform helper #8394
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
Changes from all commits
1130e7f
d105efd
0fdf4d9
9a68992
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,8 +142,7 @@ await _policiesService.RegisterOnAbortCallbackAsync( | |
| _isServerMode = _commandLineOptions.IsOptionSet(PlatformCommandLineProvider.ServerOptionKey); | ||
| bool noAnsi = _commandLineOptions.IsOptionSet(TerminalTestReporterCommandLineOptionsProvider.NoAnsiOption); | ||
|
|
||
| // TODO: Replace this with proper CI detection that we already have in telemetry. https://github.com/microsoft/testfx/issues/5533#issuecomment-2838893327 | ||
| bool inCI = string.Equals(_environment.GetEnvironmentVariable("TF_BUILD"), "true", StringComparison.OrdinalIgnoreCase) || string.Equals(_environment.GetEnvironmentVariable("GITHUB_ACTIONS"), "true", StringComparison.OrdinalIgnoreCase); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure all other CI systems have support for simple ANSI? This can easily be a regression if other systems don't support that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on AI lookup there are few uncertainties but it seemed overall easier than just picking some and waiting. |
||
| bool inCI = new CIEnvironmentDetector(_environment).IsCIEnvironment(); | ||
|
|
||
| AnsiMode ansiMode = AnsiMode.AnsiIfPossible; | ||
| // In LLM environments, prefer simple text output so that LLM can parse it easily. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.