From 99aad3adc0d3de8c4cc74f13117abbdc00e45d19 Mon Sep 17 00:00:00 2001 From: Bill Teng Date: Fri, 13 Sep 2024 17:27:11 +0000 Subject: [PATCH 1/9] #0: explicitly list hw configurations available --- .github/workflows/test-dispatch.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index bcbca31da2a..1b6b90ea79e 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -12,7 +12,19 @@ on: - blackhole runner-label: required: true + type: choice + options: + - E150 + - N150 + - N300 + - config-t3000 + - config-tg + - config-tgg + - BH + runner-label: + required: false type: string + default: '["in-service"]' build-type: required: false type: choice @@ -53,7 +65,7 @@ jobs: environment: dev runs-on: - ${{ inputs.runner-label }} - - "in-service" + - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Ensure weka mount is active From fee11f2c8eef75133de0df66d3f1c65ad2c6f98f Mon Sep 17 00:00:00 2001 From: Bill Teng Date: Fri, 13 Sep 2024 18:16:40 +0000 Subject: [PATCH 2/9] #0: add "fromJson" syntax to expand multiple variables in array --- .github/workflows/test-dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 1b6b90ea79e..7590bc78221 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -64,7 +64,7 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ inputs.runner-label }} + - ${{ fromJson( inputs.runner-label ) }} - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 From 744a598e39f1648e12bd2fce076236de81e015b9 Mon Sep 17 00:00:00 2001 From: Bill Teng <135061747+TT-billteng@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:06:58 -0700 Subject: [PATCH 3/9] Update test-dispatch.yaml --- .github/workflows/test-dispatch.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 7590bc78221..3f2f6a9950b 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -64,8 +64,8 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ fromJson( inputs.runner-label ) }} - - ${{ inputs.hw-config }} + - ${{ join( inputs.runner-label, inputs.hw-config, "," ) }} + # - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Ensure weka mount is active From db2ab2fdd4a830520402a578cc0df4fbcc7e1798 Mon Sep 17 00:00:00 2001 From: Bill Teng <135061747+TT-billteng@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:11:59 -0700 Subject: [PATCH 4/9] Update test-dispatch.yaml --- .github/workflows/test-dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 3f2f6a9950b..5834320cb03 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -64,7 +64,7 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ join( inputs.runner-label, inputs.hw-config, "," ) }} + - ${{ format('[{0},{1}]' fromJSON(inputs.runner-label), inputs.hw-config) }} # - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 From 2ec5604d5de0ee6065b19daa036fc6ed93702982 Mon Sep 17 00:00:00 2001 From: Bill Teng <135061747+TT-billteng@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:13:26 -0700 Subject: [PATCH 5/9] Update test-dispatch.yaml --- .github/workflows/test-dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 5834320cb03..b7bc97d9175 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -64,7 +64,7 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ format('[{0},{1}]' fromJSON(inputs.runner-label), inputs.hw-config) }} + - ${{ format('[{0},{1}]' inputs.runner-label, inputs.hw-config) }} # - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 From 46a109e392b85b6bb0ce5f9c8440a5dbd20fa367 Mon Sep 17 00:00:00 2001 From: Bill Teng <135061747+TT-billteng@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:16:36 -0700 Subject: [PATCH 6/9] Update test-dispatch.yaml --- .github/workflows/test-dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index b7bc97d9175..372400d1a3f 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -64,7 +64,7 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ format('[{0},{1}]' inputs.runner-label, inputs.hw-config) }} + - ${{ format('[{0},{1}]', inputs.runner-label, inputs.hw-config ) }} # - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 From 32a9344f415ff510775959627260f9daae5110f9 Mon Sep 17 00:00:00 2001 From: Bill Teng Date: Fri, 27 Sep 2024 21:09:31 +0000 Subject: [PATCH 7/9] #0: test REVERT ME --- .github/workflows/test-dispatch.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 372400d1a3f..cf5f5bd22b6 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -48,15 +48,15 @@ on: run-name: ${{ inputs.description }} jobs: - build-artifact: - uses: ./.github/workflows/build-artifact.yaml - with: - arch: '[ "${{ inputs.arch }}" ]' - build-type: ${{ inputs.build-type }} - tracy: ${{ inputs.tracy }} - secrets: inherit + # build-artifact: + # uses: ./.github/workflows/build-artifact.yaml + # with: + # arch: '[ "${{ inputs.arch }}" ]' + # build-type: ${{ inputs.build-type }} + # tracy: ${{ inputs.tracy }} + # secrets: inherit test-dispatch: - needs: build-artifact + # needs: build-artifact timeout-minutes: 1440 env: TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} From 7d3836b7d4b7950375d7e17c2c89c2cac6473a4c Mon Sep 17 00:00:00 2001 From: Bill Teng Date: Fri, 27 Sep 2024 21:10:34 +0000 Subject: [PATCH 8/9] #0: test format --- .github/workflows/test-dispatch.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index cf5f5bd22b6..28fddab573f 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -24,7 +24,7 @@ on: runner-label: required: false type: string - default: '["in-service"]' + default: "in-service" build-type: required: false type: choice @@ -64,8 +64,9 @@ jobs: LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev runs-on: - - ${{ format('[{0},{1}]', inputs.runner-label, inputs.hw-config ) }} - # - ${{ inputs.hw-config }} + - ${{ inputs.runner-label }} + # ${{ format(''["{0}", "{1}"]'', inputs.runner-label, inputs.hw-config ) }} + - ${{ inputs.hw-config }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Ensure weka mount is active From c3620d34da96b8b86956bbe87aee6f3033260fde Mon Sep 17 00:00:00 2001 From: Bill Teng Date: Fri, 27 Sep 2024 21:37:52 +0000 Subject: [PATCH 9/9] #0: test format --- .github/workflows/test-dispatch.yaml | 47 ++++++++++++++-------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test-dispatch.yaml b/.github/workflows/test-dispatch.yaml index 28fddab573f..c4ba1bfa758 100644 --- a/.github/workflows/test-dispatch.yaml +++ b/.github/workflows/test-dispatch.yaml @@ -12,19 +12,8 @@ on: - blackhole runner-label: required: true - type: choice - options: - - E150 - - N150 - - N300 - - config-t3000 - - config-tg - - config-tgg - - BH - runner-label: - required: false type: string - default: "in-service" + default: '["in-service"]' build-type: required: false type: choice @@ -48,25 +37,35 @@ on: run-name: ${{ inputs.description }} jobs: - # build-artifact: - # uses: ./.github/workflows/build-artifact.yaml - # with: - # arch: '[ "${{ inputs.arch }}" ]' - # build-type: ${{ inputs.build-type }} - # tracy: ${{ inputs.tracy }} - # secrets: inherit + # setup: + # name: Setup runner labels for deploy + # runs-on: ubuntu-latest + # environment: ${{ inputs.environment }} + # outputs: + # deployrunner: ${{ steps.step1.outputs.deployrunner }} + # steps: + # - name: Set runs-on for deploy + # id: step1 + # run: | + # # local_var="\'[\"${{ inputs.hw-config }}\", \"${{ inputs.runner-label }}\"]\'" + # echo "deployrunner=${{ inputs.runner-label }}" >> $GITHUB_OUTPUT + build-artifact: + uses: ./.github/workflows/build-artifact.yaml + with: + arch: '[ "${{ inputs.arch }}" ]' + build-type: ${{ inputs.build-type }} + tracy: ${{ inputs.tracy }} + secrets: inherit test-dispatch: - # needs: build-artifact + # needs: setup + needs: build-artifact timeout-minutes: 1440 env: TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} ARCH_NAME: ${{ inputs.arch }} LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib environment: dev - runs-on: - - ${{ inputs.runner-label }} - # ${{ format(''["{0}", "{1}"]'', inputs.runner-label, inputs.hw-config ) }} - - ${{ inputs.hw-config }} + runs-on: ${{ fromJSON(inputs.runner-label) }} steps: - uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0 - name: Ensure weka mount is active