Repository navigation
docs: document fork CI and merge queue in contribution guide #21055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,6 +186,50 @@ In rare cases, you can skip validation by adding one of these labels to your PR: | |
|
|
||
| Or include `[skip ci]` in your PR title for CI-related changes. | ||
|
|
||
| ### 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). | ||
| The full suite still runs on ASF runners before anything lands, through the [merge queue](#merging-pull-requests). | ||
|
|
||
| #### One-time setup | ||
|
|
||
| 1. In your fork of Hudi, open the **Actions** tab and enable workflows by clicking | ||
| **I understand my workflows, go ahead and enable them**. | ||
|
|
||
|  | ||
|
|
||
| 2. Sync your fork and rebase your branch onto the latest upstream `master`, so that it carries the current CI workflows. | ||
| 3. Push to your branch. Each push that changes more than docs and images now runs `Java CI` on your fork. | ||
|
|
||
| If the head commit of your branch was already pushed before you enabled Actions, pushing again does not start a run: | ||
| a push without file changes, such as an empty commit, is skipped. Instead, open the **Actions** tab of your fork, | ||
| select `Java CI`, click **Run workflow** and pick your branch. | ||
|
|
||
| :::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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A fork with Actions disabled in its settings can show
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| ::: | ||
|
|
||
| #### Where to see your CI results | ||
|
|
||
| - **On the PR**: the `CI (fork)` check mirrors your fork's run and links to it. It refreshes about every 15 minutes, | ||
| so it can lag behind the actual run. | ||
| - **Live status**: on the PR page, click your branch name in the header line | ||
| ("`<you>` wants to merge N commits into `apache:master` from `<you>:<branch>`"). On your branch's latest commit, the status | ||
| 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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| #### What stays the same | ||
|
|
||
| - PRs to `release-*` branches and `branch-0.x` still run the full suite upstream. | ||
| - Azure CI is unchanged. | ||
|
|
||
| More details are in the [Pull requests from forks](https://github.com/apache/hudi/blob/master/.github/workflows/README.md#pull-requests-from-forks) | ||
| section of the workflows README. The tracking issue is [#20471](https://github.com/apache/hudi/issues/20471). | ||
|
|
||
| ## Coding guidelines | ||
|
|
||
| Our code can benefit from contributors speaking the same "language" when authoring code. After all, it gets read a lot more than it gets | ||
|
|
@@ -279,10 +323,19 @@ For website changes, please build the site locally & test navigation, formatting | |
| - If progress is hard, please involve another PMC member/Committer to share another perspective. | ||
| - Staying humble and eager to learn, goes a long way in ensuring these reviews are smooth. | ||
| - Reviewers are expected to uphold the code quality, standards outlined above. | ||
| - When merging PRs, always make sure you are squashing the commits using the "Squash and Merge" feature in GitHub | ||
| - PRs to `master` are merged through the merge queue, which squashes the commits. See [Merging Pull Requests](#merging-pull-requests). | ||
| - When necessary/appropriate, reviewers could make changes themselves to PR branches, with the intent to get the PR landed sooner. | ||
| Reviewers should seek explicit approval from the author before making large changes to the original PR. | ||
|
|
||
| ### 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, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A docs-only fork PR normally gets a neutral
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can queue it with that result.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| and the PR only merges if that run is green. A PR that changes only docs and images skips the test jobs in the queue. | ||
|
|
||
| Once a PR is in the merge queue, avoid pushing to it. The queue tests and merges the commits that were queued, | ||
| so later changes do not go in on their own; a committer has to re-queue the PR to include them. | ||
|
|
||
| ### Proposing Changes | ||
| We welcome new ideas and suggestions to improve the project along any dimensions - management, processes, technical vision/direction. To kick-start a discussion on the mailing thread | ||
| to effect change and source feedback, start a new email thread with the `[DISCUSS]` prefix and share your thoughts. If your proposal leads to a larger change, then it may be followed up | ||
|
|
||
There was a problem hiding this comment.
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 CIand qualify the full-suite claim for docs-only changes?There was a problem hiding this comment.
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 CIskips 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.