-
Notifications
You must be signed in to change notification settings - Fork 87
52 lines (50 loc) · 2.33 KB
/
stress-fast-dispatch-build-and-unit-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "Stress fast dispatch tests"
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
jobs:
stress-build-and-unit-tests:
timeout-minutes: 1440
strategy:
# Do not fail-fast because we need to ensure all tests go to completion
# so we try not to get hanging machines
fail-fast: false
matrix:
runner-info: [
{arch: grayskull, runs-on: ["stress-grayskull", "self-reset"], machine-type: "bare_metal", name: "E150"},
{arch: wormhole_b0, runs-on: ["stress-wormhole_b0", "self-reset"], machine-type: "bare_metal", name: "N300"},
# E150
{arch: grayskull, runs-on: ["grayskull", "cloud-virtual-machine"], machine-type: "virtual_machine", name: "E150"},
# N150
{arch: wormhole_b0, runs-on: ["wormhole_b0", "cloud-virtual-machine", "multi-chip-num-pcie-1", "multi-chip-num-chips-1"], machine-type: "virtual_machine", name: "N150"},
# N300
{arch: wormhole_b0, runs-on: ["wormhole_b0", "cloud-virtual-machine", "multi-chip-num-pcie-1", "multi-chip-num-chips-2"], machine-type: "virtual_machine", name: "N300"},
]
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.runner-info.arch }}
CONFIG: ci
TT_METAL_WATCHER: 60
environment: dev
runs-on: ${{ matrix.runner-info.runs-on }}
name: ${{ matrix.runner-info.machine-type }} ${{ matrix.runner-info.name }}
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Set up dyanmic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- name: Build tt-metal and libs
run: PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh
- name: Build tt-metal CPP tests
run: cmake --build build --target tests -- -j`nproc`
- name: Run pre/post regression tests in a loop
run: |
source build/python_env/bin/activate
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type stress_post_commit --dispatch-mode fast
- name: Upload watcher log
if: always()
uses: actions/upload-artifact@v4
with:
name: watcher-log-${{ matrix.runner-info.arch }}-${{ matrix.runner-info.machine-type }}-${{ matrix.runner-info.name }}
path: generated/watcher/watcher.log