Skip to content
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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

doanac
Copy link
Contributor

@doanac doanac commented Dec 12, 2024

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

if [[ $line == STATUS=* ]]; then
if [[ $line == "STATUS=OK" ]]; then
break
else
Copy link

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?

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]>
Copy link
Contributor

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ricardosalveti ricardosalveti merged commit e485b11 into qualcomm-linux:main Dec 13, 2024
9 checks passed
fi
fi
done
[ $okay -eq 1 ] && break
Copy link
Contributor

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

Copy link
Contributor

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.

@doanac doanac deleted the stream-uploads branch December 13, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

5 participants