Git bisect dispatch #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
runs-on: | |
- ${{ inputs.runner-label }} | |
- "in-service" | |
steps: | |
- uses: tenstorrent/tt-metal/.github/actions/checkout-with-submodule-lfs@main | |
- 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 }} |