ci: add GitLab freeze assertion

This commit is contained in:
sovereign
2025-12-18 00:19:19 +00:00
parent d98a0dd957
commit 0f38063fac
3 changed files with 23 additions and 17 deletions

View File

@@ -1,15 +0,0 @@
name: Freeze Envelope Byte Contract
on:
push:
pull_request:
jobs:
freeze-envelope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Assert EventEnvelope byte contract
run: cargo test -p vaultmesh-command-center test_event_envelope_canonicalization_bytes

20
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,20 @@
stages:
- test
freeze:envelope-byte-contract:
stage: test
image: rust:stable
variables:
CARGO_TERM_COLOR: always
cache:
key: cargo
paths:
- target/
- .cargo/registry/
- .cargo/git/
before_script:
- rustc --version
- cargo --version
script:
- cargo test -p vaultmesh-command-center test_event_envelope_canonicalization_bytes

View File

@@ -5,5 +5,6 @@ For the next 30 days, treat these as frozen invariants: do not change `EventEnve
No envelope changes without: a payload schema bump, a full replay audit rerun, and a new freeze tag.
Freeze tag: `v0.8-freeze-envelope-v0` currently exists locally; when ready to publish, push it (and the commit) with:
- `git push origin 1830e0f:main`
- `git push origin v0.8-freeze-envelope-v0`
- `git remote add gitlab <gitlab-repo-url>` (one-time)
- `git push gitlab main`
- `git push gitlab v0.8-freeze-envelope-v0`