Skip to content

infra: self-report authoritative V141 run id #3

infra: self-report authoritative V141 run id

infra: self-report authoritative V141 run id #3

name: Trace Ace V141 Runtime Asset Launch
on:
push:
branches: [main]
paths:
- '.github/workflows/trace-ace-v141-runtime-main-launch.yml'
workflow_dispatch:
permissions:
contents: write
actions: read
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
with:
ref: agent/v141-v135-runtime-assets
- name: Record authoritative V141 run start
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
set -euo pipefail
python - <<'PY'
import json, os, pathlib
out={
'run_id': int(os.environ['GITHUB_RUN_ID']),
'run_attempt': int(os.environ['GITHUB_RUN_ATTEMPT']),
'workflow': os.environ.get('GITHUB_WORKFLOW'),
'head_ref': 'agent/v141-v135-runtime-assets',
'status': 'STARTED'
}
pathlib.Path('/tmp/V141_RUN_START.json').write_text(json.dumps(out,indent=2))
print(json.dumps(out,indent=2))
PY
git fetch origin main
git worktree add /tmp/v141-status origin/main
cd /tmp/v141-status
mkdir -p competitions/trace_the_ace/results
cp /tmp/V141_RUN_START.json competitions/trace_the_ace/results/V141_RUN_START.json
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add competitions/trace_the_ace/results/V141_RUN_START.json
git commit -m "results: record V141 run start $GITHUB_RUN_ID"
git push origin HEAD:main
- uses: actions/setup-python@v5
with: {python-version: '3.12', cache: pip}
- run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown
- name: Restore transcript cache
id: tc
uses: actions/cache@v4
with:
path: transcripts.zip
key: trace-ace-transcripts-v1-603547640
- name: Verify cache
run: |
set -euo pipefail
test '${{ steps.tc.outputs.cache-hit }}' = 'true'
test "$(stat -c%s transcripts.zip)" = '603547640'
echo 'e685b85b04694e130c25b17d09cdd1892fbda5e9fa685e98b2300114b915aa2d transcripts.zip' | sha256sum -c -
- name: Restore metadata
run: |
gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
mkdir -p data/transcripts data/meta
unzip -q transcripts.zip -d data/transcripts
unzip -q metadata.zip -d data/meta
echo "FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)" >> "$GITHUB_ENV"
echo "LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)" >> "$GITHUB_ENV"
FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit); echo "TRANSCRIPTS=$(dirname "$FIRST")" >> "$GITHUB_ENV"
- name: Build frozen V135 assets
run: |
cd competitions/trace_the_ace
python train_v135_runtime_assets.py --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" --out ../../v135_runtime_assets
- uses: actions/upload-artifact@v4
with:
name: trace-ace-v141-v135-runtime-assets
path: v135_runtime_assets
retention-days: 14
- name: Record completion marker
if: always()
shell: bash
run: |
python - <<'PY'
import json, os, pathlib
out={'run_id':int(os.environ['GITHUB_RUN_ID']),'run_attempt':int(os.environ['GITHUB_RUN_ATTEMPT']),'status':'JOB_REACHED_FINAL_MARKER'}
pathlib.Path('/tmp/V141_RUN_FINAL.json').write_text(json.dumps(out,indent=2))
PY
git fetch origin main
git worktree add /tmp/v141-final origin/main
cd /tmp/v141-final
mkdir -p competitions/trace_the_ace/results
cp /tmp/V141_RUN_FINAL.json competitions/trace_the_ace/results/V141_RUN_FINAL.json
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add competitions/trace_the_ace/results/V141_RUN_FINAL.json
git commit -m "results: record V141 final marker $GITHUB_RUN_ID" || true
git push origin HEAD:main || true