-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
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 commandPluginNetworkingPermissionsUsingRemedy
test is marked as intermittently failing on Windows for all build system and build configurations. We need to investigate the reasons for this.
Prior to migrating the test to Swift Testing in #9012, the tests were realiably passing.
The following tests results caused marking the entire test as intermittently failing
Error: recorded an issue with 2 arguments buildData → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.swiftbuild, config: PackageModel.BuildConfiguration.debug), testData → CommandPluginNetworkingPermissionsTestData(permissionsManifestFragment: "[.allowNetworkConnections(scope: .local(ports: 1..<4), reason: \"localhost good\")]", permissionError: "local network connections on ports: 1, 2, 3", reason: "localhost good", remedy: ["--allow-network-connections", "local:1,2,3"]) at PackageCommandTests.swift:5547:25: Expectation failed: (stdout → "").contains("hello world")
Error: recorded an issue with 2 arguments buildData → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.swiftbuild, config: PackageModel.BuildConfiguration.release), testData → CommandPluginNetworkingPermissionsTestData(permissionsManifestFragment: "[.allowNetworkConnections(scope: .docker, reason: \"docker good\")]", permissionError: "docker unix domain socket connections", reason: "docker good", remedy: ["--allow-network-connections", "docker"]) at PackageCommandTests.swift:5547:25: Expectation failed: (stdout → "").contains("hello world")
Error: recorded an issue with 2 arguments buildData → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.native, config: PackageModel.BuildConfiguration.debug), testData → CommandPluginNetworkingPermissionsTestData(permissionsManifestFragment: "[.allowNetworkConnections(scope: .all(ports: [23, 42, 443, 8080]), reason: \"internet good\")]", permissionError: "all network connections on ports: 23, 42, 443, 8080", reason: "internet good", remedy: ["--allow-network-connections", "all:23,42,443,8080"]) at PackageCommandTests.swift:5547:25: Expectation failed: (stdout → "").contains("hello world")
Error: recorded an issue with 2 arguments buildData → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.native, config: PackageModel.BuildConfiguration.debug), testData → CommandPluginNetworkingPermissionsTestData(permissionsManifestFragment: "[.allowNetworkConnections(scope: .all(), reason: \"internet good\")]", permissionError: "all network connections on all ports", reason: "internet good", remedy: ["--allow-network-connections", "all"]) at PackageCommandTests.swift:5547:25: Expectation failed: (stdout → "").contains("hello world")
Error: recorded an issue with 2 arguments buildData → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.swiftbuild, config: PackageModel.BuildConfiguration.debug), testData → CommandPluginNetworkingPermissionsTestData(permissionsManifestFragment: "[.allowNetworkConnections(scope: .all(ports: [23, 42, 443, 8080]), reason: \"internet good\")]", permissionError: "all network connections on ports: 23, 42, 443, 8080", reason: "internet good", remedy: ["--allow-network-connections", "all:23,42,443,8080"]) at PackageCommandTests.swift:5547:25: Expectation failed: (stdout → "").contains("hello world")
See the attached log for the full Windows Self Hosted Jenkins console log that was triggered by PR #9028: consoleText_1969.txt
Expected behavior
The test function is reliable and not marked as withKnownIssue
.
Actual behavior
The test function is marked as intermittent failing on Windows.
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a
)
No response