-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Test: ensure swift-[build|test] emit expected number of fatal error on console #8076
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
Test: ensure swift-[build|test] emit expected number of fatal error on console #8076
Conversation
Thanks for the contribution! A few comments, and I noticed the test fixture is missing. |
2e93797
to
8cf6b88
Compare
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.
Thanks for the feedback. I have revised the PR.
|
||
|
||
|
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.
Formatting is off here, would you mind running the formatter on newly added files?
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.
I ran swift format format --in-place Tests/_InternalTestSupportTests/Misc.swift
on the file.
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.
I still see stray whitespaces surrounding curly braces. Unfortunately, swift-format
is not great at following our formatting style and lacks required customizations to specify it. We're using https://github.com/nicklockwood/SwiftFormat in SwiftPM instead.
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.
Also see "Creating Pull Requests" section here https://github.com/swiftlang/swift-package-manager/blob/main/CONTRIBUTING.md#creating-pull-requests
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.
formatting all touched file using https://github.com/nicklockwood/SwiftFormat resulted in many changes. so I only formatted this file.
8cf6b88
to
d281225
Compare
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.
LGTM, pending @MaxDesiatov signing off on formatting
d281225
to
f972479
Compare
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.
Thanks!
@swift-ci test |
@swift-ci test windows |
…n console Add an automated tests that ensures swift-build and swift-test emit the expected amount of `error: fatalError` message on the console output.
f972479
to
8edd10e
Compare
@swift-ci test |
The Swift Test Linux Platform build failure appears to be unrelated to my change
|
@swift-ci please test Linux |
I believe swiftlang/swift#77309 was the underlying build issue and was merged about 6 hours ago. Can we re-trigger the failed build? |
@swift-ci please test Windows platform |
@swift-ci please test Linux platform |
Add an automated tests that ensures swift-build and swift-test emit the expected amount of
error: fatalError
message on the console output.Motivation:
Issue #6605 reported
error: fatalError
was emitted twice to the console output, and has since been fixed. We should ensure the issue does not regress.Modifications:
Add an automated tests that verifies
swift-build
does not emit aerror: fatalError
instdout
orstderr
when a building a test that does not compile.Result: