Prefer stable Rust for CI workflows. Only use nightly when a feature genuinely requires it.
Nightly is required for:
cargo fmt(nightly formatting options)-Zflags: sanitizers (-Zsanitizer=address), miri (-Zmiri-*), publish (-Zpublish-timeout)cargo-fuzz(requires nightly)
Everything else (build, clippy, tests, docs, benchmarks, packaging) should use stable.
Nightly Rust toolchain is pinned via NIGHTLY_TOOLCHAIN env var in each workflow file — update all instances when changing the version.
For action inputs: toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
For shell commands: cargo +$NIGHTLY_TOOLCHAIN ...
All files under .github/ are linted by yamllint --strict -c .yamllint.yaml.
RunsOn CI jobs pick their AWS region from the run's trigger time, following the night:
hours 00-09 UTC go to us-east-1, 10-19 UTC to ap-northeast-1, and 20-23 UTC to eu-central-1.
The hour comes from github.event.pull_request.updated_at or github.event.head_commit.timestamp
(contains(ts, 'T1') matches hours 10-19), and runs with neither go to us-east-1. The
CI_REGION repository variable pins every CI job to one region. Copy the region= expression from
an existing CI job when adding one.
GPU (runner=gpu) jobs skip the 20-23 UTC branch and run in us-east-1 then, because
eu-central-1 often has no g5/g6 capacity; copy the region= expression from a job in cuda.yaml.
Benchmark workflows use region=us-east-1, where their S3 data lives, with two exceptions. Both
exceptions read the BENCH_NVME_REGIONS repository variable, a JSON list of regions such as
["eu-central-1"]. The SQL matrix spreads its NVMe entries over the regions in the list. The
compression and string encoding benchmarks read no data from S3. They run in the first region of
the list, on develop and on pull requests. Each region needs a RunsOn stack.
Every benchmark job launches its own metal host, and one region's spot pool is only a few hosts
deep. For the same reason BENCH_MAX_PARALLEL caps the SQL hosts that a develop run holds at once
(default 4). Without BENCH_NVME_REGIONS, every benchmark job runs in us-east-1.
hegel-nightly.yml runs the Hegel property tests of every crate that dev-depends on
vortex-hegel, once per night, split across four shards with cargo nextest --partition.
Control it with:
VORTEX_HEGEL_SCALE: how many times each test'stest_casesto run, 50 by default. A manual run takes it as thescaleinput; pull requests that change the workflow, thehegel-nightlynextest profile orvortex-hegelrun it at 2.- The
hegel-nightlyprofile in.config/nextest.toml: how long one test may run. - The
shardmatrix: how many machines share the tests. Change thehash:partition total with it.
The run sets HEGEL_DERANDOMIZE=false so hegeltest draws random seeds despite its ci profile,
and HEGEL_DATABASE to .hegel/nightly, which each shard caches so saved failures replay the
next night. To reproduce a failure locally, run the test with the #[hegel::reproduce_failure(...)]
line its log prints, or download the shard's hegel-db-<shard> artifact and point
HEGEL_DATABASE at it.