-
Notifications
You must be signed in to change notification settings - Fork 26
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
ci: Update upload logic to use new streaming support #111
Conversation
.github/workflows/build-yocto.yml
Outdated
if [[ $line == STATUS=* ]]; then | ||
if [[ $line == "STATUS=OK" ]]; then | ||
break | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indents seem broken. Is it a github UI bug or a real bug in code?
f707b26
to
9de3618
Compare
The file server now has a way to stream progress if the client side has logic. This should help with 2 things: * better live debug * less 503 errors that happen due to the server taking too long to deliver its status code Signed-off-by: Andy Doan <[email protected]>
9de3618
to
24c0ed6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fi | ||
fi | ||
done | ||
[ $okay -eq 1 ] && break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@doanac I believe that this may not work as expected if the bash script code run with set -e
.
In this case when the okay != 1
the script will abort as the evaluations of the expression will return false, what causes abort when set -e
is active.
We need to replace that with if conditional statement
if [ $okay -eq 1 ]; then
break
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test anything to verify what I said but if what I said is true, the consequence is that there are no retries and the loop aborts on the first failure when okay != 1
.
The file server now has a way to stream progress if the client side has logic. This should help with 2 things: