-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Git bisect workflow on CI runners (#10316)
* #0: remove unset of slow dispatch env var * #0: new git bisect workflow
- Loading branch information
1 parent
e9bfe5d
commit ccc5289
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
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
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 }} |
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