-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3007: Add initial 2x2 config to a new slow dispatch unit tests workflow
that runs the multi-chip tests with schedule runs, no push trigger
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.github/workflows/multi-device-slow-dispatch-build-and-unit-tests.yaml
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,41 @@ | ||
name: "[post-commit] all - Slow Dispatch multi-Nebula post-commit main build and unit tests" | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
schedule: | ||
- cron: "0 1,5,7,9,14,17,21 * * *" | ||
|
||
jobs: | ||
build-and-unit-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: [ | ||
# N300 2x2 | ||
{arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-2", "multi-chip-num-chips-4"]}, | ||
] | ||
env: | ||
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | ||
ARCH_NAME: ${{ matrix.runner-info.arch }} | ||
TT_METAL_SLOW_DISPATCH_MODE: 1 | ||
environment: dev | ||
runs-on: ${{ matrix.runner-info.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@main | ||
with: | ||
token: ${{ secrets.CHECKOUT_TOKEN }} | ||
- name: Set up dyanmic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: make build | ||
- name: Build tt-metal CPP tests | ||
run: make tests | ||
- name: Run pre/post regression tests | ||
timeout-minutes: 30 | ||
run: | | ||
source build/python_env/bin/activate | ||
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit_multi_device --dispatch-mode slow |
Validating CODEOWNERS rules …
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
26 changes: 26 additions & 0 deletions
26
tests/scripts/run_pre_post_commit_regressions_multi_device.sh
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,26 @@ | ||
#/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 | ||
|
||
if [[ -z "$TT_METAL_SLOW_DISPATCH_MODE" ]]; then | ||
echo "Only Slow Dispatch mode allowed - Must have TT_METAL_SLOW_DISPATCH_MODE set" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
cd $TT_METAL_HOME | ||
export PYTHONPATH=$TT_METAL_HOME | ||
|
||
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter="DeviceFixture.EthKernelsDirectSendAllConnectedChips" | ||
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter="DeviceFixture.EthKernelsSendInterleavedBufferAllConnectedChips" | ||
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter="DeviceFixture.EthKernelsDirectRingGatherAllChips" | ||
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter="DeviceFixture.EthKernelsInterleavedRingGatherAllChips" |
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