Skip to content

ThreadingDiagnoserTests failed randomly when using InProcessToolchain #3098

@filzrev

Description

@filzrev

After PR #3090 is merged.
CompletedWorkItemCountIsAccurate test is randomly failed.

Currently, this error is observed on macos(arm64) only.

Error message

CompletedWorkItemCountIsAccurate(toolchain: InProcessEmitToolchain) [FAIL]
       Assert.Equal() Failure: Values are not within 2 decimal places
       Expected: 1 (rounded from 1)
       Actual:   1.02 (rounded from 1.015625)

Logs


It can be resolved by reduce precision when comparing metrics value.

Assert.Equal(assertion.Value.expectedValue, metric.Value.Value, precision: 2);
.

Though, it need to determine root cause of this problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions