Skip to content

Commit

Permalink
Improve spurious rebuild checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Nov 6, 2019
1 parent 80493c8 commit ddb88e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskcluster/tc-tests-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ verify_bazel_rebuild()

cp ${DS_ROOT_TASK}/DeepSpeech/tf/bazel*.log ${TASKCLUSTER_ARTIFACTS}/

spurious_rebuilds=$(grep 'Executing action' "${bazel_explain_file}" | grep 'Compiling' | grep -v -E 'no entry in the cache|unconditional execution is requested' | wc -l)
spurious_rebuilds=$(grep 'Executing action' "${bazel_explain_file}" | grep 'Compiling' | grep -v -E 'no entry in the cache|unconditional execution is requested|Executing genrule //native_client:workspace_status|Compiling native_client/workspace_status.cc|Linking native_client/libdeepspeech.so' | wc -l)
if [ "${spurious_rebuilds}" -ne 0 ]; then
echo "Bazel rebuilds some file it should not, please check."

Expand Down

0 comments on commit ddb88e1

Please sign in to comment.