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
@@ -19,6 +19,8 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
- name: Rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Verify the pinned stdlib Bundle
|
||||
run: python3 tools/stdlib/bundle.py
|
||||
- name: Formatting
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Clippy
|
||||
@@ -41,7 +43,10 @@ jobs:
|
||||
run: cargo test -p marqdo-cli --test architecture_boundaries
|
||||
- name: CI evidence tool tests
|
||||
run: python3 -m unittest discover -s tools/ci -p "test_*.py"
|
||||
- name: Whole stdlib product tests
|
||||
- name: Whole stdlib product tests (explicit pinned Bundle)
|
||||
env:
|
||||
MARQDO_TEST_STDLIB_BUNDLE: ${{ github.workspace }}/stdlib
|
||||
MARQDO_TEST_BUNDLE_PIN: ${{ github.workspace }}/tools/stdlib/bundle-pin.json
|
||||
run: cargo test -p marqdo-cli --test stdlib_product
|
||||
- name: Validate public JSON schemas
|
||||
run: |
|
||||
@@ -93,6 +98,16 @@ jobs:
|
||||
--trust-native-plugin \
|
||||
--allow-plugin demo.solver
|
||||
|
||||
independent-build:
|
||||
name: independent CLI/worker build (no stdlib source)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build from a copy without stdlib and run a language-only program
|
||||
run: python3 tools/ci/independent_build.py
|
||||
|
||||
schema:
|
||||
name: schema instance validation + consumers
|
||||
runs-on: ubuntu-latest
|
||||
@@ -240,7 +255,7 @@ jobs:
|
||||
|
||||
release-evidence:
|
||||
name: release evidence manifest
|
||||
needs: [test, schema, cross-platform, frozen-extensions]
|
||||
needs: [test, schema, cross-platform, frozen-extensions, independent-build]
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -253,6 +268,7 @@ jobs:
|
||||
LINUX_RESULT: ${{ needs.test.result }}
|
||||
SCHEMA_RESULT: ${{ needs.schema.result }}
|
||||
EXTENSIONS_RESULT: ${{ needs.frozen-extensions.result }}
|
||||
INDEPENDENT_RESULT: ${{ needs.independent-build.result }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
state() {
|
||||
@@ -263,11 +279,12 @@ jobs:
|
||||
esac
|
||||
}
|
||||
linux="$(state "$LINUX_RESULT")"
|
||||
if [ "$(state "$SCHEMA_RESULT")" != "PASS" ] || [ "$(state "$EXTENSIONS_RESULT")" != "PASS" ]; then
|
||||
if [ "$(state "$SCHEMA_RESULT")" != "PASS" ] || [ "$(state "$EXTENSIONS_RESULT")" != "PASS" ] || [ "$(state "$INDEPENDENT_RESULT")" != "PASS" ]; then
|
||||
linux="FAIL"
|
||||
fi
|
||||
python3 tools/ci/release_evidence.py --profile rc --target-sha "$TARGET_SHA" \
|
||||
--out "docs/evidence/ci/$TARGET_SHA/manifest.json" \
|
||||
--gate "independent_build=$(state "$INDEPENDENT_RESULT"):$TARGET_SHA:$RUN_URL" \
|
||||
--gate "linux=$linux:$TARGET_SHA:$RUN_URL" \
|
||||
--gate "windows=UNSUPPORTED:$TARGET_SHA:linux-only-rc-scope" \
|
||||
--gate "macos=UNSUPPORTED:$TARGET_SHA:linux-only-rc-scope" \
|
||||
|
||||
Reference in new issue
Block a user