Skip to content

Tracing is not being flushed before dsc exits #677

Closed

Description

@SteveL-MSFT

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

Particularly on macOS, some traces do not get emitted which the tracing test is expecting. Tracing is async and it seems that there is a race condition where the dsc process exists before the buffered traces get written out.

Steps to reproduce

During CI, typically it'll be macOS that fails due to a trace test can't find the trace, but likely succeeds on rerun

Expected behavior

all traces get written out

Actual behavior

some traces do not

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.0-preview.2
PSEdition                      Core
GitCommitId                    7.6.0-preview.2
OS                             Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:06 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8103
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

dsc 3.1.0-preview.1

Visuals

No response

Activity

  1. SteveL-MSFT commented on Oct 26, 2026

    @SteveL-MSFT
    MemberAuthor

    Fixed via #1762

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions