Skip to content

Investigate full-suite-only failure in global log report-hint test #5264

Description

@Widthdom

Observed failure

While validating #5259 on macOS arm64 (repository SDK 9.0.301, base origin/main at b52ac0fc372a22eb9667ba409d3d204c153d3188), the full test run failed GlobalToolLogTests.TryStart_WritesInvariantUtcTimestampAndStackTrace on both net8.0 and net9.0. The same test passed on both frameworks when rerun alone with the same compiled assemblies.

The assertion at tests/CodeIndex.Tests/GlobalToolLogTests.cs:827 expected Run \cdidx report`in stderr, but stderr beganError: command failed before it could com...and did not contain that report hint. The test deliberately throws throughbeforeDispatchForTesting`, before query dispatch; #5259 changes batch result serialization and does not change the logging test or its implementation.

Commands

Full run:

dotnet test -p:UseSharedCompilation=false --settings tests/CodeIndex.Tests/CodeIndex.Tests.runsettings --blame-crash --blame-hang --blame-hang-timeout 5m

Passing focused retry:

dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --no-restore --filter FullyQualifiedName~GlobalToolLogTests.TryStart_WritesInvariantUtcTimestampAndStackTrace

Investigation scope

Investigate order-dependent process state, configuration/environment provenance, and persistent-log session ownership around ProgramRunner.Run / GlobalToolLog.TryStart. The root cause is not established; do not weaken the expected report hint or classify the production behavior as a confirmed regression without a deterministic reproduction. Preserve culture-independent UTC timestamps and stack-trace coverage.

Acceptance: establish a deterministic reproduction of any interfering state, isolate/restore that state, and keep this test passing both alone and in the full net8.0/net9.0 suites.

Open-issue duplicate checks for the exact test name, GlobalToolLog, and global log report returned no existing issue.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions