-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build-script] Tests should fail if one of test commands failed. #2217
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
[build-script] Tests should fail if one of test commands failed. #2217
Conversation
@swift-ci Please test and merge |
Good! It seems, this change unveiled a hidden problem 😁
Failed on compiling |
I believe the problem is resolved in #2327. |
@swift-ci Please test and merge |
@rintaro Could you take a look at the buildbot failure? https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04-long-test/60/console
|
I'm looking into it. |
First of all, some build commands are assuming ${PWD} is the build directory.
should resolve the current problem... But, I think, the root cause is that the test dependencies are not fully built before tests execution. |
I agree, that command shouldn't be building anything, looks like we are missing some dependencies. |
Long test implies |
Yes, I think it should be the full library. |
Testing: --- a/utils/build-script-impl
+++ b/utils/build-script-impl
@@ -1083,7 +1083,7 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do
if [[ "${BUILD_SWIFT_STDLIB_UNITTEST_EXTRA}" == "1" ]] ; then
SWIFT_STDLIB_TARGETS+=("swift-stdlib-${deployment_target}")
else
- if [[ "${VALIDATION_TEST}" == "1" ]] ; then
+ if [[ "${VALIDATION_TEST}" == "1" || "${LONG_TEST}" == "1" ]] ; then
SWIFT_STDLIB_TARGETS+=("swift-stdlib-${deployment_target}")
else
SWIFT_STDLIB_TARGETS+=("swift-test-stdlib-${deployment_target}") |
Passed locally. Could you try apply that and wait the bot?
|
@rintaro Mind submitting a PR? I'll accept immediately. |
Sure. |
What's in this pull request?
Test script:
should be considered as failed, and
true
should never be executed.Use
-e
option for test script execution:sh -e -x -c "script.."
Before merging this pull request to apple/swift repository: