Inference, mobile, and release platforms · T54–T60
Encyclopedia home · Search machine-readable catalog
Each code block is a complete workflow file for the stated platform. App code, provisioned resources, and tools listed as prerequisites are supplied by the consuming repository or lab. Privileged templates are manual and use trusted, dedicated runners and reviewed target environments.
T54
RAG application evaluation and deployment
- Platform GitHub Actions.
- File
.github/workflows/t54-rag-application-evaluation-and-deployment.yml. - Prerequisites disposable service, synthetic gold retrieval data, pinned uv and approved staging identity.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: RAG application evaluation and deployment
on:
workflow_dispatch: {}
jobs:
delivery:
runs-on:
- self-hosted
- linux
- platform-lab
timeout-minutes: 20
defaults:
run:
shell: bash
if: github.ref == 'refs/heads/main'
environment: staging
env:
HEALTH_URL: ${{ vars.HEALTH_URL }}
IMAGE: ${{ vars.IMAGE }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
test -s uv.lock
- name: Execute
run: |-
uv sync --locked
uv run --locked pytest -q tests/evals
jq -e '.cases >= 30 and .hit_rate_at_5 >= 0.85' reports/retrieval-summary.json
- name: Verify result
run: |-
[[ "${IMAGE:?}" =~ @sha256:[0-9a-f]{64}$ ]]
kubectl -n staging set image deploy/rag rag="$IMAGE"
kubectl -n staging rollout status deploy/rag --timeout=180s
curl -fsS --max-time 8 "${HEALTH_URL:?}" | jq -e '.status=="ok"'
permissions:
contents: read
concurrency:
group: t54-reviewed-delivery
cancel-in-progress: falseVerification and failure handling. The last step probes the application endpoint. Keep retrieval and generation metrics distinct.
Related CICD-433 · CICD-434 · CICD-435 · Workflow reference
T55
LLM model validation and promotion
- Platform GitHub Actions.
- File
.github/workflows/t55-llm-model-validation-and-promotion.yml. - Prerequisites approved model artifact under model/, checksums, pinned evaluation fixture, yq and tracked environments/staging/model.yaml.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: LLM model validation and promotion
on:
workflow_dispatch: {}
jobs:
delivery:
runs-on:
- self-hosted
- linux
- platform-lab
timeout-minutes: 20
defaults:
run:
shell: bash
if: github.ref == 'refs/heads/main'
environment: staging
env:
MODEL_DIGEST: ${{ vars.MODEL_DIGEST }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
test -s model.sha256
- name: Execute
run: |-
(cd model && sha256sum --strict --check ../model.sha256)
pytest -q tests/evals
- name: Verify result
run: |-
jq -e '.scored >= 30 and .passed/.scored >= 0.9 and .invalid == 0' reports/eval.json
sha256sum model.sha256 > promotion-evidence.sha256
[[ "${MODEL_DIGEST:?}" =~ ^sha256:[0-9a-f]{64}$ ]]
yq '.model.digest = strenv(MODEL_DIGEST)' environments/staging/model.yaml > promotion-model.yaml
- uses: actions/upload-artifact@v4
with:
name: t55-evidence
path: |-
reports/eval.json
promotion-evidence.sha256
promotion-model.yaml
retention-days: 7
if-no-files-found: error
permissions:
contents: read
concurrency:
group: t55-reviewed-delivery
cancel-in-progress: falseVerification and failure handling. Submit the validated desired-state artifact via a reviewed GitOps change. Verify the digest came from the same approved model manifest that supplied the file checksums.
Related CICD-427 · CICD-432 · CICD-439 · Workflow reference
T56
vLLM inference infrastructure delivery
- Platform GitHub Actions.
- File
.github/workflows/t56-vllm-inference-infrastructure-delivery.yml. - Prerequisites dedicated trusted GPU runner, approved vLLM dependency and GPU-enabled staging deployment.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: vLLM inference infrastructure delivery
on:
workflow_dispatch: {}
jobs:
delivery:
runs-on:
- self-hosted
- linux
- gpu
- platform-lab
timeout-minutes: 45
defaults:
run:
shell: bash
if: github.ref == 'refs/heads/main'
environment: staging
env:
IMAGE: ${{ vars.IMAGE }}
MODEL_BASE: ${{ vars.MODEL_BASE }}
MODEL_ID: ${{ vars.MODEL_ID }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
nvidia-smi -L
- name: Execute
run: |-
[[ "${IMAGE:?}" =~ @sha256:[0-9a-f]{64}$ ]]
kubectl -n staging set image deploy/inference inference="$IMAGE"
kubectl -n staging rollout status deploy/inference --timeout=300s
- name: Verify result
run: |-
curl -fsS --max-time 10 "${MODEL_BASE:?}/v1/models" | jq -e --arg model "${MODEL_ID:?}" '.data | any(.id==$model)'
permissions:
contents: read
concurrency:
group: t56-reviewed-delivery
cancel-in-progress: falseVerification and failure handling. Treat this model-list check as a readiness probe and run T57 or CICD-450 for a separate streamed completion and latency gate.
Related CICD-441 · CICD-446 · CICD-450 · Workflow reference
T57
Multi-engine inference benchmarking
- Platform GitHub Actions.
- File
.github/workflows/t57-multi-engine-inference-benchmarking.yml. - Prerequisites running vLLM and SGLang fixture endpoints, shared model ID and tokenizer, vLLM benchmark CLI.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: Multi-engine inference benchmarking
on:
workflow_dispatch: {}
jobs:
delivery:
runs-on:
- self-hosted
- linux
- gpu
- platform-lab
timeout-minutes: 45
defaults:
run:
shell: bash
env:
MODEL_ID: ${{ vars.MODEL_ID }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
nvidia-smi -L
- name: Execute
run: |-
for engine in vllm sglang; do port=8000; if test "$engine" = sglang; then port=30000; fi; vllm bench serve --backend openai --base-url "http://127.0.0.1:$port" --model "${MODEL_ID:?}" --dataset-name random --seed 42 --random-input-len 256 --random-output-len 64 --num-prompts 80 --request-rate 4 --save-result --result-filename "$engine.json"; done
- name: Verify result
run: |-
jq -es 'map({engine:.backend,completed,output_throughput,p99_ttft_ms}) | select(length == 2 and all(.[]; .completed > 0))' vllm.json sglang.json
- uses: actions/upload-artifact@v4
with:
name: t57-evidence
path: |-
vllm.json
sglang.json
retention-days: 7
if-no-files-found: error
permissions:
contents: readVerification and failure handling. Control hardware, warm-up and profile. Repeat alternating order to reduce measurement bias.
Related CICD-447 · CICD-450 · CICD-451 · CICD-452 · Workflow reference
T58
GPU cost-performance optimization
- Platform GitHub Actions.
- File
.github/workflows/t58-gpu-cost-performance-optimization.yml. - Prerequisites baseline.json and candidate.json with validated completed, elapsed_seconds, output_tokens and hourly_cost per measured run.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: GPU cost-performance optimization
on:
workflow_dispatch: {}
jobs:
delivery:
runs-on:
- self-hosted
- linux
- gpu
- platform-lab
timeout-minutes: 45
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
test -s baseline.json
test -s candidate.json
- name: Execute
run: |-
jq -es 'map(select(.output_tokens>0 and .elapsed_seconds>0) | . + {cost_per_million:(.hourly_cost*.elapsed_seconds/3600*1000000/.output_tokens)}) | select(length==2)' baseline.json candidate.json > measured.json
- name: Verify result
run: |-
jq -e '.[1].completed>=.[0].completed and .[1].p99_ttft_ms <= 1.15*.[0].p99_ttft_ms and .[1].cost_per_million <= .[0].cost_per_million' measured.json
- uses: actions/upload-artifact@v4
with:
name: t58-evidence
path: measured.json
retention-days: 7
if-no-files-found: error
permissions:
contents: readVerification and failure handling. Use equal load and matching GPU costs. A faster candidate must still meet unit-cost budget.
Related CICD-455 · CICD-469 · CICD-470 · Workflow reference
T59
Mobile application release pipeline
- Platform GitHub Actions.
- File
.github/workflows/t59-mobile-application-release-pipeline.yml. - Prerequisites Android Gradle app, fixture keystore in trusted isolated signing environment, approved version tag and release.
- Execution
delivery. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: Mobile application release pipeline
on:
workflow_dispatch:
inputs:
release_tag:
required: true
type: string
description: Existing approved release tag pointing to this commit
jobs:
delivery:
runs-on:
- self-hosted
- linux
- platform-lab
timeout-minutes: 45
defaults:
run:
shell: bash
permissions:
contents: write
if: github.ref == 'refs/heads/main'
environment: release
env:
SIGNING_ALIAS: ${{ vars.SIGNING_ALIAS }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
KEYSTORE_PATH: ${{ secrets.KEYSTORE_PATH }}
RELEASE_TAG: ${{ inputs.release_tag }}
PUBLISH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
test -x gradlew
- name: Execute
run: |-
./gradlew --no-daemon :app:lintRelease :app:testReleaseUnitTest :app:assembleRelease
zipalign -f 4 app/build/outputs/apk/release/app-release-unsigned.apk app-aligned.apk
apksigner sign --ks "${KEYSTORE_PATH:?}" --ks-key-alias "${SIGNING_ALIAS:?}" --ks-pass env:KEYSTORE_PASS --out app-signed.apk app-aligned.apk
- name: Verify result
run: |-
apksigner verify --print-certs app-signed.apk
sha256sum app-signed.apk > app-signed.apk.sha256
- name: Publish signed asset to reviewed release
run: |-
[[ "$RELEASE_TAG" =~ ^v[0-9]+[.][0-9]+[.][0-9]+$ ]]
test "$(git rev-list -n 1 "refs/tags/$RELEASE_TAG")" = "$GITHUB_SHA"
GH_TOKEN="$PUBLISH_TOKEN" gh release upload "$RELEASE_TAG" app-signed.apk app-signed.apk.sha256 --repo "$GITHUB_REPOSITORY"
- uses: actions/upload-artifact@v4
with:
name: t59-evidence
path: |-
app-signed.apk
app-signed.apk.sha256
retention-days: 7
if-no-files-found: error
permissions:
contents: read
concurrency:
group: t59-reviewed-delivery
cancel-in-progress: falseVerification and failure handling. Review certificate and checksum before distribution. Keep keystore outside the checkout. Android is materialized here, and CICD-475–478 documents the parallel iOS route.
Related CICD-473 · CICD-475 · CICD-476 · CICD-477 · CICD-478 · Workflow reference
T60
Enterprise multi-environment delivery platform
- Platform GitHub Actions.
- File
.github/workflows/t60-enterprise-multi-environment-delivery-platform.yml. - Prerequisites immutable tested image and protected staging/production environments, audited source commit, mapped namespace and health per environment.
- Execution
staging→production. - Validation syntax-validated. External tools and provider controls require validation in your lab.
name: Enterprise multi-environment delivery platform
on:
workflow_dispatch: {}
jobs:
staging:
runs-on: &id001
- self-hosted
- linux
- platform-lab
timeout-minutes: 20
defaults: &id002
run:
shell: bash
if: github.ref == 'refs/heads/main'
environment: staging
env: &id003
DEPLOY_NAMESPACE: ${{ vars.DEPLOY_NAMESPACE }}
HEALTH_URL: ${{ vars.HEALTH_URL }}
IMAGE: ${{ vars.IMAGE }}
steps: &id004
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Preflight
run: |-
test -s README.md
- name: Execute
run: |-
[[ "${IMAGE:?}" =~ @sha256:[0-9a-f]{64}$ ]]
kubectl -n "${DEPLOY_NAMESPACE:?}" set image deploy/web web="$IMAGE"
kubectl -n "$DEPLOY_NAMESPACE" rollout status deploy/web --timeout=180s
- name: Verify result
run: |-
curl -fsS --max-time 10 "${HEALTH_URL:?}" | jq -e '.status=="ok"'
production:
runs-on: *id001
timeout-minutes: 20
defaults: *id002
if: github.ref == 'refs/heads/main'
environment: production
env: *id003
steps: *id004
needs: staging
permissions:
contents: read
concurrency:
group: t60-reviewed-delivery
cancel-in-progress: falseVerification and failure handling. The same candidate moves through separate gated environments. Use distinct credentials and explicit rollback ownership.
Related CICD-305 · CICD-491 · CICD-493 · CICD-495 · Workflow reference