@@ -3,50 +3,28 @@ name: ParseBench Version Lab
33run-name : >-
44 ${{
55 format(
6- 'pymupdf4llm_html_tables_rapidocr_v3 · {0} · {1} · {2}',
7- inputs.pymupdf_branch,
8- inputs.run_scope == 'Quick test (15 cases)' && 'Quick 15' || 'Full ~2k',
9- inputs.group == 'All categories' && 'All' ||
10- inputs.group == 'Page layout' && 'Layout' ||
11- inputs.group
6+ 'PyMuPDF {0} · {1} · {2} · {3}',
7+ github.event.client_payload.pymupdf_version,
8+ github.event.client_payload.pymupdf_branch,
9+ github.event.client_payload.run_scope == 'Quick test (15 cases)' && 'Quick 15' || 'Full ~2k',
10+ github.event.client_payload.group == 'All categories' && 'All' ||
11+ github.event.client_payload.group == 'Page layout' && 'Layout' ||
12+ github.event.client_payload.group
1213 )
1314 }}
1415
1516on :
16- workflow_dispatch :
17- inputs :
18- pymupdf_branch :
19- description : " PyMuPDF branch to benchmark (for example main or your feature branch)."
20- required : true
21- default : " main"
22- type : string
23- run_scope :
24- description : " How much data should be tested?"
25- required : true
26- default : " Quick test (15 cases)"
27- type : choice
28- options :
29- - " Quick test (15 cases)"
30- - " Full benchmark (~2,000 pages)"
31- group :
32- description : " Which document category should be tested?"
33- required : true
34- default : " All categories"
35- type : choice
36- options :
37- - " All categories"
38- - Charts
39- - Tables
40- - " Page layout"
41- - " Text content"
42- - " Text formatting"
17+ repository_dispatch :
18+ types : [parsebench-version-lab]
4319
4420permissions :
4521 contents : read
4622 packages : read
4723
4824env :
4925 PIPELINE : pymupdf4llm_html_tables_rapidocr_v3
26+ PYMUPDF_RELEASE_TAG : ${{ github.event.client_payload.pymupdf_tag }}
27+ LAUNCHER_RUN_ID : ${{ github.event.client_payload.launcher_run_id }}
5028 GCP_PROJECT_ID : pypi-download-analysis-457820
5129 GCS_PREFIX : parsebench/pymupdf_source_stack
5230 UV_NO_SYNC : " 1"
@@ -72,14 +50,17 @@ jobs:
7250 steps :
7351 - name : Checkout ParseBench
7452 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53+ with :
54+ ref : ${{ github.event.client_payload.benchmark_sha }}
55+ persist-credentials : false
7556
7657 - name : Initialize run configuration
7758 id : config
7859 env :
79- BENCHMARK_REF : ${{ github.ref_name }}
80- GROUP_SELECTION : ${{ inputs .group }}
81- PYMUPDF_BRANCH : ${{ inputs .pymupdf_branch }}
82- RUN_SCOPE_SELECTION : ${{ inputs .run_scope }}
60+ BENCHMARK_REF : ${{ github.event.client_payload.benchmark_ref }}
61+ GROUP_SELECTION : ${{ github.event.client_payload .group }}
62+ PYMUPDF_BRANCH : ${{ github.event.client_payload .pymupdf_branch }}
63+ RUN_SCOPE_SELECTION : ${{ github.event.client_payload .run_scope }}
8364 run : python3 "$WORKFLOW_SCRIPTS/configure.py"
8465
8566 - name : Resolve PyMuPDF branch and bundled sources
@@ -177,13 +158,13 @@ jobs:
177158
178159 - name : Add selected configuration to workflow summary
179160 env :
180- BENCHMARK_REF : ${{ github.ref_name }}
161+ BENCHMARK_REF : ${{ github.event.client_payload.benchmark_ref }}
181162 DATASET_REPOSITORY : ${{ steps.dataset.outputs.repository }}
182163 DATASET_REQUESTED_REF : ${{ steps.dataset.outputs.requested_ref }}
183164 DATASET_SHA : ${{ steps.dataset.outputs.sha }}
184- GROUP_SELECTION : ${{ inputs .group }}
165+ GROUP_SELECTION : ${{ github.event.client_payload .group }}
185166 OUTPUT_DIR : ${{ steps.config.outputs.output_dir }}
186- RUN_SCOPE_SELECTION : ${{ inputs .run_scope }}
167+ RUN_SCOPE_SELECTION : ${{ github.event.client_payload .run_scope }}
187168 run : python3 "$WORKFLOW_SCRIPTS/write_run_summary.py"
188169
189170 - name : Install ParseBench dependencies without selected PyMuPDF packages
@@ -313,6 +294,7 @@ jobs:
313294 - name : Checkout publishing helper
314295 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
315296 with :
297+ ref : ${{ github.event.client_payload.benchmark_sha }}
316298 persist-credentials : false
317299 sparse-checkout : |
318300 .github/scripts/pymupdf_source_stack
@@ -357,6 +339,7 @@ jobs:
357339 - name : Checkout summary helpers
358340 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
359341 with :
342+ ref : ${{ github.event.client_payload.benchmark_sha }}
360343 persist-credentials : false
361344 sparse-checkout : |
362345 .github/scripts/pymupdf_source_stack
0 commit comments