88 - ' .github/workflows/trace-ace-v121-pretrained-semantic-residual.yml'
99 workflow_dispatch :
1010
11+ # Infrastructure-only serialization. Scientific protocol is unchanged.
12+ concurrency :
13+ group : trace-ace-frozen-transcripts-v1
14+ cancel-in-progress : false
15+
1116jobs :
1217 semantic :
1318 runs-on : ubuntu-24.04
@@ -21,25 +26,44 @@ jobs:
2126 - name : Install dependencies
2227 run : |
2328 python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown fastembed==0.8.0
24- - name : Download frozen metadata and transcripts
29+
30+ - name : Restore frozen transcript archive from GitHub cache
31+ uses : actions/cache/restore@v4
32+ with :
33+ path : transcripts.zip
34+ key : trace-ace-transcripts-v1-603547640
35+ fail-on-cache-miss : true
36+
37+ - name : Validate frozen transcript archive
38+ shell : bash
2539 run : |
26- set -e
40+ set -euo pipefail
41+ test -f transcripts.zip
42+ test "$(stat -c%s transcripts.zip)" = "603547640"
43+ unzip -tq transcripts.zip >/dev/null
44+ ACTUAL=$(sha256sum transcripts.zip | cut -d' ' -f1)
45+ test "$ACTUAL" = "e685b85b04694e130c25b17d09cdd1892fbda5e9fa685e98b2300114b915aa2d"
46+ echo "Frozen transcript cache verified: $ACTUAL"
47+
48+ - name : Download frozen metadata and extract data
49+ shell : bash
50+ run : |
51+ set -euo pipefail
2752 gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
28- if ! gdown 1nOjremWhpZ_QKSLvZfGcNkS_C3kMMBUI -O transcripts.zip; then
29- echo 'primary frozen transcript transport failed; trying frozen mirror'
30- gdown 1UWuHKIJ86yINhQOBGx2fFJ890hiEa6Md -O transcripts.zip
31- fi
32- sha256sum metadata.zip transcripts.zip
3353 mkdir -p data/meta data/transcripts
3454 unzip -q metadata.zip -d data/meta
3555 unzip -q transcripts.zip -d data/transcripts
3656 FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)
3757 LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)
3858 FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit)
59+ test -n "$FEATURES"
60+ test -n "$LABELS"
61+ test -n "$FIRST"
3962 TRANSCRIPTS=$(dirname "$FIRST")
4063 echo "FEATURES=$FEATURES" >> "$GITHUB_ENV"
4164 echo "LABELS=$LABELS" >> "$GITHUB_ENV"
4265 echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV"
66+
4367 - name : Preflight
4468 run : |
4569 python -m py_compile competitions/trace_the_ace/v121_pretrained_semantic_residual.py
5882 --rows 2500 \
5983 --out ../../v121_pretrained_semantic_residual.json
6084 - name : Show decision
61- run : cat v121_pretrained_semantic_residual.json
85+ if : always()
86+ run : test -f v121_pretrained_semantic_residual.json && cat v121_pretrained_semantic_residual.json || true
6287 - uses : actions/upload-artifact@v4
6388 if : always()
6489 with :
0 commit comments