Skip to content

docs: document fork CI and merge queue in contribution guide - #21055

Merged
voonhous merged 3 commits into
apache:asf-sitefrom
voonhous:docs-fork-ci-contrib-guide
Dec 4, 2026
Merged

voonhous merged 3 commits into
apache:asf-sitefrom
voonhous:docs-fork-ci-contrib-guide

Conversation

@voonhous

@voonhous voonhous commented Dec 3, 2026

Copy link
Copy Markdown
Member

Describe the issue this Pull Request addresses

issue: #20471

Pull requests from forks to master now run Java CI on the author's fork, and master is 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:

  • New "CI for Pull Requests from Forks" section: what runs on the fork vs upstream, one-time setup, how to start a run when the head commit was pushed before Actions was enabled (Run workflow, since an empty commit starts no run), the "Enable CI on your fork" hint, where to see results, Codecov timing, and what stays the same.
  • New "Merging Pull Requests" section: Merge when ready, what the queue tests, the docs-only skip, and not pushing to a queued PR.
  • Replaces the "Squash and Merge" instruction, since the merge queue squashes.

Content follows the "Pull requests from forks" section of .github/workflows/README.md on master.

Impact

Docs only.

Risk Level

none

Documentation Update

This is the documentation update.

Contributor's checklist

  • Read through contributor's guide
  • Enough context is provided in the sections above
  • Adequate tests were added if applicable

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.
@voonhous

voonhous commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

@wombatu-kun Can you please help to approve this docsite change, thank you.

@github-actions github-actions Bot added docs size:S PR with lines of changes in (10, 100] labels Dec 3, 2026
Comment thread website/contribute/how-to-contribute.md Outdated
### 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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread website/contribute/how-to-contribute.md Outdated

:::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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread website/contribute/how-to-contribute.md Outdated
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread website/contribute/how-to-contribute.md Outdated
### 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can queue it with that result.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@voonhous
voonhous merged commit 9312197 into apache:asf-site Dec 4, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants