Repository navigation
docs: document fork CI and merge queue in contribution guide - #21055
Conversation
Pull requests from forks to master now run Java CI on the author's fork, and master is merged through a merge queue (apache#20471). Add a section on enabling Actions on a fork, starting a run, and finding results, and a section on merging through the queue. Replace the Squash and Merge instruction, since the queue squashes.
|
@wombatu-kun Can you please help to approve this docsite change, thank you. |
| ### CI for Pull Requests from Forks | ||
|
|
||
| Pull requests from a fork to `master` run the Java CI suite on your fork, using your fork's own GitHub Actions runners, | ||
| instead of the shared ASF runner pool. Upstream only runs the lightweight checks (PR title, license and source validation). |
There was a problem hiding this comment.
The Trino integration tests still run upstream on matching fork PRs, and docs-only queue entries skip the Java test jobs. Could you scope the fork behavior to Java CI and qualify the full-suite claim for docs-only changes?
There was a problem hiding this comment.
Done in 354e950. The intro now says upstream Java CI skips its test jobs for fork PRs, while path-filtered workflows such as the Trino connector tests still run upstream when the change touches them.
The merge-queue sentence now says docs-only PRs skip the test jobs there.
|
|
||
| :::tip CI looks stuck? | ||
| If CI on your PR never turns green, Actions is most likely not enabled on your fork. In that case the PR's `CI (fork)` | ||
| check says "Enable CI on your fork". Enable Actions and start a run as described above. |
There was a problem hiding this comment.
A fork with Actions disabled in its settings can show No fork CI run for this commit. Please mention that message alongside Enable CI on your fork and point contributors to Settings > Actions > General.
There was a problem hiding this comment.
Done in 354e950. The tip now lists both "Enable CI on your fork" and "No fork CI run for this commit".
It also points to Settings > Actions > General, since a fork with Actions off there still shows its workflows as active.
| icon shows the run: a yellow dot while in progress, a green tick or a red cross when done. Click it for per-job details. | ||
| - **Your fork's Actions tab** lists every run. Re-run failed jobs from there. | ||
|
|
||
| Codecov reports still arrive on the PR, about 15 minutes after your fork run finishes. |
There was a problem hiding this comment.
The coverage workflow skips PRs whose last update was more than 24 hours ago. Please qualify the 15-minute estimate so contributors rerunning jobs on an older PR know when to expect a report.
There was a problem hiding this comment.
Done in 354e950. Changed to "up to about 15 minutes" and added the 24-hour window.
If jobs are re-run on a PR that has been quiet for longer, the report arrives only after the PR is updated again, for example by a push.
| ### Merging Pull Requests | ||
|
|
||
| `master` is merged through a GitHub merge queue. Once a PR is approved and its checks are green (for a fork PR, that includes | ||
| `CI (fork)`), a committer clicks **Merge when ready** to add it to the queue. The queue runs Java CI on ASF runners against the latest `master` plus the PRs queued ahead of it, |
There was a problem hiding this comment.
A docs-only fork PR normally gets a neutral CI (fork) result. Should a committer queue it with that result, or should the contributor start a manual run first?
There was a problem hiding this comment.
we can queue it with that result.
There was a problem hiding this comment.
Added to the Merging section in 354e950: a docs-only fork PR gets a neutral CI (fork) and can be queued as is, without a manual run.
Scope the upstream skip to Java CI, since path-filtered workflows such as the Trino connector tests still run upstream on fork PRs, and note that docs-only queue entries skip the test jobs. Mention the "No fork CI run for this commit" message and Settings > Actions > General, the 24-hour window of the coverage bridge, and that a docs-only fork PR can be queued with a neutral CI (fork) check.
Describe the issue this Pull Request addresses
issue: #20471
Pull requests from forks to
masternow run Java CI on the author's fork, andmasteris merged through a merge queue. The contribution guide on the site does not cover either yet.Summary and Changelog
Updates
website/contribute/how-to-contribute.md:Content follows the "Pull requests from forks" section of
.github/workflows/README.mdonmaster.Impact
Docs only.
Risk Level
none
Documentation Update
This is the documentation update.
Contributor's checklist