Skip to content

Conversation

@bnbarham
Copy link
Contributor

Execution of the MultiJobExecutor throws a
Driver.ErrorDiagnostics.emitted if the job was not successful, ie. it assume any errors were already emitted. Make sure to emit an error in all paths of ExecuteJobRule.executeJob so that failures aren't hidden.

Execution of the `MultiJobExecutor` throws a
`Driver.ErrorDiagnostics.emitted` if the job was not successful, ie. it
assume any errors were already emitted. Make sure to emit an error in
all paths of `ExecuteJobRule.executeJob` so that failures aren't hidden.
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham requested review from artemcm and owenv August 28, 2025 00:50
@bnbarham
Copy link
Contributor Author

bnbarham commented Aug 28, 2025

Interested in opinions for what this message should be - right now this becomes an AnyDiagnostic which then just prints the underlying error. But in the case that it isn't a DiagnosticData, we could also add something extra to it, eg. Internal issue: ''. Please file an issue at ... or something similar.

(This came up in investigating the fatalError we were seeing sometimes on Windows: swiftlang/swift#83606 (comment))

@bnbarham bnbarham merged commit e7e3390 into swiftlang:main Sep 2, 2025
3 checks passed
@bnbarham bnbarham deleted the error-on-internal-failure branch September 2, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants