Skip to content

ci: run checks in the merge queue and cap job runtimes - #848

Merged
nh13 merged 1 commit into
mainfrom
nh/ci-merge-group-trigger
Aug 20, 2026
Merged

nh13 merged 1 commit into
mainfrom
nh/ci-merge-group-trigger

Conversation

@nh13

@nh13 nh13 commented Aug 20, 2026

Copy link
Copy Markdown
Member

Groundwork for enabling a branch merge queue on main (mirroring the ferro-hgvs setup). This is step 1 of 3: it lands the workflow changes the queue depends on, ahead of any ruleset change. No queue is enabled by this PR.

What changes

  • Adds a merge_group trigger to the Check and Test workflow, so all 13 jobs run against each group the queue assembles.
  • Adds timeout-minutes: 20 to every job in the workflow.

Why the trigger has to land first

GitHub evaluates merge_group workflows from the target branch (main), not from the PR sitting in the queue. So the trigger must already be on main before the queue can require these checks — otherwise every queued PR would wait forever on checks that never start. The queue's required-check list will be exactly these job names.

Why the timeouts

In a merge queue a hung check blocks every entry behind it until the check-response timeout evicts the whole group. An infrastructure stall — e.g. the stalled apt mirror already seen on the sort-correctness job — must fail fast rather than idle at GitHub's 6-hour default. This makes the 20-minute bound uniform across the workflow; the healthy path completes in ~4 minutes, so it's ~5× headroom.

Not in this PR

  • miri.yml is intentionally left PR-only (it's paths-filtered to fgumi-raw-bam; a required check that doesn't run on every group would deadlock the queue, so it stays off the required list).
  • The branch ruleset (required status checks + merge_queue rule) — step 2, in a follow-up once this is on main.

Adds a `merge_group` trigger to the Check and Test workflow so every job
runs against the queue's assembled group, and a 20-minute timeout to each
job.

The merge_group trigger is a prerequisite for enabling a branch merge
queue: GitHub evaluates merge_group workflows from the target branch, so
the trigger must live on main before the queue can require these checks —
otherwise queued PRs wait forever on checks that never start. The queue's
required-check list is exactly these job names.

The per-job timeout bounds the queue's blast radius: in a merge queue a
hung check blocks every entry behind it until the check-response timeout
evicts the group, so an infrastructure stall (e.g. a stalled apt mirror,
already observed here) must fail fast instead of idling at GitHub's 6-hour
default. sort-correctness already carried a cap on some branches; this
makes the bound uniform across the workflow.
@nh13
nh13 deployed to github-actions August 20, 2026 22:00 — with GitHub Actions Active
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 100e5324-b913-44b2-b04b-81628236ec06

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@nh13

nh13 commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai pause

@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown
✅ Action performed

Reviews paused.

@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.46%. Comparing base (e51dc4b) to head (142d747).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   94.46%   94.46%           
=======================================
  Files         187      187           
  Lines      115301   115301           
=======================================
+ Hits       108921   108922    +1     
+ Misses       6380     6379    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nh13
nh13 merged commit c2b5d22 into main Aug 20, 2026
16 checks passed
@nh13
nh13 deleted the nh/ci-merge-group-trigger branch August 20, 2026 22:06
@nh13 nh13 mentioned this pull request Aug 20, 2026

This branch was successfully deployed

1 active deployment
github-actions — 142d7471 Deployed Aug 20, 2026 by nh13 via coverage #3760
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant