Skip to content

Investigate why commandPluginPermissions intermittently fails on Windows #9090

@bkhouri

Description

@bkhouri

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

The commandPluginPermissions test is marked as intermittently failing on Windows for Native Build System and release configuration. This needs to be investigated.

Prior to migrating to Swift Testing in #9012, the tests were reliable. However, #9012 added the release build configuration tests.

The test failed in the SwiftPM Windows self hosted pipeline PR job, more specifically, build #2019. The full console logs are attached below, but the logs associated with the test failure are

[2025-09-04T16:58:19.680Z] × Test commandPluginPermissions(data:) recorded an issue with 1 argument data → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.native, config: PackageModel.BuildConfiguration.release) at PackageCommandTests.swift:5638:25: Expectation failed: (stdout → "").contains("successfully created it")

pr-swiftpm-windows-self-hosted_#2019.txt

Expected behavior

The withKnownIssue in the test is removed.

Actual behavior

#9082 updated the test too contain withKnownIssue(isIntermittent: true) {...}

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions