Files
molecule-ai-sdk/.gitea/workflows/llm-registry-ssot-drift.yml
T
hongming-ceo-delegated 3474157dac
contracts-codegen-drift / codegen-drift (pull_request) Successful in 15s
Test / package-smoke (pull_request) Successful in 25s
contracts-codegen-drift / contract-conformance (pull_request) Successful in 22s
Test / test (3.11) (pull_request) Successful in 52s
contracts-codegen-drift / validate (pull_request) Successful in 30s
contracts-codegen-drift / platform-identity-gate-conformance (pull_request) Successful in 18s
contracts-codegen-drift / prompt-canonical-text-conformance (pull_request) Successful in 23s
contracts-codegen-drift / adapter-registry-conformance (pull_request) Successful in 24s
contracts-codegen-drift / go-parity (pull_request) Successful in 25s
llm-registry-ssot-drift / llm-registry-ssot-drift (pull_request) Successful in 17s
Test / test (3.12) (pull_request) Successful in 1m0s
Test / test (3.13) (pull_request) Successful in 50s
llm-registry-ssot-drift / llm-registry-ssot-conformance (pull_request) Successful in 20s
contracts-codegen-drift / bindings-parity (pull_request) Has been cancelled
contracts-codegen-drift / all-required (pull_request) Has been cancelled
registry-ssot-drift / registry-ssot-drift (pull_request) Has been cancelled
registry-ssot-drift / registry-ssot-conformance (pull_request) Has been cancelled
Test / all-required (pull_request) Successful in 6s
feat(plugin): expose channel contract and scaffold
2026-07-13 11:38:53 -07:00

59 lines
2.4 KiB
YAML

# llm-registry-ssot-drift — pins the LLM-registry Go embed to the SSOT.
#
# Self-contained drift gate for the LLM provider/model/runtime registry
# (contracts/llm-registry/llm-registry.yaml). It re-runs
# tools/gen-llm-registry.mjs and fails if the committed
# gen/go/llmregistry/llm-registry.yaml embed copy differs from a fresh
# regeneration — the embed is NEVER hand-edited, so editing the contracts SSOT
# is the only edit that moves the registry everywhere (molecule-core embeds it
# via go.moleculesai.app/sdk/gen/go/llmregistry). Kept separate from the other
# drift gates so it has zero coupling to their generators.
name: llm-registry-ssot-drift
on:
push:
branches: [main, staging]
pull_request:
concurrency:
group: llm-registry-ssot-drift-${{ github.ref }}
cancel-in-progress: true
jobs:
drift:
name: llm-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 the Go embed from contracts/llm-registry/llm-registry.yaml
run: node tools/gen-llm-registry.mjs
- name: Fail if committed gen/ differs from a fresh regeneration
shell: bash
run: |
set -euo pipefail
if ! git diff --exit-code -- gen/go/llmregistry/llm-registry.yaml; then
echo "::error::llm-registry embed is out of date — gen/go/llmregistry/llm-registry.yaml"
echo "::error::differs from a fresh run of tools/gen-llm-registry.mjs. The embed is"
echo "::error::NEVER hand-edited. Regenerate with 'node tools/gen-llm-registry.mjs' and commit."
exit 1
fi
echo "llm-registry embed is in sync with contracts/llm-registry/llm-registry.yaml (no drift)"
conformance:
name: llm-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 LLM-registry SSOT schema + invariants
run: python -m pytest tests/test_llm_registry_contract.py -q --noconftest