Repository navigation
CI: wait for the uploaded artifact before exposing it in the Playground preview - #373
Open
Castellon-ACM wants to merge 1 commit into
Open
Castellon-ACM wants to merge 1 commit into
Castellon-ACM wants to merge 1 commit into
Conversation
…nd preview The expose step downloads the artifact by its ID right after it is uploaded. GitHub sometimes answers "No artifacts found for ID" because the upload is not visible yet, and the whole job fails for a reason unrelated to the pull request. Poll the run's artifact list first, for up to a minute.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The "Build and post Playground preview button" job fails now and then with:
The failing step is "Expose built artifact as a public URL". The previous step uploaded the artifact about one second earlier and its log already said it was finalized, so the job fails because the upload is not visible yet, not because of the pull request. It is intermittent: of the last 30 runs of this workflow 3 failed (#366, and the phpstan and postcss bumps, which started at the same moment as two bumps that passed). Re-running the job passes.
Change
A new step between the upload and the expose step polls
actions/runs/{run_id}/artifactsuntil the artifact appears (up to 10 tries, 6 s apart), then waits 5 more seconds. If it never appears it only warns and lets the next step try anyway, so the behaviour is never worse than today. It uses the workflow's owngithub.token, andactions: readis already granted.Verification
jqexpression returns1for the artifact of the failed Move blocks to block API version 3 #366 run and0for a name that does not exist (run withgh api --jqagainst the real endpoint).Not checked
download-artifactneeds. It is the closest signal the API offers; if the failure still shows up, the next option is retrying the whole expose step.