-
Notifications
You must be signed in to change notification settings - Fork 98
63 lines (61 loc) · 1.74 KB
/
bisect-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
name: "Git bisect dispatch"
on:
workflow_dispatch:
inputs:
arch:
required: true
type: choice
options:
- grayskull
- wormhole_b0
- blackhole
runner-label:
required: true
type: string
good-commit:
required: true
type: string
bad-commit:
required: true
type: string
command:
required: true
type: string
description:
type: string
default: "Git bisect dispatch"
required: false
run-name: ${{ inputs.description }}
jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
with:
arch: '[ "${{ inputs.arch }}" ]'
secrets: inherit
test-dispatch:
needs: build-artifact
timeout-minutes: 1440
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ inputs.arch }}
environment: dev
runs-on:
- ${{ inputs.runner-label }}
- "in-service"
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
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ inputs.arch }}
- 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
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
./tests/scripts/tt_bisect.sh -f "${{ inputs.command }}" -b ${{ inputs.bad-commit }} -g ${{ inputs.good-commit }}