Skip to content

Commit

Permalink
Git bisect workflow on CI runners (#10316)
Browse files Browse the repository at this point in the history
* #0: remove unset of slow dispatch env var

* #0: new git bisect workflow
  • Loading branch information
TT-billteng authored Jul 15, 2024
1 parent e9bfe5d commit ccc5289
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/bisect-dispatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Git bisect dispatch"

on:
workflow_dispatch:
inputs:
arch:
required: true
type: choice
options:
- grayskull
- wormhole_b0
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
required: false

jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
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 }}
name: Custom test command ${{ inputs.description }}
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 }}
1 change: 0 additions & 1 deletion tests/scripts/tt_bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ END
cd $TT_METAL_HOME
source python_env/bin/activate
export PYTHONPATH=$TT_METAL_HOME
unset TT_METAL_SLOW_DISPATCH_MODE

timeout_duration=2m
while getopts "f:sg:b:t:" opt; do
Expand Down

0 comments on commit ccc5289

Please sign in to comment.