Summary
EngineToggleStateCoordinatorTests.GetPressed_WhenPrimeFaults_LogsErrorAndStillReturnsFalse failed once in CI and passed on rerun. The fault logging it asserts appears to race the task the test awaits.
Environment
- OS/version: windows-latest (GitHub Actions)
- Python version: n/a (C# / MSTest)
- Command/flags used: required check MSTest with coverage
- Data source or fixture: n/a
Steps to Reproduce
- Run
TaskMaster.Test under the parallel regime (Workers=0, Scope=ClassLevel).
- Observe
GetPressed_WhenPrimeFaults_LogsErrorAndStillReturnsFalse (TaskMaster.Test/Ribbon/EngineToggleStateCoordinatorTests.cs:213). It fails intermittently.
Expected Behavior
The test is deterministic: the error log it asserts is written before the awaited task completes, or the test awaits the logging continuation itself.
Actual Behavior
It failed once on PR #939 head 9624376dc, passed on a single rerun, and passed in two local runs. PR #939 does not touch this code.
Logs / Screenshots
Impact / Severity
Source
From: docs/features/potential/2026-09-29-engine-toggle-prime-fault-logging-test-races.md
Summary
EngineToggleStateCoordinatorTests.GetPressed_WhenPrimeFaults_LogsErrorAndStillReturnsFalsefailed once in CI and passed on rerun. The fault logging it asserts appears to race the task the test awaits.Environment
Steps to Reproduce
TaskMaster.Testunder the parallel regime (Workers=0, Scope=ClassLevel).GetPressed_WhenPrimeFaults_LogsErrorAndStillReturnsFalse(TaskMaster.Test/Ribbon/EngineToggleStateCoordinatorTests.cs:213). It fails intermittently.Expected Behavior
The test is deterministic: the error log it asserts is written before the awaited task completes, or the test awaits the logging continuation itself.
Actual Behavior
It failed once on PR #939 head
9624376dc, passed on a single rerun, and passed in two local runs. PR #939 does not touch this code.Logs / Screenshots
9624376dc(first attempt).Impact / Severity
Source
From: docs/features/potential/2026-09-29-engine-toggle-prime-fault-logging-test-races.md