Skip to content

Commit 83b4439

Browse files
authored
chore(ci): attempt to fix rare flake (#16635)
I'm assuming this is a very rare time-of-check-vs-time-of-use race condition ``` stat: cannot statx '/tmp/b14e7e9201f291bc': No such file or directory /home/aztec-dev/aztec-packages/ci3/run_test_cmd: line 108: 1756344688 - : syntax error: operand expected (error token is "- ") ``` in http://ci.aztec-labs.com/8927398b96150dd1
2 parents 5ecbaf2 + 9a622fb commit 83b4439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci3/run_test_cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ function live_publish_log {
105105
publish_log
106106
echo -e "${blue}RUNNING${reset}${log_info:-}: $test_cmd"
107107
while [ -f $tmp_file ]; do
108-
if [ $(( $(date +%s) - $(stat -c %Y "$tmp_file") )) -le 5 ]; then
108+
local stat=$(stat -c %Y "$tmp_file" || echo 0)
109+
if [ $(( $(date +%s) - "$stat" )) -le 5 ]; then
109110
publish_log
110111
fi
111112
sleep 5 &

0 commit comments

Comments
 (0)