Skip to content

Commit b931f9f

Browse files
authored
Limit produce data trigger only on tt-forge (#879)
### Problem Produce-data job was made as a workaround for triggereing collect data workflows in tt-forge. It is causing errors when perf benchmark is triggered from tt-xla. ### Solution Produce data job is not needed when perf benchmark is triggered from tt-xla because the collect data workflow can catch it on it's on (name is Performance Benchmark so collect data workflow can recognize it). Only trigger the job when perf benchmark is triggered as a workflow call (because when it's triggered as a workflow call it has the exact name "Performance Benchmark" and collect data workflow can match it).
1 parent 26419c1 commit b931f9f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/perf-benchmark.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,17 @@ jobs:
304304
produce-data:
305305
needs:
306306
- fail-send-msg
307-
if: always()
307+
if: ${{ always() && inputs.parent_run_id != '' }}
308308
runs-on: ubuntu-latest
309309
steps:
310310
- name: checkout repository
311311
uses: actions/checkout@v4
312+
with:
313+
repository: 'tenstorrent/tt-forge'
314+
fetch-depth: 1
315+
ref: ${{ inputs.ref || github.ref }}
316+
submodules: 'recursive'
317+
312318
- name: Trigger produce_data.yml
313319
uses: ./.github/actions/trigger-workflow
314320
env:

0 commit comments

Comments
 (0)