swiftlang / swift-llbuild

A low-level build system, used by Xcode and the Swift Package Manager
Apache License 2.0
1.09k stars 198 forks source link

[SR-2788] llbuild test failure in missing-inputs.llbuild case #797

Open 41412bb9-c79a-4f5a-8a7f-383cb40aa74b opened 8 years ago

41412bb9-c79a-4f5a-8a7f-383cb40aa74b commented 8 years ago
Previous ID SR-2788
Radar None
Original Reporter @rintaro
Type Bug
Environment Ubuntu 14.04
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | llbuild | |Labels | Bug | |Assignee | @ddunbar | |Priority | Medium | md5: d06dc9883097ab9209de220a65bf9778

Issue Description:

This test failure is seen in https://github.com/apple/swift/pull/5041

FAIL: llbuild :: BuildSystem/Build/missing-inputs.llbuild (20 of 118)
******************** TEST 'llbuild :: BuildSystem/Build/missing-inputs.llbuild' FAILED ********************
Script:
--
rm -rf /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build
mkdir -p /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build
cp /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build/build.llbuild
'/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/bin/llbuild' buildsystem build --serial --chdir /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build &> /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out || true
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llvm-linux-x86_64/bin/FileCheck /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild --input-file /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out --check-prefix=CHECK-FAILURE
touch /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build/input
'/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/bin/llbuild' buildsystem build --serial --chdir /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build &> /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp2.out || true
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llvm-linux-x86_64/bin/FileCheck /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild --input-file /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp2.out --check-prefix=CHECK-FAILURE-2
--
Exit Code: 1

Command Output (stdout):
--
$ "rm" "-rf" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build"
$ "mkdir" "-p" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build"
$ "cp" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build/build.llbuild"
$ "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/bin/llbuild" "buildsystem" "build" "--serial" "--chdir" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.build"
# redirected output from '/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out':
/bin/sh -c true
<unknown>:0: error: build had 1 command failures

<unknown>:0: error: cannot build 'output-1' due to missing input

note: command had no output on stdout or stderr
error: command failed with exit status: 1
$ "true"
$ "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llvm-linux-x86_64/bin/FileCheck" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild" "--input-file" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out" "--check-prefix=CHECK-FAILURE"
# command stderr:
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/llbuild/tests/BuildSystem/Build/missing-inputs.llbuild:12:18: error: expected string not found in input
# CHECK-FAILURE: missing input 'input' and no rule to build it
                 ^
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out:1:1: note: scanning from here
/bin/sh -c true
^
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/llbuild-linux-x86_64/tests/BuildSystem/Build/Output/missing-inputs.llbuild.tmp.out:4:26: note: possible intended match here
<unknown>:0: error: cannot build 'output-1' due to missing input
                         ^

error: command failed with exit status: 1
ddunbar commented 8 years ago

Added some additional logging in https://github.com/apple/swift-llbuild/commit/c845f82f3d099784dfcf8b91096b4285c046aae1 to try to figure out what is happening.