-
Notifications
You must be signed in to change notification settings - Fork 1.4k
backtrace #9516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jakepetroules
wants to merge
1
commit into
main
Choose a base branch
from
backtrace
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+195
−249
Draft
backtrace #9516
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ private func executeAddURLDependencyAndAssert( | |
| } | ||
|
|
||
| @Suite( | ||
| .serializedIfOnWindows, | ||
| .serialized, | ||
| .tags( | ||
| .TestSize.large, | ||
| .Feature.Command.Package.General, | ||
|
|
@@ -1044,7 +1044,7 @@ struct PackageCommandTests { | |
| func describeJson( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue(isIntermittent: ProcessInfo.hostOperatingSystem == .windows) { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await fixture(name: "DependencyResolution/External/Simple/Bar") { fixturePath in | ||
| // Generate the JSON description. | ||
| let (jsonOutput, _) = try await execute( | ||
|
|
@@ -1189,7 +1189,7 @@ struct PackageCommandTests { | |
| withPrettyPrinting: Bool, | ||
| ) async throws { | ||
| // try XCTSkipIf(buildSystemProvider == .native && (try? UserToolchain.default.getSymbolGraphExtract()) == nil, "skipping test because the `swift-symbolgraph-extract` tools isn't available") | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await fixture( | ||
| name: "DependencyResolution/Internal/Simple", | ||
| removeFixturePathOnDeinit: true | ||
|
|
@@ -3069,9 +3069,7 @@ struct PackageCommandTests { | |
| func purgeCacheWithoutPackage( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue( | ||
| isIntermittent: ProcessInfo.isHostAmazonLinux2() // rdar://134238535 | ||
| ) { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // Create a temporary directory without Package.swift | ||
| try await fixture(name: "Miscellaneous") { fixturePath in | ||
| let tempDir = fixturePath.appending("empty-dir-for-purge-test") | ||
|
|
@@ -3090,7 +3088,7 @@ struct PackageCommandTests { | |
| } | ||
| } | ||
| } when: { | ||
| ProcessInfo.isHostAmazonLinux2() | ||
| ProcessInfo.isHostAmazonLinux2() //rdar://134238535 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we have a GitHub issue instead of a radar link? Also, can we add said issue as a |
||
| } | ||
| } | ||
|
|
||
|
|
@@ -3434,7 +3432,7 @@ struct PackageCommandTests { | |
| """ | ||
| ) | ||
| } | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await testWithTemporaryDirectory { tmpPath in | ||
| let packageDir = tmpPath.appending(components: "library") | ||
| try localFileSystem.writeFileContents( | ||
|
|
@@ -4421,7 +4419,7 @@ struct PackageCommandTests { | |
| func buildToolPlugin( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await testBuildToolPlugin(data: data, staticStdlib: false) | ||
| } when: { | ||
| ProcessInfo.hostOperatingSystem == .windows && data.buildSystem == .swiftbuild | ||
|
|
@@ -4565,7 +4563,7 @@ struct PackageCommandTests { | |
| buildSystem: data.buildSystem, | ||
| ) | ||
| ) { error in | ||
| withKnownIssue { | ||
| withKnownIssue(isIntermittent: true) { | ||
| #expect(error.stderr.contains("This is text from the plugin")) | ||
| #expect(error.stderr.contains("error: This is an error from the plugin")) | ||
| } when: { | ||
|
|
@@ -5495,7 +5493,7 @@ struct PackageCommandTests { | |
| ) async throws { | ||
| let debugTarget = try buildData.buildSystem.binPath(for: .debug) + [executableName("placeholder")] | ||
| let releaseTarget = try buildData.buildSystem.binPath(for: .release) + [executableName("placeholder")] | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // By default, a plugin-requested build produces a debug binary | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let _ = try await execute( | ||
|
|
@@ -5530,7 +5528,7 @@ struct PackageCommandTests { | |
| ) async throws { | ||
| let debugTarget = try buildData.buildSystem.binPath(for: .debug) + [executableName("placeholder")] | ||
| let releaseTarget = try buildData.buildSystem.binPath(for: .release) + [executableName("placeholder")] | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // If the plugin specifies a debug binary, that is what will be built, regardless of overall configuration | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let _ = try await execute( | ||
|
|
@@ -5569,7 +5567,7 @@ struct PackageCommandTests { | |
| ) async throws { | ||
| let debugTarget = try buildData.buildSystem.binPath(for: .debug) + [executableName("placeholder")] | ||
| let releaseTarget = try buildData.buildSystem.binPath(for: .release) + [executableName("placeholder")] | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // If the plugin requests a release binary, that is what will be built, regardless of overall configuration | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let _ = try await execute( | ||
|
|
@@ -5607,7 +5605,7 @@ struct PackageCommandTests { | |
| ) async throws { | ||
| let debugTarget = try buildData.buildSystem.binPath(for: .debug) + [executableName("placeholder")] | ||
| let releaseTarget = try buildData.buildSystem.binPath(for: .release) + [executableName("placeholder")] | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // If the plugin inherits the overall build configuration, that is what will be built | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let _ = try await execute( | ||
|
|
@@ -5705,7 +5703,7 @@ struct PackageCommandTests { | |
| func commandPluginBuildTestabilityAllWithTests_Release_True( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue(isIntermittent: (ProcessInfo.hostOperatingSystem == .linux)) { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // Overall configuration: release, plugin build request: release including tests -> with testability | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let _ = await #expect(throws: Never.self) { | ||
|
|
@@ -5754,7 +5752,7 @@ struct PackageCommandTests { | |
| // otherwise the logs may be different in subsequent tests. | ||
|
|
||
| // Check than nothing is echoed when echoLogs is false | ||
| try await withKnownIssue(isIntermittent: ProcessInfo.hostOperatingSystem == .windows) { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await fixture(name: "Miscellaneous/Plugins/CommandPluginTestStub") { fixturePath in | ||
| let (stdout, stderr) = try await execute( //got here | ||
| ["print-diagnostics", "build"], | ||
|
|
@@ -6502,7 +6500,7 @@ struct PackageCommandTests { | |
| func commandPluginBuildingCallbacks( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await testWithTemporaryDirectory { tmpPath in | ||
| let buildSystemProvider = data.buildSystem | ||
| // Create a sample package with a library, an executable, and a command plugin. | ||
|
|
@@ -6678,7 +6676,7 @@ struct PackageCommandTests { | |
| } | ||
|
|
||
| // SwiftBuild is currently not producing a static archive for static products unless they are linked into some other binary. | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| // Invoke the plugin with parameters choosing a verbose build of MyStaticLibrary for release. | ||
| do { | ||
| let (stdout, _) = try await execute( | ||
|
|
@@ -6757,7 +6755,7 @@ struct PackageCommandTests { | |
| arguments: [BuildSystemProvider.Kind.native, .swiftbuild], | ||
| ) | ||
| func commandPluginBuildingCallbacksExcludeUnbuiltArtifacts(buildSystem: BuildSystemProvider.Kind) async throws { | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await fixture(name: "PartiallyUnusedDependency") { fixturePath in | ||
| let (stdout, _) = try await execute( | ||
| ["dump-artifacts-plugin"], | ||
|
|
@@ -6796,7 +6794,7 @@ struct PackageCommandTests { | |
| func commandPluginTestingCallbacks( | ||
| data: BuildData, | ||
| ) async throws { | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await testWithTemporaryDirectory { tmpPath in | ||
| // Create a sample package with a library, a command plugin, and a couple of tests. | ||
| let packageDir = tmpPath.appending(components: "MyPackage") | ||
|
|
@@ -7498,7 +7496,7 @@ struct PackageCommandTests { | |
| func commandPluginDynamicDependencies( | ||
| buildData: BuildData | ||
| ) async throws { | ||
| try await withKnownIssue { | ||
| try await withKnownIssue(isIntermittent: true) { | ||
| try await testWithTemporaryDirectory { tmpPath in | ||
| // Create a sample package with a command plugin that has a dynamic dependency. | ||
| let packageDir = tmpPath.appending(components: "MyPackage") | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: this is a regression. the test was passing on Windows, and not it no longer is. do we know what caused this? Can we add a test in SwiftBuild to prevent this regression?