From 1ede74c038cf8d7ad68eab77066546c5e400e660 Mon Sep 17 00:00:00 2001 From: Bryan Wilder Field Lozano Date: Thu, 7 Nov 2024 17:02:23 -0800 Subject: [PATCH] [skip ci] #0: Allow Users to provide extra tag for T3K choose your own pipeline (#14873) --- .github/workflows/pipeline-select-t3k.yaml | 16 ++++++++++++++++ .github/workflows/t3000-demo-tests-impl.yaml | 11 ++++++++++- .github/workflows/t3000-frequent-tests-impl.yaml | 11 ++++++++++- .../workflows/t3000-model-perf-tests-impl.yaml | 11 ++++++++++- .github/workflows/t3000-nightly-tests-impl.yaml | 11 ++++++++++- .github/workflows/t3000-profiler-tests-impl.yaml | 7 ++++++- .github/workflows/t3000-unit-tests-impl.yaml | 11 ++++++++++- 7 files changed, 72 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline-select-t3k.yaml b/.github/workflows/pipeline-select-t3k.yaml index 3df726bdd6e..d602c81a73e 100644 --- a/.github/workflows/pipeline-select-t3k.yaml +++ b/.github/workflows/pipeline-select-t3k.yaml @@ -12,6 +12,10 @@ on: - RelWithDebInfo - CI default: "Release" + extra-tag: + required: true + type: string + default: "in-service" build-with-tracy: required: false type: boolean @@ -54,29 +58,41 @@ jobs: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-unit-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-unit }} t3000-demo-tests: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-demo-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-demo }} t3000-frequent-tests: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-frequent-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-frequent }} t3000-nightly-tests: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-nightly-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-nightly }} t3000-model-perf-tests: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-model-perf-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-model-perf }} t3000-profiler-tests: needs: build-artifact secrets: inherit uses: ./.github/workflows/t3000-profiler-tests-impl.yaml + with: + extra-tag: ${{ inputs.extra-tag }} if: ${{ inputs.t3000-profiler }} diff --git a/.github/workflows/t3000-demo-tests-impl.yaml b/.github/workflows/t3000-demo-tests-impl.yaml index 8c3d98815a3..a67f635b32f 100644 --- a/.github/workflows/t3000-demo-tests-impl.yaml +++ b/.github/workflows/t3000-demo-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 demo tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: t3000-demo-tests: @@ -23,7 +28,11 @@ jobs: ARCH_NAME: ${{ matrix.test-group.arch }} LOGURU_LEVEL: INFO LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-perf"] + runs-on: + - arch-wormhole_b0 + - config-t3000 + - pipeline-perf + - ${{ inputs.extra-tag }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Enable performance mode diff --git a/.github/workflows/t3000-frequent-tests-impl.yaml b/.github/workflows/t3000-frequent-tests-impl.yaml index f770b1db457..2eebf0b7ef3 100644 --- a/.github/workflows/t3000-frequent-tests-impl.yaml +++ b/.github/workflows/t3000-frequent-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 frequent tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: t3000-frequent-tests: @@ -27,7 +32,11 @@ jobs: ARCH_NAME: ${{ matrix.test-group.arch }} LOGURU_LEVEL: INFO LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-functional"] + runs-on: + - arch-wormhole_b0 + - config-t3000 + - pipeline-functional + - ${{ inputs.extra-tag }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - uses: ./.github/actions/ensure-active-weka-mount diff --git a/.github/workflows/t3000-model-perf-tests-impl.yaml b/.github/workflows/t3000-model-perf-tests-impl.yaml index 1787bd5c2e9..9cfeb3525ee 100644 --- a/.github/workflows/t3000-model-perf-tests-impl.yaml +++ b/.github/workflows/t3000-model-perf-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 model perf tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: @@ -25,7 +30,11 @@ jobs: ARCH_NAME: ${{ matrix.test-group.arch }} LOGURU_LEVEL: INFO LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-perf"] + runs-on: + - arch-wormhole_b0 + - config-t3000 + - pipeline-perf + - ${{ inputs.extra-tag }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Enable performance mode diff --git a/.github/workflows/t3000-nightly-tests-impl.yaml b/.github/workflows/t3000-nightly-tests-impl.yaml index 009e6549d19..422d1bc4350 100644 --- a/.github/workflows/t3000-nightly-tests-impl.yaml +++ b/.github/workflows/t3000-nightly-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 nightly tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: t3000-nightly-tests: @@ -18,7 +23,11 @@ jobs: ARCH_NAME: ${{ matrix.test-group.arch }} LOGURU_LEVEL: INFO LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-functional"] + runs-on: + - arch-wormhole_b0 + - config-t3000 + - pipeline-functional + - ${{ inputs.extra-tag }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Set up dynamic env vars for build diff --git a/.github/workflows/t3000-profiler-tests-impl.yaml b/.github/workflows/t3000-profiler-tests-impl.yaml index ebd4940bb68..19268e77aa3 100644 --- a/.github/workflows/t3000-profiler-tests-impl.yaml +++ b/.github/workflows/t3000-profiler-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 profiler tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: t3000-profiler-tests: @@ -12,7 +17,7 @@ jobs: { name: "T3000 profiler tests", arch: wormhole_b0, - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-perf"], + runs-on: ["arch-wormhole_b0", "config-t3000", "pipeline-perf", "${{ inputs.extra-tag }}"], cmd: './tests/scripts/run_profiler_regressions.sh' }, ] diff --git a/.github/workflows/t3000-unit-tests-impl.yaml b/.github/workflows/t3000-unit-tests-impl.yaml index 0fce1a2b5e5..b1706331152 100644 --- a/.github/workflows/t3000-unit-tests-impl.yaml +++ b/.github/workflows/t3000-unit-tests-impl.yaml @@ -2,6 +2,11 @@ name: "[internal] T3000 unit tests impl" on: workflow_call: + inputs: + extra-tag: + required: true + type: string + default: "in-service" jobs: t3000-unit-tests: @@ -28,7 +33,11 @@ jobs: ARCH_NAME: ${{ matrix.test-group.arch }} LOGURU_LEVEL: INFO LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib - runs-on: ["arch-wormhole_b0", "config-t3000", "in-service", "pipeline-functional"] + runs-on: + - arch-wormhole_b0 + - config-t3000 + - pipeline-functional + - ${{ inputs.extra-tag }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Set up dynamic env vars for build