mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 08:01:26 +00:00
`make e2e` runs the end-to-end suite with `--strict`, minus the soak lane; `make soak` is that lane plus the slow cost meters. `make plugin-test` covers what an end-to-end run cannot reach -- the host's own loader and wrapper tests, the ABI parity test, and each plugin's unit tests, one language at a time -- and `make plugin-test-san` builds the C plugin's tests under address and undefined-behaviour sanitizers, kept separate because not every toolchain ships the runtimes. CI grows a plugin job on Linux and macOS that runs the suite and `make plugin-test`, and checks that `leaf-cli` still builds with plugin support, since nothing else in the matrix compiles that feature. The same lane exists for Windows but is started by hand: the suite has been through Windows green on ARM64, and this runner is x86-64. A sanitizer lane runs the hostile cases with the runtime exported so a plugin loads against it, and uploads the artifact directory when a case fails. The soak workflow is the one that is nightly: it runs the long lane out of hours with a longer timeout scale and more meter repetitions, so its numbers are worth comparing between nights. `.gitignore` learns the artifacts the plugin builds leave in the tree.
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
name: soak
|
|
|
|
# The long lane. Everything here takes minutes per case to answer a question
|
|
# about the long run -- does the process grow, does the boundary still cost
|
|
# what it cost -- so none of it belongs in a pull request.
|
|
on:
|
|
schedule:
|
|
# Nightly, well outside anyone's working hours.
|
|
- cron: "0 4 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
soak:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
LEAF_E2E_TIMEOUT_SCALE: 4
|
|
# More repetitions than a pull request takes: this lane exists to produce
|
|
# numbers worth comparing between nights.
|
|
LEAF_E2E_METER_REPS: 5
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: install rust toolchain
|
|
uses: hecrj/setup-rust-action@v1
|
|
with:
|
|
rust-version: stable
|
|
|
|
- name: install go toolchain
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: install zig toolchain
|
|
uses: mlugg/setup-zig@v2
|
|
with:
|
|
version: 0.16.0
|
|
|
|
# Soaks and every cost meter, including the two -- latency under load and
|
|
# cost in processor time -- that are too slow for the pull request lane.
|
|
- name: soaks and cost meters
|
|
run: cargo test -p leaf-e2e --test e2e -- --strict --tag soak --tag perf
|
|
|
|
# Always: the point of this lane is the numbers, and a green run has them
|
|
# too. Each `meters.json` holds both sides, every repetition, the ratio
|
|
# and the budget, so a night where both sides halved is visible even
|
|
# though no ratio moved.
|
|
- name: upload measurements
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: e2e-artifacts-soak
|
|
path: target/debug/e2e-artifacts/
|
|
if-no-files-found: ignore
|