The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(ci): add doctor proof workflow
Steven Enamakeld3590ecd1a88
diff --git a/.github/workflows/epic-8089-doctor-proof.yml b/.github/workflows/epic-8089-doctor-proof.ymlnew file mode 100644index 0000000000..d2e595988b--- /dev/null+++ b/.github/workflows/epic-8089-doctor-proof.yml@@ -0,0 +1,210 @@+name: Epic 8089 Doctor legacy RED proof++on:+ push:+ branches:+ - epic-8089-228-doctor-proof++permissions:+ actions: read+ contents: read+ packages: read++env:+ GH_TOKEN: ${{ github.token }}+ CARGO_INCREMENTAL: "0"+ CARGO_BUILD_JOBS: "1"+ CARGO_PROFILE_DEV_DEBUG: line-tables-only+ RUSTFLAGS: "-C link-arg=-fuse-ld=mold"+ RUST_MIN_STACK: "33554432"++concurrency:+ group: doctor-proof-${{ github.ref }}+ cancel-in-progress: false++jobs:+ doctor-legacy-red:+ if: github.repository == 'senamakel/openhuman'+ name: Doctor raw registry legacy RED proof+ runs-on: ubuntu-22.04+ timeout-minutes: 90+ container:+ image: ghcr.io/tinyhumansai/openhuman_ci:latest+ steps:+ - name: Free disk space on the hosted container+ run: |+ rm -rf /__t/* || true+ df -h /__w || true++ - name: Checkout the frozen Doctor regression source and recursive pins+ uses: actions/checkout@v7+ with:+ ref: 6104105421a444d844f23c652b153b4be939ebf2+ fetch-depth: 0+ persist-credentials: false+ submodules: recursive++ - name: Trust container checkout and submodules+ run: bash scripts/ci/trust-checkout.sh++ - name: Install Rust 1.96.1+ uses: dtolnay/[email protected]++ - name: Assert frozen source and recursive pins+ shell: bash+ run: |+ set -euo pipefail+ test "$(git rev-parse HEAD)" = 6104105421a444d844f23c652b153b4be939ebf2+ test "$(git rev-parse HEAD^{tree})" = 5f5a9677b3d8fc0ea4758e913939bb02af073712+ test "$(git rev-parse HEAD:crates/openhuman-core/src/platform/doctor/schemas.rs)" = c6bc6e65c0069d51a9f18394c9b539932d58a302+ test -z "$(git status --porcelain=v1 --untracked-files=all)"+ submodules="$(git submodule status --recursive)"+ if grep -Eq '^[+-U]' <<< "$submodules"; then+ printf '%s\n' "$submodules"+ echo "recursive submodules are not at their recorded pins"+ exit 1+ fi+ git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'++ - name: Cache Rust build artifacts+ uses: Swatinem/rust-cache@v2+ with:+ workspaces: . -> target+ cache-on-failure: true+ key: doctor-proof++ - name: Compile and run the exact raw registry RED test+ shell: bash+ run: |+ set -euo pipefail+ rm -rf -- target/doctor-proof+ mkdir -p target/build-tmp target/doctor-proof target/debug/proof-binaries+ evidence=target/doctor-proof+ export TMPDIR="$GITHUB_WORKSPACE/target/build-tmp"+ test "$(git rev-parse HEAD)" = 6104105421a444d844f23c652b153b4be939ebf2+ test "$(git rev-parse HEAD^{tree})" = 5f5a9677b3d8fc0ea4758e913939bb02af073712+ test "$(git rev-parse HEAD:crates/openhuman-core/src/platform/doctor/schemas.rs)" = c6bc6e65c0069d51a9f18394c9b539932d58a302+ test -z "$(git status --porcelain=v1 --untracked-files=all)"+ git submodule status --recursive > "$evidence/submodules-before-build.txt"+ if grep -Eq '^[+-U]' "$evidence/submodules-before-build.txt"; then+ cat "$evidence/submodules-before-build.txt"+ echo "recursive submodules are not at their recorded pins"+ exit 1+ fi+ git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'+ {+ printf 'repository=%s\n' "$GITHUB_REPOSITORY"+ printf 'workflow_ref=%s\n' "$GITHUB_WORKFLOW_REF"+ printf 'workflow_sha=%s\n' "$GITHUB_SHA"+ printf 'source_head=%s\n' "$(git rev-parse HEAD)"+ printf 'source_tree=%s\n' "$(git rev-parse HEAD^{tree})"+ printf 'schemas_blob=%s\n' "$(git rev-parse HEAD:crates/openhuman-core/src/platform/doctor/schemas.rs)"+ printf 'features=default,voice,inference\n'+ printf 'rustc_version=%s\n' "$(rustc --version)"+ printf 'cargo_version=%s\n' "$(cargo --version)"+ printf 'host_mem_available_kib=%s\n' "$(awk '/MemAvailable/ {print $2}' /proc/meminfo)"+ printf 'build_filesystem=%s\n' "$(df -Pk . | tail -n 1)"+ printf 'build_command=TMPDIR=%s CARGO_BUILD_JOBS=1 RUST_MIN_STACK=33554432 bash scripts/ci-cancel-aware.sh cargo test -p openhuman --locked --lib --features voice,inference --no-run --message-format=json\n' "$TMPDIR"+ } > "$evidence/receipt.txt"++ build_json="$evidence/build.jsonl"+ build_stderr="$evidence/build.stderr"+ started_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"+ set +e+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman --locked --lib --features voice,inference --no-run --message-format=json > "$build_json" 2> "$build_stderr"+ build_exit=$?+ set -e+ ended_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"+ printf 'build_started_utc=%s\nbuild_ended_utc=%s\nbuild_exit=%s\n' "$started_at" "$ended_at" "$build_exit" >> "$evidence/receipt.txt"+ if [ "$build_exit" -ne 0 ]; then+ cat "$build_stderr"+ exit "$build_exit"+ fi++ test "$(git rev-parse HEAD^{tree})" = 5f5a9677b3d8fc0ea4758e913939bb02af073712+ test "$(git rev-parse HEAD:crates/openhuman-core/src/platform/doctor/schemas.rs)" = c6bc6e65c0069d51a9f18394c9b539932d58a302+ git diff --exit-code --ignore-submodules=none+ test -z "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)"+ git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'+ git submodule status --recursive > "$evidence/submodules-after-build.txt"+ cmp "$evidence/submodules-before-build.txt" "$evidence/submodules-after-build.txt"++ python3 - "$build_json" "$evidence/test-binary-path" "$evidence/compiler-fresh.txt" <<'PY'+ import json+ import sys++ artifacts = []+ fresh_values = []+ with open(sys.argv[1], encoding="utf-8") as stream:+ for line in stream:+ try:+ message = json.loads(line)+ except json.JSONDecodeError:+ continue+ target = message.get("target", {})+ executable = message.get("executable")+ if (+ message.get("reason") == "compiler-artifact"+ and target.get("name") == "openhuman_core"+ and target.get("test") is True+ and executable+ ):+ artifacts.append(executable)+ fresh_values.append(str(message.get("fresh", "unknown")))+ if len(artifacts) != 1:+ raise SystemExit(f"expected exactly one openhuman lib-test binary, got {artifacts!r}")+ with open(sys.argv[2], "w", encoding="utf-8") as stream:+ stream.write(artifacts[0] + "\n")+ with open(sys.argv[3], "w", encoding="utf-8") as stream:+ stream.write("\n".join(fresh_values) + "\n")+ PY+ source_binary="$(cat "$evidence/test-binary-path")"+ binary=target/debug/proof-binaries/doctor-legacy-red+ cp "$source_binary" "$binary"+ sha256sum "$binary" > "$evidence/test-binary.sha256"+ "$binary" --list > "$evidence/test-list.txt"+ sha256sum "$evidence/test-list.txt" > "$evidence/test-list.sha256"+ {+ printf 'compiler_artifact_fresh='; paste -sd, "$evidence/compiler-fresh.txt"+ printf 'immutable_binary=%s\n' "$binary"+ cat "$evidence/test-binary.sha256"+ cat "$evidence/test-list.sha256"+ } >> "$evidence/receipt.txt"++ raw_filter=core::all::bound_controller_tests::doctor_controller_tests::raw_doctor_platform_registry_matches_its_independent_contract+ raw_log="$evidence/raw-contract.log"+ printf 'raw_filter=%s\nraw_command=%s %s --exact --test-threads=1\nexpected_raw_exit=101\n' "$raw_filter" "$binary" "$raw_filter" >> "$evidence/receipt.txt"+ started_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"+ set +e+ "$binary" "$raw_filter" --exact --test-threads=1 > "$raw_log" 2>&1+ raw_exit=$?+ set -e+ ended_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"+ printf 'raw_started_utc=%s\nraw_ended_utc=%s\nraw_exit=%s\n' "$started_at" "$ended_at" "$raw_exit" >> "$evidence/receipt.txt"+ if [ "$raw_exit" -ne 101 ]; then+ cat "$raw_log"+ echo "expected one genuine runtime RED with exit 101, got $raw_exit"+ exit 1+ fi+ grep -Fq 'doctor.models registry entry is legacy, not bound' "$raw_log"+ grep -Fq 'test result: FAILED. 0 passed; 1 failed;' "$raw_log"+ cat "$raw_log"++ - name: Upload proof logs and receipt+ if: always()+ uses: actions/upload-artifact@v7+ with:+ name: doctor-legacy-red-receipt+ path: target/doctor-proof/+ retention-days: 30+ if-no-files-found: error++ - name: Upload matching lib-test binary+ if: success()+ uses: actions/upload-artifact@v7+ with:+ name: doctor-proof-legacy-red-binary+ path: target/debug/proof-binaries/doctor-legacy-red+ retention-days: 1+ compression-level: 1+ if-no-files-found: error