ci: add the independent-build lane and pin the perf Bundle
Add tools/ci/independent_build.py: export HEAD without stdlib/, build both shipped binaries with --locked, run a language-only check/call, and require a stdlib-dependent run to fail closed with no sibling stdlib. Add tests/independent/language-only.mq.md and run the lane as its own GitHub job and Woodpecker step. Perf runner resolves the pinned Bundle (--stdlib-dir/--bundle-pin), exports it to every workload and records it in the report; GitHub and Woodpecker lanes verify the pin and pass the product tests an explicit Bundle. docs/ci.md and performance docs describe the lanes.
This commit is contained in:
1 parent
3a68260cf2
commit
ab6b6b1a23
9 files changed
+316
-13
No files matched your search
+10
-1
@@ -39,6 +39,7 @@ steps:
|
||||
- apt-get install -y --no-install-recommends curl ca-certificates python3 python3-jsonschema build-essential gcc-mingw-w64-x86-64
|
||||
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
- apt-get install -y --no-install-recommends nodejs
|
||||
- python3 tools/stdlib/bundle.py
|
||||
- cargo fmt --all -- --check
|
||||
- cargo clippy --workspace --all-targets -- -D warnings
|
||||
# Provider CLI tests resolve a real provider worker next to the CLI
|
||||
@@ -48,12 +49,19 @@ steps:
|
||||
- cargo test -p marqdo-cli --test docs_consistency
|
||||
- cargo test -p marqdo-cli --test architecture_boundaries
|
||||
- python3 -m unittest discover -s tools/ci -p "test_*.py"
|
||||
- cargo test -p marqdo-cli --test stdlib_product
|
||||
- MARQDO_TEST_STDLIB_BUNDLE="$PWD/stdlib" MARQDO_TEST_BUNDLE_PIN="$PWD/tools/stdlib/bundle-pin.json" cargo test -p marqdo-cli --test stdlib_product
|
||||
# Windows compile gate: runtime lanes are native on GitHub; this catches
|
||||
# cfg/compile regressions on the Linux CI without a Windows runner.
|
||||
- rustup target add x86_64-pc-windows-gnu
|
||||
- cargo check --workspace --all-targets --target x86_64-pc-windows-gnu
|
||||
|
||||
independent-build:
|
||||
image: rust:1.100-bookworm
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends ca-certificates git python3
|
||||
- python3 tools/ci/independent_build.py
|
||||
|
||||
minimum-rust:
|
||||
image: rust:1.89-bookworm
|
||||
commands:
|
||||
@@ -71,6 +79,7 @@ steps:
|
||||
# only supported transport and resolution is a sibling-of-CLI lookup.
|
||||
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
- test -x target/release/marqdo-provider-worker
|
||||
- python3 tools/stdlib/bundle.py
|
||||
# Build the deterministic archive from this exact commit and cold-install
|
||||
# smoke-test it; the package script refuses a dirty tree or wrong SHA.
|
||||
- |
|
||||
|
||||
@@ -10,6 +10,7 @@ steps:
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends python3 util-linux ca-certificates git openssl build-essential
|
||||
- python3 tools/stdlib/bundle.py
|
||||
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
- |
|
||||
set -eu
|
||||
@@ -38,7 +39,8 @@ steps:
|
||||
(cd "$perf_dir/beta" && python3 tools/perf/runner.py --no-build \
|
||||
--warmups 5 --samples 20 --platform-id woodpecker-agent-1 \
|
||||
--cpu-list "$cpu_list" --out "$perf_dir/beta.json" > /dev/null)
|
||||
python3 tools/perf/runner.py --no-build --binary "$candidate/marqdo" --warmups 5 --samples 20 \
|
||||
python3 tools/perf/runner.py --no-build --binary "$candidate/marqdo" \
|
||||
--stdlib-dir "$candidate/stdlib" --warmups 5 --samples 20 \
|
||||
--platform-id woodpecker-agent-1 --cpu-list "$cpu_list" \
|
||||
--baseline "$perf_dir/beta.json" --out perf.json > /dev/null
|
||||
python3 - <<'PY'
|
||||
|
||||
Reference in new issue
Block a user