-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#8321: Add TGG workflow and pipeline tests
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
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,50 @@ | ||
name: "[TGG] TGG unit tests" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' # This cron schedule runs the workflow every day at 12am UTC | ||
|
||
jobs: | ||
build-artifact: | ||
uses: ./.github/workflows/build-artifact.yaml | ||
secrets: inherit | ||
TGG-tests: | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
fail-fast: false | ||
matrix: | ||
runner-info: [ | ||
# TGG | ||
{arch: wormhole_b0, runs-on: ["config-tgg", "in-service"]}, | ||
] | ||
test-group: [ | ||
{name: "TGG Unit Tests", cmd: './tests/scripts/run_tests.sh --tt-arch wormhole_b0 --pipeline-type post_commit_tgg --dispatch-mode ""'}, | ||
] | ||
name: ${{ matrix.test-group.name }} ${{ matrix.runner-info.arch }} ${{ matrix.runner-info.name }} | ||
env: | ||
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | ||
ARCH_NAME: ${{ matrix.runner-info.arch }} | ||
CONFIG: ci | ||
LOGURU_LEVEL: INFO | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib | ||
runs-on: ${{ matrix.runner-info.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: TTMetal_build_${{ matrix.runner-info.arch }} | ||
- name: Extract files | ||
run: tar -xvf ttm_${{ matrix.runner-info.arch }}.tar | ||
- uses: ./.github/actions/install-python-deps | ||
- name: ${{ matrix.test-group.name }} tests | ||
timeout-minutes: 45 | ||
run: | | ||
source ${{ github.workspace }}/python_env/bin/activate | ||
cd $TT_METAL_HOME | ||
export PYTHONPATH=$TT_METAL_HOME | ||
${{ matrix.test-group.cmd }} |
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
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,17 @@ | ||
|
||
#/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
if [[ -z "$TT_METAL_HOME" ]]; then | ||
echo "Must provide TT_METAL_HOME in environment" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$ARCH_NAME" ]]; then | ||
echo "Must provide ARCH_NAME in environment" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# Write tests here! | ||
echo "Fill me!" |