feat(seed): wire exam-corpus mode into the init entrypoint (gated)
Add 'exam-corpus' INIT_MODE: docker-entrypoint.sh case -> main.py --mode exam-corpus -> run_exam_corpus_mode() -> seed_exam_corpus.load(). Driven by EXAM_CORPUS_MANIFEST (+ DRY_RUN/FORCE/BOARD/SPEC/USER_SUBSET/FIRST_SWEEP env). Skips gracefully (success) when no manifest is configured, so it is safe in a comma list like INIT_MODE=infra,seed,exam-corpus before papers are gathered. Bucket provisioning stays in infra mode. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
9aabc12062
commit
d8cf3bbc62
@@ -75,6 +75,14 @@ if [ "$RUN_INIT" = "true" ]; then
|
||||
}
|
||||
print_success "GAIS data import completed"
|
||||
;;
|
||||
"exam-corpus")
|
||||
print_status "Seeding exam-paper corpus (manifest-gated; skips if none configured)..."
|
||||
python3 main.py --mode exam-corpus || {
|
||||
print_error "Exam corpus seed failed!"
|
||||
exit 1
|
||||
}
|
||||
print_success "Exam corpus seed completed"
|
||||
;;
|
||||
"full")
|
||||
print_status "Running full initialization..."
|
||||
python3 main.py --mode infra || exit 1
|
||||
|
||||
Reference in New Issue
Block a user