Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3b1110a
chore(deps): update dependency vite to v8.3.4
renovate[bot] Oct 15, 2026
17dd5ad
ci: restore focused PR checks with parallel Mergify batches
tignear Oct 15, 2026
fc3948e
ci: defer version-only release checks to queue batches
tignear Oct 15, 2026
4ab58a9
ci: let superseded validation runs finish cancellation
tignear Oct 15, 2026
ceed64e
docs: include queue cancellation in the corrected CI guide
tignear Oct 15, 2026
009f1ea
ci: revalidate speculative predecessors when release policy changes
tignear Oct 15, 2026
89766e3
chore(deps): update dependency vite to v8.3.4 (#1296)
mergify[bot] Oct 15, 2026
9c16b78
fix(deps): update rust crate syn to v3.0.9
renovate[bot] Oct 15, 2026
2744a5c
chore(deps): update rust toolchain to 87ffb7f
renovate[bot] Oct 15, 2026
6ea87d1
Merge branch 'master' into fix/mergify-ci-throughput
tignear Oct 15, 2026
68eca44
ci: restore focused PR checks and parallel merge validation (#1300)
tignear Oct 15, 2026
de92e17
ci: restore focused validation from master
tignear Oct 15, 2026
05593b2
ci: pin the published Mergify CLI setup action
tignear Oct 15, 2026
775043c
ci: pin the published Mergify CLI setup action (#1305)
tignear Oct 15, 2026
3883cde
ci: batch queued PRs and defer lydite gates to the queue
tignear Oct 15, 2026
09ad9dd
chore(deps): update rust crate sha2 to v0.11.1
renovate[bot] Oct 15, 2026
687e313
ci: move full CodeQL analysis to weekly and manual runs
tignear Oct 15, 2026
03b9824
fix(deps): update rust crate syn to v3.0.9 (#1299)
mergify[bot] Oct 15, 2026
743a2c7
chore(deps): update rust crate sha2 to v0.11.1 (#1310)
mergify[bot] Oct 15, 2026
f548d57
ci: batch queued PRs and defer lydite gates to the queue (#1308)
mergify[bot] Oct 15, 2026
20be8c7
ci: split Mergify batches by change category
tignear Oct 15, 2026
ef46c00
ci: ignore obsolete merge queue title checks
tignear Oct 15, 2026
fd1416e
ci: ignore obsolete merge queue title checks (#1319)
mergify[bot] Oct 15, 2026
506d205
Merge branch 'master' into renovate/rust-stable-toolchain
tignear Oct 15, 2026
75f9057
ci: separate independent PR policy checks with queue scopes
tignear Oct 15, 2026
4e92dbd
ci: prioritize lightweight validated pull requests
tignear Oct 15, 2026
b48dbb1
ci: move full CodeQL analysis to weekly and manual runs (#1311)
mergify[bot] Oct 15, 2026
6f1328b
chore(deps): update rust toolchain to 87ffb7f (#1302)
mergify[bot] Oct 15, 2026
3d7498b
ci: separate merge queues by category and independent scope (#1318)
mergify[bot] Oct 16, 2026
0f75428
chore(develop): resolve master sync conflicts
tignear Oct 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CodeQL

# Enable CODEQL_ADVANCED_ENABLED only after disabling GitHub's default setup.
# See CONTRIBUTING.md for the cutover and rollback procedure.
on:
pull_request:
paths:
- ".github/workflows/**"
- ".github/actions/**"
schedule:
- cron: "17 4 * * 0"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && 'pr' || 'full' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
analyze:
if: vars.CODEQL_ADVANCED_ENABLED == 'true' && !startsWith(github.head_ref, 'mergify/merge-queue/')
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
max-parallel: 2
matrix:
language: ${{ fromJSON(github.event_name == 'pull_request' && '["actions"]' || '["actions", "c-cpp", "javascript-typescript", "python", "rust"]') }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4
with:
languages: ${{ matrix.language }}
build-mode: none
- uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4
with:
category: /language:${{ matrix.language }}
110 changes: 109 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,90 @@
# yaml-language-server: $schema=https://docs.mergify.com/mergify-configuration-schema.json
# Keep ordinary PR checks focused; validate combined trees on queue draft PRs.
merge_queue:
# Independent scopes advance separately; overlapping changes stay ordered.
mode: parallel
max_parallel_checks: 5
queued_label: queued
dequeued_label: dequeued

# Keep the product dependency graph together. Only these standalone PR-policy
# validators are independent of Veryl/compiler changes; unknown paths stay core.
scopes:
source:
files:
core:
include:
- "**"
exclude:
- .github/workflows/pr-title.yml
- scripts/check-pr-title.mjs
- scripts/check-pr-title.test.mjs
- scripts/check-pr-release-impact.mjs
- scripts/check-pr-release-impact.test.mjs
- scripts/check-mergify-batch.mjs
- scripts/check-mergify-batch.test.mjs
- scripts/check-mergify-queue-title.mjs
- scripts/check-mergify-queue-title.test.mjs
pr-policy:
include:
- .github/workflows/pr-title.yml
- scripts/check-pr-title.mjs
- scripts/check-pr-title.test.mjs
- scripts/check-pr-release-impact.mjs
- scripts/check-pr-release-impact.test.mjs
- scripts/check-mergify-batch.mjs
- scripts/check-mergify-batch.test.mjs
- scripts/check-mergify-queue-title.mjs
- scripts/check-mergify-queue-title.test.mjs
capacities:
core: 2
pr-policy: 1
barrier_files:
include:
- .mergify.yml
- release-please-config.json
- VERSION

# Use the actual change-based CI result, not the PR title or author, to prefer
# lightweight changes. Scope isolation handles independent running batches.
priority_rules:
- name: Lightweight validated changes first
conditions:
- check-success = Lint & Format
- check-skipped = Rust Test & NAPI Build
- check-skipped = JS Test (Ubuntu)
priority: high
allow_checks_interruption: false

queue_rules:
- name: default
- name: integration
batch_size: 1
batch_max_wait_time: 0 seconds
max_checks_retries: 0
checks_timeout: 3 hours
merge_method: merge
update_method: merge
commit_message_format:
title: pr-title
body: empty
trailers: []
branch_protection_injection_mode: queue
merge_conditions:
- check-success = Queue validation
- check-success = Conventional Commit title
queue_conditions:
- head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)
- base ~= ^(master|develop)$
- -draft
- -label = release:hold
# A release is only eligible after the weekly workflow requests it.
- or:
- head != release-please--branches--master--components--celox
- label = merge-ready
# Required checks (including allowed skipped jobs) come from GitHub's
# rulesets. Keep those rules enforced by GitHub; Mergify gets no bypass.

- name: dependencies
batch_size: 5
batch_max_wait_time: 1 minute
max_checks_retries: 0
Expand All @@ -22,6 +100,36 @@ queue_rules:
- check-success = Queue validation
- check-success = Conventional Commit title
queue_conditions:
- head ~= ^renovate/
- -head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)
- base ~= ^(master|develop)$
- -draft
- -label = release:hold
# A release is only eligible after the weekly workflow requests it.
- or:
- head != release-please--branches--master--components--celox
- label = merge-ready
# Required checks (including allowed skipped jobs) come from GitHub's
# rulesets. Keep those rules enforced by GitHub; Mergify gets no bypass.

- name: changes
batch_size: 3
batch_max_wait_time: 1 minute
max_checks_retries: 0
checks_timeout: 3 hours
merge_method: merge
update_method: merge
commit_message_format:
title: pr-title
body: empty
trailers: []
branch_protection_injection_mode: queue
merge_conditions:
- check-success = Queue validation
- check-success = Conventional Commit title
queue_conditions:
- -head ~= ^renovate/
- -head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)
- base ~= ^(master|develop)$
- -draft
- -label = release:hold
Expand Down
69 changes: 67 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,76 @@ minimum safety net, not the definition of validation completeness.

## CI coverage and cadence

### Code scanning

`.github/workflows/codeql.yml` scans Actions on pull requests that change
workflow or local action files. Other ordinary PRs and Mergify queue drafts
do not run this workflow's analysis. Every Sunday at 04:17 UTC, and on manual
dispatch, it scans Actions, C/C++, JavaScript/TypeScript, Python, and Rust, with
at most two analyses running concurrently. Compiled languages use CodeQL's
`none` build mode. There is no push-triggered full scan or merge requirement.

The workflow is inactive until the repository variable
`CODEQL_ADVANCED_ENABLED` is set to `true`. To replace the existing automatic
scans after this workflow merges:

1. In repository Settings, switch CodeQL analysis from default to advanced
setup, disabling default setup. Keep the existing alerts and their history.
2. Disable the separate automatic GitHub Code Quality scans in Settings;
these are independent of CodeQL default setup and would otherwise continue
using runners on PRs and pushes.
3. Set the repository Actions variable `CODEQL_ADVANCED_ENABLED` to `true`,
then manually dispatch `codeql.yml` on `master`.
4. Confirm that all five analyses upload results and that an Actions-changing
PR runs only the Actions analysis. Rust/application-only PRs should not
start CodeQL or Code Quality scans.

For rollback, unset `CODEQL_ADVANCED_ENABLED` and re-enable default setup.
This variable allows the replacement to be reviewed without running both
setups at once. Until cutover, GitHub's existing automatic scans remain active.
See GitHub's [advanced setup migration instructions](https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/configure-code-scanning/configuring-advanced-setup-for-code-scanning).

### Product checks

Pull requests use `scripts/ci-changes.mjs` to select jobs and scope Rust tests
by affected crates. Windows and ARM64 checks run in Mergify queue draft PRs,
legacy merge groups, and daily/manual full runs. Queue drafts run the full Rust
workspace when Rust is affected. Mergify checks up to five batches concurrently,
with up to five PRs per batch, waiting at most one minute to collect them.
workspace when Rust is affected. Mergify checks up to five batches concurrently
across three queue rules. Parallel mode separates independent file scopes while
retaining combined-tree validation for overlapping scopes:

| Queue | PR heads | Batch size | Maximum collection wait |
| --- | --- | --- | --- |
| `dependencies` | `renovate/*`, except Veryl updates | 5 | 1 minute |
| `changes` | Other heads: features, fixes, CI, and manual dependency updates | 3 | 1 minute |
| `integration` | `integration/*`, `renovate/veryl-crates`, `upgrade/veryl-*`, the Release Please branch, and legacy `master` sync PRs | 1 | None |

The head conditions are mutually exclusive, including for explicit queue
commands. The existing `merge-ready` rule selects the matching queue without
changing which PRs may auto-merge; manual-review dependency groups still require
an explicit merge request. All three queues retain the same GitHub protections,
queue validation, title checks, release hold, and release authorization gate.
Queue categories control batch sizes; file scopes control independence. The
`pr-policy` scope contains only the title workflow and its standalone title,
release-impact, and batch validators. Everything else (including unknown paths,
Rust dependencies, Veryl, NAPI, and feature changes) shares `core`. This lets a
PR-title repair advance without inheriting a speculative Veryl update, while
compiler and dependency changes still validate together. Mixed PRs share both
scopes. Core is capped at two concurrent batches and PR policy at one, within
the global five-batch ceiling; these are batch limits, not runner counts.
Changes to `.mergify.yml`, `release-please-config.json`, or `VERSION` are barriers, requiring
ordering across both scopes. Extend the narrow policy allowlist only after
checking its runtime dependencies. Scopes do not change CI job selection.
PRs whose source CI passed lint and skipped both the Rust/NAPI aggregate and
Ubuntu JS tests receive high queue priority. This prioritizes lightweight work
using the actual CI classification, including docs and standalone scripts,
rather than a `ci:` title or bot identity. Other PRs retain medium priority.
Running checks are not interrupted: independent scopes can progress separately,
but overlapping work already being tested and barriers still impose ordering.
This does not prioritize jobs inside GitHub Actions or preempt occupied runners.
See [Mergify priorities](https://docs.mergify.com/merge-queue/priority/) and
[Mergify queue modes](https://docs.mergify.com/merge-queue/queue-modes/).

The separate lydite proof/editor gates run on queue drafts rather than ordinary
PRs; develop pushes, weekly runs, and manual dispatch remain enabled.
The `Queue validation` merge condition requires those pre-merge checks to pass;
Expand Down
Loading
Loading