Hi guys,

I found some related discussions from ASF and Apache Kafka.

ASF discussed the temporary branches created by GitHub Merge Queue in
LEGAL-599, which has now been resolved:

https://issues.apache.org/jira/browse/LEGAL-599

Kafka has accepted KIP-1126 to introduce GitHub Merge Queue:

https://cwiki.apache.org/confluence/spaces/KAFKA/pages/340036064/KIP-1126+Serialize+changes+to+Kafka+with+a+build+queue

Kafka also created an ASF-hosted sandbox for evaluation:

https://github.com/apache/kafka-merge-queue-sandbox

The implementation is still being tracked here:

https://issues.apache.org/jira/browse/KAFKA-18789

This shows that there is already precedent for Apache projects to explore
and adopt Merge Queue.


Best regards,
Zhiwei Niu


Doyeon Kim <[email protected]> 于2026年8月25日周二 14:01写道:

> +1
>
> On Tue, Aug 25, 2026 at 2:05 PM zhiwei niu <[email protected]> wrote:
>
> > Hi community,
> >
> > A. Background:
> >
> > Recently, two deterministic compilation failures were reproducible on the
> > `dev` branch after changes had been merged:
> >
> > 1. [PR #11954: Fix the missing test constant reference](
> > https://github.com/apache/seatunnel/pull/11954)
> >    A previous change removed a constant but missed one remaining
> reference,
> >    causing the test sources in `seatunnel-engine-server` to fail
> > compilation.
> > 2. [PR #10998: Adapt to a method signature change](
> > https://github.com/apache/seatunnel/pull/10998)
> >    A parameter was added to a method signature, but one call site was not
> >    updated, causing `JdbcHiveIT` to fail compilation.
> >
> > These were deterministic compilation errors rather than flaky failures.
> CI
> > for
> > an individual PR validates the PR at that point in time, but it cannot
> > fully
> > guarantee that the PR will still build successfully when combined with
> the
> > latest `dev` branch and other PRs merged shortly before it.
> >
> >
> > B. Merge Queue introduction:
> >
> > Merge Queue adds a final integration gate before a PR enters `dev`. After
> > `Merge when ready` is clicked, the PR is not merged immediately. GitHub
> > creates
> > a temporary `merge_group` containing the latest `dev`, the current PR,
> and
> > the
> > PRs ahead of it in the queue, and then triggers the configured CI checks.
> >
> > The PR is merged in order only after all required checks pass. If a check
> > fails,
> > times out, or a conflict occurs, the corresponding PR is removed from the
> > queue
> > and the `dev` branch remains unchanged. This validates the final
> > combination of
> > changes immediately before merging and prevents independently successful
> > PRs
> > from breaking `dev` when merged consecutively.
> >
> > Official documentation: [GitHub Merge Queue]
> > <
> >
> https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue
> > >
> >
> >
> > C. Questions and answers:
> >
> > [1] What test scope will the merge queue execute?
> >     It will run:   ./mvnw -B -T 1C clean install -DskipTests
> > This command skips test execution but still compiles both main and test
> > sources,
> > allowing deterministic errors such as missing constants and incompatible
> > method
> > signatures to be detected.
> >
> >
> > [2] What state will a PR be in if the build fails?
> >     The PR will be removed from the queue and remain open. The PR page
> will
> > show the
> > Merge Queue failure reason and build logs. After the problem is fixed or
> > the
> > branch is rebased, someone with Write permission must click `Merge when
> > ready`
> > again to re-enter the queue.
> >
> > [3] How long will a merge queue build take?
> >    Recent comparable single-threaded full `install` CI jobs averaged
> about
> > 20 minutes. With a four-core runner and `-T 1C`, one PR is expected to
> take
> > approximately 10–20 minutes. A 30-minute timeout is recommended.
> >
> > [4] If the merge queue build fails, has the PR already been merged?
> >    No. A PR is merged only after the Merge Queue build succeeds. If the
> > build
> > fails, the PR remains open and `dev` is unchanged.
> >
> > [5] After the Merge Queue is introduced, can I choose to merge directly
> > without
> > entering the queue?
> >    A direct-merge option can be retained, but only for administrators or
> > users with
> > Branch Protection Bypass permission when the branch protection rule
> allows
> > bypassing. Regular users with Write permission must still use Merge
> Queue.
> >
> > [6] If one of several queued PRs fails, will the entire queue fail, and
> how
> > will it be handled?
> >    No. The failed PR is removed from the queue. Any later temporary
> > branches
> > containing that PR become invalid, so GitHub recreates them from the
> > updated
> > queue and runs their checks again.
> >
> > [7] Can merge queue builds run in parallel?
> >     Yes. `Build concurrency` can be configured from 1 to 100. An initial
> > value of 5
> > is recommended, allowing up to five queued PRs to be validated
> concurrently
> > while additional PRs wait.
> >
> > [8] How many PRs can be added to the queue at one time, and what happens
> > after
> > that number is exceeded?
> >    Each operation adds the current PR, while the queue can continue
> > accepting
> > additional PRs. GitHub does not publish a total queue-length limit. PRs
> > exceeding
> > the configured build concurrency wait in FIFO order; they are not fail
> >
> > Feedback and suggestions are welcome.
> >
> > Best regards,
> > Zhiwei Niu
> >
>

Reply via email to