Skip to content

CI: wait for the uploaded artifact before exposing it in the Playground preview - #373

Open
Castellon-ACM wants to merge 1 commit into
trunkfrom
ci/playground-preview-wait-for-artifact
Open

Castellon-ACM wants to merge 1 commit into
trunkfrom
ci/playground-preview-wait-for-artifact

Conversation

@Castellon-ACM

@Castellon-ACM Castellon-ACM commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The "Build and post Playground preview button" job fails now and then with:

Unable to download artifact(s): No artifacts found for ID: 15005002433

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}/artifacts until 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 own github.token, and actions: read is already granted.

Verification

  • The workflow is valid YAML, and the jq expression returns 1 for the artifact of the failed Move blocks to block API version 3 #366 run and 0 for a name that does not exist (run with gh api --jq against the real endpoint).
  • This pull request runs the preview workflow with the change. That run only shows that the new step does not break the job: the failure is a race, so one green run does not prove it is gone. I will re-run it a few times and report in a comment.

Not checked

  • Whether listing the artifact is exactly the condition that download-artifact needs. It is the closest signal the API offers; if the failure still shows up, the next option is retrying the whole expose step.
Open WordPress Playground Preview

…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.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-01T10:03:54.876473Z
We couldn’t complete this review. Comment @codex review to try again.
6c980d0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant