Skip to content

Commit

Permalink
#8558: Refactor t3000, tg and tgg pipelines, workflows and run test s…
Browse files Browse the repository at this point in the history
…cripts
  • Loading branch information
tapspatel committed May 16, 2024
1 parent 09800db commit 3835d48
Show file tree
Hide file tree
Showing 30 changed files with 843 additions and 488 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/multi-device-build-and-unit-tests-frequent.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/multi-device-build-and-unit-tests.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/multi-device-end-to-end-demos.yaml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/multi-device-perf-models.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/run-profiler-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
{arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-1", "multi-chip-num-chips-1"]},
# N300
{arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-1", "multi-chip-num-chips-2"]},
# N300 2x4
{name: "n300-2x4", arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-4", "multi-chip-num-chips-8"]},
]
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/t3000-demo-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "[T3K] T3000 demo tests"

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 6' # This cron schedule runs the workflow every Saturday at 12am UTC

jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
t3000-demo-tests:
needs: build-artifact
strategy:
fail-fast: false
matrix:
test-group: [
{
name: "T3000 demo tests",
arch: wormhole_b0,
runs-on: [arch-wormhole_b0, "config-t3000", "in-service", "runner-test", "bare-metal", "pipeline-functional"],
cmd: './tests/scripts/run_tests.sh --tt-arch wormhole_b0 --pipeline-type demos_t3000_device --dispatch-mode ""'
},
]
name: ${{ matrix.test-group.name }}
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.test-group.arch }}
LOGURU_LEVEL: INFO
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib
environment: dev
runs-on: ${{ matrix.test-group.runs-on }}
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ matrix.test-group.arch }}
- name: Extract files
run: tar -xvf ttm_${{ matrix.test-group.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Run demo regression tests
timeout-minutes: 180
run: |
source ${{ github.workspace }}/python_env/bin/activate
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
${{ matrix.test-group.cmd }}
53 changes: 53 additions & 0 deletions .github/workflows/t3000-frequent-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "[T3K] T3000 frequent tests"

on:
push:
branches:
- tpatel/issue-8558
workflow_dispatch:
schedule:
- cron: "0 */8 * * *" # This cron schedule runs the workflow every 8 hours

jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
t3000-frequent-tests:
needs: build-artifact
strategy:
fail-fast: false
matrix:
test-group: [
{
name: "T3000 frequent tests",
arch: wormhole_b0,
runs-on: [arch-wormhole_b0, "config-t3000", "in-service", "runner-test", "bare-metal", "pipeline-functional"],
cmd: './tests/scripts/run_tests.sh --tt-arch wormhole_b0 --pipeline-type frequent_t3000_device --dispatch-mode ""'
},
]
name: ${{ matrix.test-group.name }}
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.test-group.arch }}
LOGURU_LEVEL: INFO
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib
environment: dev
runs-on: ${{ matrix.test-group.runs-on }}
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ matrix.test-group.arch }}
- name: Extract files
run: tar -xvf ttm_${{ matrix.test-group.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Run frequent regression tests
timeout-minutes: 60
run: |
source ${{ github.workspace }}/python_env/bin/activate
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
${{ matrix.test-group.cmd }}
Loading

0 comments on commit 3835d48

Please sign in to comment.