Skip to content

Bug: engine-toggle-prime-fault-logging-test-races #942

Description

@drmoisan
  • Work Mode: minor-audit

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

  1. Run TaskMaster.Test under the parallel regime (Workers=0, Scope=ClassLevel).
  2. 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

  • Blocker
  • High
  • Medium
  • Low

Source

From: docs/features/potential/2026-09-29-engine-toggle-prime-fault-logging-test-races.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions