Skip to content

CICD-439 · Model version promotion ​

Encyclopedia · AI and LLM application pipelines · All snippets

Previous · CICD-438 · Next · CICD-440

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites approved synthetic evaluation data, authorized model artifacts and pinned runtime tools.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters MODEL_DIGEST.

2. Copy the snippet ​

bash
[[ "${MODEL_DIGEST:?}" =~ ^sha256:[0-9a-f]{64}$ ]]
MODEL_DIGEST="$MODEL_DIGEST" yq -i '.model.digest = strenv(MODEL_DIGEST)' environments/staging/model.yaml
git diff --check

3. How it works ​

The digest becomes desired state in the model configuration. Review and reconcile that change together with the exact approved evaluation evidence.

Model promotion combines a reviewed digest update with evaluation evidence.

flowchart TD
  N1["Approved model digest"]
  N2["Update staging desired state"]
  N1 --> N2
  N3["Evaluation evidence"]
  N4["Review staged change"]
  N3 --> N4
  N2 --> N4
  N5["Controller reconciliation"]
  N4 --> N5

4. Verify the result ​

Review a promotion diff linking evaluation IDs and immutable digest. Keep endpoint deployment under the trusted controller.

Validation syntax-validated (Bash parse). Status definitions.