The GitHub Actions job "AutoQueue" on texera.git/main has failed.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
8841990f1d74dc5195d6e760352a3886a7d3a1f2 / Yicong Huang 
<[email protected]>
ci: add temporary AutoQueue workflow as merge-queue stand-in (#4672)

## What changes were proposed in this PR?

Adds a small GitHub Actions workflow
(`.github/workflows/auto-queue.yml`) that runs after every push to
`main`. It scans open PRs targeting `main` that have auto-merge enabled,
picks the oldest one whose head is behind `main` (and not
conflicting/draft), and calls `updateBranch` on it — i.e., merges `main`
into the PR head so its required CI re-runs and auto-merge can fire.

Picks one PR per main push, serialized via a `concurrency` group, so the
queue advances at most one step per merge.

## Any related issues, documentation, discussions?

Refs #4553. This is a temporary stand-in while we wait on the INFRA
ticket to enable native GitHub Merge Queue. The workflow should be
deleted once Merge Queue is available on `apache/texera`.

### Token requirement

The default `GITHUB_TOKEN`'s push to a PR head does **not** retrigger
required workflows on that PR. To make auto-merge actually fire, set a
fine-grained PAT (Contents: write, Pull requests: write, Metadata: read)
as the repo secret `AUTO_MERGE_TOKEN`. The workflow falls back to
`GITHUB_TOKEN` if the secret is absent (useful for dry-running).

## How was this PR tested?

Not yet — workflow runs only when on `main`. Plan:

- [ ] Land this PR.
- [x] Configure `AUTO_MERGE_TOKEN` repo secret.
- [ ] Verify on the next merge-to-main that the workflow logs identify a
candidate PR (or "No auto-merge PRs need updating") and that the chosen
PR's branch gets updated.

Manual sanity-check: `workflow_dispatch` is enabled so it can be invoked
from the Actions tab without a real merge.

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

Generated-by: Claude Opus 4.7 (Claude Code)

Co-authored-by: Yicong Huang <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to