The GitHub Actions job "Benchmarks PR Comment" on texera.git/main has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
fb4dad9cd360b13fd95c3e1efc0c7a68162e98c7 / Kary Zheng 
<[email protected]>
ci: skip benchmark comment when artifact is missing (#5761)

### What changes were proposed in this PR?

This PR prevents the `Benchmarks PR Comment` workflow from failing when
the upstream `Benchmarks` workflow run has no `bench-results-*`
artifact.

The artifact download step now records whether an artifact was found.
The unzip and PR-number steps only run when that artifact exists, so a
missing artifact exits the comment workflow cleanly after emitting the
existing warning instead of failing at `unzip`.

### Any related issues, documentation, discussions?

Closes #5755.

### How was this PR tested?

```bash
ruby -e 'require "yaml"; 
YAML.load_file(".github/workflows/benchmarks-pr-comment.yml"); puts "yaml ok"'
```

Fork workflow-run test:

- Merged this workflow change into `kz930/texera:main` through fork PR
https://github.com/kz930/texera/pull/1 so the updated `workflow_run`
file was present on the fork default branch.
- Opened fork-to-fork test PR https://github.com/kz930/texera/pull/2.
- The fork `Benchmarks` workflow ran from the pull request event and
completed successfully:
https://github.com/kz930/texera/actions/runs/27729684035.
- The downstream `Benchmarks PR Comment` workflow then triggered from
`workflow_run`, downloaded the `bench-results-*` artifact, unzipped it,
read `pr-number.txt`, and created the benchmark comment on the fork PR:
https://github.com/kz930/texera/actions/runs/27729974324 and
https://github.com/kz930/texera/pull/2#issuecomment-4736897569.
- The logs show the guarded artifact path setting `found=true`; the
unzip, PR-number, and comment steps ran only after the artifact was
found.

Note: the fork has no `gh-pages` branch, so the benchmark action emitted
non-fatal `gh-pages` baseline warnings, but the `Benchmarks` job and
downstream comment workflow both completed successfully.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Codex (GPT-5)

Report URL: https://github.com/apache/texera/actions/runs/27731486956

With regards,
GitHub Actions via GitBox

Reply via email to