-
Notifications
You must be signed in to change notification settings - Fork 87
93 lines (91 loc) · 2.57 KB
/
test-dispatch.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: "Custom test dispatch"
on:
workflow_dispatch:
inputs:
arch:
required: true
type: choice
options:
- grayskull
- wormhole_b0
- blackhole
hw-config:
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
options:
- Release
- Debug
- RelWithDebInfo
- CI
tracy:
required: false
type: boolean
default: false
description: "Build with tracy enabled"
command:
required: true
type: string
description:
type: string
default: "Custom test dispatch"
required: false
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
test-dispatch:
# 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:
- ${{ format('[{0}, "{1}"]', inputs.runner-label, inputs.hw-config ) }}
# - ${{ inputs.hw-config }}
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Ensure weka mount is active
timeout-minutes: 3
if: ${{ inputs.arch != 'blackhole' }}
run: |
sudo systemctl restart mnt-MLPerf.mount
sudo /etc/rc.local
ls -al /mnt/MLPerf/bit_error_tests
- name: Set up dyanmic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ inputs.arch }}${{ (inputs.tracy && '_profiler') || '' }}
- name: Extract files
run: tar -xvf ttm_${{ inputs.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Run pre/post regression tests in a loop
run: |
source ${{ github.workspace }}/python_env/bin/activate
pip install pytest-repeat
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
${{ inputs.command }}