Repository navigation
476 lines (442 loc) · 23.5 KB
/
Copy pathsearchIndexBuild.yml
File metadata and controls
476 lines (442 loc) · 23.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
name: Search Index Build
# ──────────────────────────────────────────────────────────────
# content 인덱스 월간 main + 일간 누적 delta 빌드와 HF 업로드 (full + lite tier).
#
# main 기준 changed-set과 tombstone을 누적 delta 하나로 교체해 fan-out을 고정한다.
# 누적 delta가 active의 25%를 넘으면 일간 실행도 main을 압축한다. 빌드는 catalog를 행 묶음으로 읽어
# 메모리가 행 수를 따르고(180만 행 7.8GB), 행 수 예산을 넘는 입력만 delta 경로를 유지한다.
#
# 트리거:
# - 매일 KST 04:00 (cron 0 19) — 증분(이전 catalog 대비 변화 0 이면 manifest pointer 만 re-point)
# - 매월 1일 KST 05:00 (cron 0 20 1): compaction 요청(no-change 단락 비활성, release 게이트)
# - 4 source sync 완료 직후 (workflow_run) — 증분
# - 수동 (workflow_dispatch) — build_mode / force_full / gate 선택
#
# 흐름: current index pull(이전 catalog + manifest) → source catalog pull → catalog inputs 준비
# → buildSearchMain(no-change 또는 누적 delta, 월간 compaction + per-source 가드 + 변경 파일 publish + lite)
# → round-trip / result-contract / canary / (release: quality-gold) → promote → remote evidence → cutover.
# ──────────────────────────────────────────────────────────────
on:
schedule:
- cron: '0 19 * * *' # KST 04:00 — daily incremental (dataSync 03:00 다음)
- cron: '0 20 1 * *' # KST 05:00 on 1st — monthly full rebuild (보강)
workflow_run:
workflows:
- Original SSOT Sync
- AllFilings Backfill
- News Archive Sync
- EDGAR Data Sync (Bulk)
types:
- completed
workflow_dispatch:
inputs:
build_mode:
description: Search build mode (catalog/legacy)
required: false
default: catalog
type: choice
options:
- catalog
- legacy
force_full:
description: Force full rebuild (skip no-change short-circuit)
required: false
default: false
type: boolean
expected_sources:
description: Required source catalog set
required: false
default: allFilings,dartPanel,edgarPanel,newsPublic
productization_gate:
description: 'Productization gate: ops/release'
required: false
default: release
quality_gold:
description: 'Release gate gold JSON/JSONL path'
required: false
default: tests/fixtures/search/queryLogGold.real.jsonl
permissions:
contents: read
concurrency:
group: hf-searchindex-push
cancel-in-progress: false
jobs:
build:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-24.04 # 무인 파이프라인 OS 고정. ubuntu-latest 는 2026-10-19 부터 Ubuntu 26 (CI 가 먼저 검증)
timeout-minutes: 180 # 3시간 (panel 다운로드 + 빌드)
env:
DARTLAB_HF_RETRY_ATTEMPTS: '3'
DARTLAB_HF_RETRY_MAX_SINGLE_WAIT_SECONDS: '120'
# 월간 cron(1일 05:00) 또는 수동 force_full → 풀 재빌드(no-change 단락 비활성). 그 외(일간/workflow_run)=증분.
FORCE_FULL: ${{ (github.event_name == 'schedule' && github.event.schedule == '0 20 1 * *') || github.event.inputs.force_full == 'true' }}
# 일간 cron·workflow_run → ops 게이트. 월간·수동 → release(또는 입력).
PRODUCTIZATION_GATE: ${{ (github.event_name == 'workflow_run' || (github.event_name == 'schedule' && github.event.schedule == '0 19 * * *')) && 'ops' || (github.event.inputs.productization_gate || 'release') }}
steps:
- uses: actions/checkout@v6
# allFilings(1.3GB)+panel(16GB) → 기본 러너 디스크(~14GB) 압박. 선제 확보.
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
df -h /
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync
- name: Local search pipeline drill
run: >
uv run python -X utf8 .github/scripts/search/runSearchPipelineDrill.py
--out "$RUNNER_TEMP/searchPipelineDrill.json"
--fail-on-error
# 이전 current index → previous catalog_snapshot(증분 diff 기준) + previous_manifest(clean publish 판정).
- name: Pull existing content index from HF
run: >
uv run python -X utf8 .github/scripts/search/pullSearchCurrentIndex.py
--tier full
--out-dir data/dart/contentIndex
--previous-manifest data/dart/contentIndex/previous_manifest.json
--optional-file main_catalog_snapshot.parquet
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
DARTLAB_HF_RETRY_ATTEMPTS: '5'
DARTLAB_HF_RETRY_MAX_SINGLE_WAIT_SECONDS: '300'
- name: Pull existing lite content index from HF
continue-on-error: true
run: >
uv run python -X utf8 .github/scripts/search/pullSearchCurrentIndex.py
--tier lite
--out-dir data/dart/contentIndex/lite
--previous-manifest data/dart/contentIndex/lite/previous_manifest.json
--optional-file main_catalog_snapshot.parquet
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
DARTLAB_HF_RETRY_ATTEMPTS: '5'
DARTLAB_HF_RETRY_MAX_SINGLE_WAIT_SECONDS: '300'
- name: Pull source search catalogs from HF
if: ${{ inputs.build_mode != 'legacy' }}
run: |
uv run python -c "
from huggingface_hub import snapshot_download
try:
snapshot_download(repo_id='eddmpython/dartlab-data', repo_type='dataset',
allow_patterns=['dart/searchCatalog/**'],
local_dir='data', max_workers=4)
except Exception as e:
print(f'search catalog pull skipped: {e}')
"
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Prepare catalog inputs
if: ${{ inputs.build_mode != 'legacy' }}
run: |
if [ "${FORCE_FULL}" = "true" ]; then
echo "compaction requested — 기존 catalog baseline은 OOM-safe fallback을 위해 유지"
else
echo "incremental — 이전 current index 의 catalog_snapshot 을 previous 로 diff(변화 0 이면 re-point)"
fi
uv run python -X utf8 .github/scripts/search/prepareSearchDeltaInputs.py \
--previous data/dart/contentIndex/catalog_snapshot.parquet \
--out-current data/dart/searchCatalog/main.current.catalog_snapshot.parquet
env:
DARTLAB_SEARCH_EXPECTED_SOURCES: ${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}
# ── 레거시 부트스트랩 (operator-only, build_mode=legacy) — source catalog 부재 시 raw 풀로 복구 ──
- name: Pull all raw data from HF (legacy bootstrap)
if: ${{ inputs.build_mode == 'legacy' }}
run: |
# HF 429(1000 req/5분 쿼터) 대응 — 4 폴더 패턴을 *한 번의* snapshot_download 로 통합해
# repo tree 열거를 attempt 당 1회로 줄인다. 열거 단계 429 는 silent-partial 로 떨어지므로
# 완료 판정은 예외가 아니라 폴더별 파일수 하한으로만 한다.
ok=0
for attempt in $(seq 1 12); do
uv run python -c "
from huggingface_hub import snapshot_download
try:
snapshot_download(repo_id='eddmpython/dartlab-data', repo_type='dataset',
allow_patterns=[
'dart/allFilings/*',
'dart/panel/**',
'edgar/panel/**',
'news/public/rss/**',
'news/public/rss_enriched/**',
],
local_dir='data', max_workers=4)
except Exception as e:
print(f'partial pull: {e}')
"
af=$(find data/dart/allFilings -name '*.parquet' 2>/dev/null | wc -l)
pn=$(find data/dart/panel -name '*.parquet' 2>/dev/null | wc -l)
ep=$(find data/edgar/panel -name '*.parquet' 2>/dev/null | wc -l)
nh=$(find data/news/public/rss -name '*.parquet' 2>/dev/null | wc -l)
ne=$(find data/news/public/rss_enriched -name '*.parquet' 2>/dev/null | wc -l)
echo "pull 검증($attempt/12): allFilings=$af panel=$pn edgarPanel=$ep news=$nh newsEnriched=$ne"
if [ "$af" -ge 300 ] && [ "$pn" -ge 2400 ] && [ "$ep" -ge 2000 ] && [ "$nh" -ge 1 ] && [ "$ne" -ge 1 ]; then ok=1; break; fi
echo "pull attempt $attempt 미완 — quota window 경과 대기 310s"; sleep 310
done
[ "$ok" = "1" ]
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Build canonical source search catalogs from full HF pull (legacy bootstrap)
if: ${{ inputs.build_mode == 'legacy' }}
run: |
uv run python -X utf8 .github/scripts/search/buildSearchCatalog.py \
--source allFilings \
--input 'data/dart/allFilings/**/*.parquet' \
--out-dir data/dart/searchCatalog/allFilings \
--producer searchIndexBuild.full-pull \
--compare-remote-manifest \
--upload
uv run python -X utf8 .github/scripts/search/buildSearchCatalog.py \
--source dartPanel \
--input 'data/dart/panel/*.parquet' \
--out-dir data/dart/searchCatalog/dartPanel \
--producer searchIndexBuild.full-pull \
--compare-remote-manifest \
--upload
uv run python -X utf8 .github/scripts/search/buildSearchCatalog.py \
--source edgarPanel \
--input 'data/edgar/panel/*.parquet' \
--out-dir data/dart/searchCatalog/edgarPanel \
--producer searchIndexBuild.full-pull \
--compare-remote-manifest \
--upload
uv run python -X utf8 .github/scripts/search/buildSearchCatalog.py \
--source newsPublic \
--input 'data/news/public/rss_enriched/**/*.parquet' \
--out-dir data/dart/searchCatalog/newsPublic \
--producer searchIndexBuild.full-pull \
--compare-remote-manifest \
--upload
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Prepare catalog inputs after legacy bootstrap
if: ${{ inputs.build_mode == 'legacy' }}
run: >
uv run python -X utf8 .github/scripts/search/prepareSearchDeltaInputs.py
--previous ""
--out-current data/dart/searchCatalog/main.current.catalog_snapshot.parquet
env:
DARTLAB_SEARCH_EXPECTED_SOURCES: ${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}
- name: Build content index + stage candidate
# 러너가 메모리 고갈로 강제 종료되면 버퍼에 남은 로그와 피크가 함께 사라진다(2026-10-07~11 실측: 3 분 넘게
# 출력 없이 끊김). 출력을 바로 흘리고 30 초마다 사용 메모리를 남겨 실패 run 에서도 근거가 보이게 한다.
run: |
( while sleep 30; do echo "[mem] $(free -m | awk '/^Mem:/ {print "used=" $3 "MB avail=" $7 "MB"}')"; done ) &
sampler=$!
trap 'kill "$sampler" 2>/dev/null || true' EXIT
uv run python .github/scripts/search/buildSearchMain.py
env:
PYTHONUNBUFFERED: "1"
HF_TOKEN: ${{ secrets.HF_TOKEN }}
DARTLAB_SEARCH_EXPECTED_SOURCES: ${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}
DARTLAB_SEARCH_MAIN_MODE: ${{ inputs.build_mode || 'catalog' }}
DARTLAB_SEARCH_PROMOTE_CURRENT: "0"
- name: Verify HF contentIndex candidate round-trip (full)
shell: bash
run: |
args=(--tier full --out "$RUNNER_TEMP/searchHfRoundTrip.build.full.json" --fail-on-error)
if [ -n "${DARTLAB_SEARCH_FULL_CANDIDATE_MANIFEST:-}" ]; then
args+=(--manifest-repo-path "$DARTLAB_SEARCH_FULL_CANDIDATE_MANIFEST")
fi
uv run python -X utf8 .github/scripts/search/verifySearchHfRoundTrip.py "${args[@]}"
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Verify HF contentIndex candidate round-trip (lite)
shell: bash
run: |
args=(--tier lite --out "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json" --fail-on-error)
if [ -n "${DARTLAB_SEARCH_LITE_CANDIDATE_MANIFEST:-}" ]; then
args+=(--manifest-repo-path "$DARTLAB_SEARCH_LITE_CANDIDATE_MANIFEST")
fi
uv run python -X utf8 .github/scripts/search/verifySearchHfRoundTrip.py "${args[@]}"
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Audit search result contract
run: >
uv run python -X utf8 .github/scripts/search/evaluateSearchResultContract.py
--query "유상증자"
--query "공시 말고 뉴스로 환율 기사"
--query "HBM 투자 계획"
--out "$RUNNER_TEMP/searchResultContract.build.json"
--min-rows 3
--fail-on-error
- name: Audit source/no-answer canary pack
run: >
uv run python -X utf8 .github/scripts/search/evaluateSearchCanary.py
--manifest data/dart/contentIndex/manifest.json
--require-deterministic
--out "$RUNNER_TEMP/searchCanary.build.json"
--fail-on-error
- name: Run query-log quality toolchain drill
run: >
uv run python -X utf8 .github/scripts/search/runSearchQualityDrill.py
--out "$RUNNER_TEMP/searchQualityDrill.build.json"
--canonical-gold "$RUNNER_TEMP/searchQualityDrill.build.gold.jsonl"
--label-template "$RUNNER_TEMP/searchQualityDrill.build.labels.jsonl"
--miss-ledger "$RUNNER_TEMP/searchQualityDrill.build.miss.jsonl"
--fail-on-error
- name: Evaluate real query-log quality
if: ${{ always() && env.PRODUCTIZATION_GATE == 'release' }}
# 월간 예약 run 은 release 준비도(검색 품질)를 재고 기록만 한다. 품질 미달이 매달 run 을 빨갛게 만들어 감시가
# 장애로 올리고 뒤 promote 까지 건너뛰었다(2026-08-01·09-01·10-01, overallReadyRate 0.65·0.56·0.55 < 0.9).
# 기준(0.9)은 그대로이고, 운영자가 수동으로 돌리는 release 게이트는 지금처럼 미달이면 실패한다.
continue-on-error: ${{ github.event_name == 'schedule' }}
run: >
uv run python -X utf8 .github/scripts/search/evaluateSearchGold.py
--gold "${{ inputs.quality_gold || 'tests/fixtures/search/queryLogGold.real.jsonl' }}"
--out "$RUNNER_TEMP/searchQuality.build.json"
--miss-ledger "$RUNNER_TEMP/searchMissLedger.build.jsonl"
--required-targets filing,news,noAnswer,edgar
--fail-on-ineligible
- name: Promote verified contentIndex candidate (full)
shell: bash
run: |
if [ -z "${DARTLAB_SEARCH_FULL_CANDIDATE_MANIFEST:-}" ]; then
echo "No full candidate manifest staged; skip promote"
exit 0
fi
uv run python -X utf8 .github/scripts/search/promoteSearchCandidate.py \
--tier full \
--candidate-manifest-path "$DARTLAB_SEARCH_FULL_CANDIDATE_MANIFEST" \
--out "$RUNNER_TEMP/searchPromote.build.full.json" \
--fail-on-error
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Promote verified contentIndex candidate (lite)
shell: bash
run: |
if [ -z "${DARTLAB_SEARCH_LITE_CANDIDATE_MANIFEST:-}" ]; then
echo "No lite candidate manifest staged; skip promote"
exit 0
fi
uv run python -X utf8 .github/scripts/search/promoteSearchCandidate.py \
--tier lite \
--candidate-manifest-path "$DARTLAB_SEARCH_LITE_CANDIDATE_MANIFEST" \
--out "$RUNNER_TEMP/searchPromote.build.lite.json" \
--fail-on-error
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Audit remote search evidence
if: ${{ always() }}
run: >
uv run python -X utf8 .github/scripts/search/checkSearchRemoteEvidence.py
--expected-sources "${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}"
--content-tiers full,lite
--out "$RUNNER_TEMP/searchRemoteEvidence.build.json"
--fail-on-missing
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Evaluate search productization status (ops gate)
if: ${{ always() && env.PRODUCTIZATION_GATE != 'release' }}
run: >
uv run python -X utf8 .github/scripts/search/evaluateSearchProductizationStatus.py
--expected-sources "${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}"
--remote-evidence "$RUNNER_TEMP/searchRemoteEvidence.build.json"
--result-contract "$RUNNER_TEMP/searchResultContract.build.json"
--canary-report "$RUNNER_TEMP/searchCanary.build.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.full.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json"
--out "$RUNNER_TEMP/searchProductizationStatus.build.json"
--fail-on-ops-not-ready
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Evaluate search productization status (release gate)
if: ${{ always() && env.PRODUCTIZATION_GATE == 'release' }}
run: >
uv run python -X utf8 .github/scripts/search/evaluateSearchProductizationStatus.py
--expected-sources "${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}"
--remote-evidence "$RUNNER_TEMP/searchRemoteEvidence.build.json"
--result-contract "$RUNNER_TEMP/searchResultContract.build.json"
--canary-report "$RUNNER_TEMP/searchCanary.build.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.full.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json"
--quality-report "$RUNNER_TEMP/searchQuality.build.json"
--out "$RUNNER_TEMP/searchProductizationStatus.build.json"
${{ github.event_name == 'schedule' && '--fail-on-ops-not-ready' || '--fail-on-release-not-ready' }}
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Build search proof bundle (ops gate)
if: ${{ always() && env.PRODUCTIZATION_GATE != 'release' }}
run: >
uv run python -X utf8 .github/scripts/search/buildSearchProofBundle.py
--expected-sources "${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}"
--result-contract-report "$RUNNER_TEMP/searchResultContract.build.json"
--canary-report "$RUNNER_TEMP/searchCanary.build.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.full.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json"
--out-dir "$RUNNER_TEMP/searchProofBundle.build"
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Build search proof bundle (release gate)
if: ${{ always() && env.PRODUCTIZATION_GATE == 'release' }}
run: >
uv run python -X utf8 .github/scripts/search/buildSearchProofBundle.py
--expected-sources "${{ inputs.expected_sources || 'allFilings,dartPanel,edgarPanel,newsPublic' }}"
--result-contract-report "$RUNNER_TEMP/searchResultContract.build.json"
--canary-report "$RUNNER_TEMP/searchCanary.build.json"
--quality-report "$RUNNER_TEMP/searchQuality.build.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.full.json"
--hf-round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json"
--out-dir "$RUNNER_TEMP/searchProofBundle.build"
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Evaluate search cutover state
if: always()
shell: bash
run: |
if [ -f "$RUNNER_TEMP/searchProofBundle.build/searchProofBundle.json" ]; then
replacement_args=(
--proof-bundle "$RUNNER_TEMP/searchProofBundle.build/searchProofBundle.json"
--remote-evidence "$RUNNER_TEMP/searchRemoteEvidence.build.json"
--round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.full.json"
--round-trip "$RUNNER_TEMP/searchHfRoundTrip.build.lite.json"
--workflow .github/workflows/searchIndexBuild.yml
--out "$RUNNER_TEMP/searchReplacementEvidence.build.json"
)
cutover_args=(
--proof-bundle "$RUNNER_TEMP/searchProofBundle.build/searchProofBundle.json"
--replacement-evidence "$RUNNER_TEMP/searchReplacementEvidence.build.json"
--out "$RUNNER_TEMP/searchCutover.build.json"
)
# 월간 예약 run 의 release 판정은 기록만 하고(운영 준비 깨짐만 실패), 수동 release 게이트는 엄격하다.
if [ "${PRODUCTIZATION_GATE:-ops}" = "release" ] && [ "${GITHUB_EVENT_NAME:-}" != "schedule" ]; then
replacement_args+=(--fail-on-incomplete)
cutover_args+=(--fail-on-default-not-ready)
else
cutover_args+=(--fail-on-ops-not-ready)
fi
uv run python -X utf8 .github/scripts/search/buildSearchReplacementEvidence.py \
"${replacement_args[@]}"
uv run python -X utf8 .github/scripts/search/evaluateSearchCutover.py \
"${cutover_args[@]}"
else
cat > "$RUNNER_TEMP/searchCutover.build.json" <<'JSON'
{"state":"S0_EXPERIMENT","designReady":false,"opsReady":false,"releaseReady":false,"defaultReplacement":false,"blockers":["missingProofBundle"],"valid":false}
JSON
exit 1
fi
- name: Upload search evidence reports
if: always()
uses: actions/upload-artifact@v7
with:
name: search-index-build-evidence-${{ github.run_id }}
path: |
${{ runner.temp }}/searchPipelineDrill.json
${{ runner.temp }}/searchHfRoundTrip.build.full.json
${{ runner.temp }}/searchHfRoundTrip.build.lite.json
${{ runner.temp }}/searchResultContract.build.json
${{ runner.temp }}/searchCanary.build.json
${{ runner.temp }}/searchQualityDrill.build.json
${{ runner.temp }}/searchQualityDrill.build.gold.jsonl
${{ runner.temp }}/searchQualityDrill.build.labels.jsonl
${{ runner.temp }}/searchQualityDrill.build.miss.jsonl
${{ runner.temp }}/searchPromote.build.full.json
${{ runner.temp }}/searchPromote.build.lite.json
${{ runner.temp }}/searchRemoteEvidence.build.json
${{ runner.temp }}/searchQuality.build.json
${{ runner.temp }}/searchMissLedger.build.jsonl
${{ runner.temp }}/searchProductizationStatus.build.json
${{ runner.temp }}/searchReplacementEvidence.build.json
${{ runner.temp }}/searchCutover.build.json
${{ runner.temp }}/searchProofBundle.build/**