11d15aa119
contracts-codegen-drift / codegen-drift (pull_request) Successful in 24s
llm-registry-ssot-drift / llm-registry-ssot-drift (pull_request) Successful in 24s
registry-ssot-drift / registry-ssot-drift (pull_request) Successful in 23s
contracts-codegen-drift / prompt-canonical-text-conformance (pull_request) Successful in 26s
contracts-codegen-drift / go-parity (pull_request) Successful in 27s
Test / package-smoke (pull_request) Successful in 32s
contracts-codegen-drift / adapter-registry-conformance (pull_request) Successful in 32s
contracts-codegen-drift / contract-conformance (pull_request) Successful in 33s
llm-registry-ssot-drift / llm-registry-ssot-conformance (pull_request) Successful in 30s
contracts-codegen-drift / platform-identity-gate-conformance (pull_request) Successful in 32s
registry-ssot-drift / registry-ssot-conformance (pull_request) Successful in 31s
contracts-codegen-drift / bindings-parity (pull_request) Successful in 32s
contracts-codegen-drift / validate (pull_request) Successful in 36s
contracts-codegen-drift / all-required (pull_request) Successful in 9s
Test / test (3.12) (pull_request) Successful in 49s
Test / test (3.11) (pull_request) Successful in 54s
Test / test (3.13) (pull_request) Successful in 1m1s
Test / all-required (pull_request) Successful in 9s
60 lines
2.3 KiB
YAML
60 lines
2.3 KiB
YAML
# registry-ssot-drift — pins generated bindings to the versioned contract.
|
|
#
|
|
# Self-contained (node-only) drift gate for the container-registry contract
|
|
# (contracts/registry.yaml). It re-runs tools/gen-registry.mjs and fails if the
|
|
# committed gen/ artifacts differ from a fresh regeneration — gen/ is NEVER
|
|
# hand-edited. This proves contract-to-binding consistency inside this repo;
|
|
# consumers still verify adoption independently. Kept separate from
|
|
# contracts-codegen-drift.yml so it has zero coupling to the
|
|
# cloudprovider/molcontracts generators.
|
|
name: registry-ssot-drift
|
|
|
|
on:
|
|
push:
|
|
branches: [main, staging]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: registry-ssot-drift-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
drift:
|
|
name: registry-ssot-drift
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: "20"
|
|
- name: Regenerate registry bindings from contracts/registry.yaml
|
|
run: node tools/gen-registry.mjs
|
|
- name: Fail if committed gen/ differs from a fresh regeneration
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
if ! git diff --exit-code -- \
|
|
gen/registry/registry.env \
|
|
gen/go/registry/registry.go; then
|
|
echo "::error::registry gen/ is out of date — committed bindings differ"
|
|
echo "::error::from a fresh run of tools/gen-registry.mjs. gen/ is NEVER"
|
|
echo "::error::hand-edited. Regenerate with 'node tools/gen-registry.mjs' and commit."
|
|
exit 1
|
|
fi
|
|
echo "registry gen/ is in sync with contracts/registry.yaml (no drift)"
|
|
|
|
conformance:
|
|
name: registry-ssot-conformance
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install validators
|
|
run: pip install --no-cache-dir pytest "jsonschema>=4.18" "pyyaml>=6.0"
|
|
- name: Validate registry SSOT schema + invariants
|
|
run: python -m pytest tests/test_registry_contract.py -q --noconftest
|