Swift CI "auto retry"?

Is there any way to get Swift CI to automatically retry a “[smoke] test and merge” after master starts building/testing successfully again?

Failing that, is anybody looking into the "<unknown>:0: error: unexpected warning produced: argument unused during compilation: '-mtvos-simulator-version-min=9.0.0’” testing failures that are breaking both macOS and Linux?

Dave

This is caused by clang change 1ac71826854a809f67ae15ddacaaa9a6eb8189e8.

This change was reverted on swift-4.1-branch. Merging clang's swift-4.1-branch into stable is blocked by another error that we can also see here: https://ci.swift.org/job/swift-PR-osx/2060/consoleFull#-12191974833122a513-f36a-4c87-8ed7-cbc36a1ec144

FAILED: lib/swift/iphoneos/armv7s/libswiftXCTest.dylib
: && /Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/llvm-macosx-x86_64/./bin/clang++ -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -fno-sanitize=all -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -O3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -dynamiclib -Wl,-headerpad_max_install_names -stdlib=libc++ -target armv7s-apple-ios7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -arch armv7s -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/../../../Developer/Library/Frameworks -mios-version-min=8.0 -Wl,-sectcreate,__TEXT,__info_plist,/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/stdlib/public/SDK/XCTest/Info.plist "-L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./lib/swift/iphoneos/armv7s" "-L/Users/buildnode/jenkins/workspace/swi
ft-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./bin/../lib/swift/iphoneos/armv7s" "-L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./bin/../lib/swift/iphoneos" -o lib/swift/iphoneos/armv7s/libswiftXCTest.dylib -install_name @rpath/libswiftXCTest.dylib stdlib/public/SDK/XCTest/iphoneos/armv7s/XCTest.o stdlib/public/SDK/XCTest/CMakeFiles/swiftXCTest-iphoneos-armv7s.dir/XCTestCaseAdditions.mm.o -L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/llvm-macosx-x86_64/./lib -framework Foundation -framework XCTest lib/swift/iphoneos/armv7s/libswiftCoreMedia.dylib lib/swift/iphoneos/armv7s/libswiftUIKit.dylib -framework CoreMedia -framework UIKit lib/swift/iphoneos/armv7s/libswiftFoundation.dylib lib/swift/iphoneos/armv7s/libswiftObjectiveC.dylib lib/swift/iphoneos/armv7s/libswiftCore.dylib -framework Foundation -framework CoreFoundation && :
clang-5.0: warning: argument unused during compilation: '-miphoneos-version-min=8.0' [-Wunused-command-line-argument]
ld: warning: embedded dylibs/frameworks only run on iOS 8 or later
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/XCTest.framework/XCTest) file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture armv7s

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)

···

On Dec 20, 2017, at 7:34 AM, David Zarzycki via swift-dev <swift-dev@swift.org> wrote:

Is there any way to get Swift CI to automatically retry a “[smoke] test and merge” after master starts building/testing successfully again?

Failing that, is anybody looking into the "<unknown>:0: error: unexpected warning produced: argument unused during compilation: '-mtvos-simulator-version-min=9.0.0’” testing failures that are breaking both macOS and Linux?

Dave
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

That is the very error that was caused by the Clang change.

Jordan

···

On Dec 20, 2017, at 08:04, Arnold Schwaighofer via swift-dev <swift-dev@swift.org> wrote:

This is caused by clang change 1ac71826854a809f67ae15ddacaaa9a6eb8189e8.

This change was reverted on swift-4.1-branch. Merging clang's swift-4.1-branch into stable is blocked by another error that we can also see here: https://ci.swift.org/job/swift-PR-osx/2060/consoleFull#-12191974833122a513-f36a-4c87-8ed7-cbc36a1ec144

FAILED: lib/swift/iphoneos/armv7s/libswiftXCTest.dylib
: && /Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/llvm-macosx-x86_64/./bin/clang++ -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -fno-sanitize=all -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -O3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -dynamiclib -Wl,-headerpad_max_install_names -stdlib=libc++ -target armv7s-apple-ios7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -arch armv7s -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/../../../Developer/Library/Frameworks -mios-version-min=8.0 -Wl,-sectcreate,__TEXT,__info_plist,/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/stdlib/public/SDK/XCTest/Info.plist "-L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./lib/swift/iphoneos/armv7s" "-L/Users/buildnode/jenkins/workspace/swi
ft-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./bin/../lib/swift/iphoneos/armv7s" "-L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/./bin/../lib/swift/iphoneos" -o lib/swift/iphoneos/armv7s/libswiftXCTest.dylib -install_name @rpath/libswiftXCTest.dylib stdlib/public/SDK/XCTest/iphoneos/armv7s/XCTest.o stdlib/public/SDK/XCTest/CMakeFiles/swiftXCTest-iphoneos-armv7s.dir/XCTestCaseAdditions.mm.o -L/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/llvm-macosx-x86_64/./lib -framework Foundation -framework XCTest lib/swift/iphoneos/armv7s/libswiftCoreMedia.dylib lib/swift/iphoneos/armv7s/libswiftUIKit.dylib -framework CoreMedia -framework UIKit lib/swift/iphoneos/armv7s/libswiftFoundation.dylib lib/swift/iphoneos/armv7s/libswiftObjectiveC.dylib lib/swift/iphoneos/armv7s/libswiftCore.dylib -framework Foundation -framework CoreFoundation && :
clang-5.0: warning: argument unused during compilation: '-miphoneos-version-min=8.0' [-Wunused-command-line-argument]
ld: warning: embedded dylibs/frameworks only run on iOS 8 or later
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/XCTest.framework/XCTest) file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture armv7s

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)