-
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.
add build artifacts to workflows (#8542)
* #8535: let build-artifact to build artifacts with input or default archs * #8535: update ttnn sweeps to use build artifacts * #8535: use build-artifact in stress SD workflow * #8535: Update ttnn_sweeps.sh to point to updated python_env * #8535: FD Stress test with build artifacts * #8535: Multi Device perf model use build-artifacts * #8535: multi device e2e workflow uses build artifacts * #8535: multi-device build and unit test uses build artifacts * #8535: multi device build and unit test frequent uses build artifacts
- Loading branch information
Showing
9 changed files
with
112 additions
and
40 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
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 |
---|---|---|
|
@@ -6,7 +6,14 @@ on: | |
- cron: "0 */8 * * *" # This cron schedule runs the workflow every 8 hours | ||
|
||
jobs: | ||
build-artifact: | ||
uses: ./.github/workflows/build-artifact.yaml | ||
with: | ||
arch: '["wormhole_b0"]' | ||
secrets: inherit | ||
|
||
multi-chip-nightly: | ||
needs: build-artifact | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
|
@@ -23,17 +30,19 @@ jobs: | |
runs-on: ${{ matrix.runner-info.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
- 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: Run frequent regression tests | ||
timeout-minutes: 60 | ||
run: | | ||
source build/python_env/bin/activate | ||
source ${{ github.workspace }}/python_env/bin/activate | ||
cd $TT_METAL_HOME | ||
export PYTHONPATH=$TT_METAL_HOME | ||
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type frequent_multi_device --dispatch-mode "" |
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 |
---|---|---|
|
@@ -6,7 +6,14 @@ on: | |
- cron: "0 */3 * * *" # This cron schedule runs the workflow every 3 hours | ||
|
||
jobs: | ||
build-artifact: | ||
uses: ./.github/workflows/build-artifact.yaml | ||
with: | ||
arch: '["wormhole_b0"]' | ||
secrets: inherit | ||
|
||
multi-chip-unit-tests: | ||
needs: build-artifact | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
|
@@ -35,17 +42,18 @@ jobs: | |
runs-on: ${{ matrix.test-group.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: TTMetal_build_${{ matrix.test-group.arch }} | ||
- name: Extract files | ||
run: tar -xvf ttm_${{ matrix.test-group.arch }}.tar | ||
- uses: ./.github/actions/install-python-deps | ||
- name: Run pre/post regression tests | ||
timeout-minutes: 120 | ||
run: | | ||
source build/python_env/bin/activate | ||
source ${{ github.workspace }}/python_env/bin/activate | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,14 @@ on: | |
- cron: '0 0 * * *' # This cron schedule runs the workflow every day at 12am UTC | ||
|
||
jobs: | ||
build-artifact: | ||
uses: ./.github/workflows/build-artifact.yaml | ||
with: | ||
arch: '["wormhole_b0"]' | ||
secrets: inherit | ||
|
||
multi-chip-unit-tests: | ||
needs: build-artifact | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
|
@@ -30,17 +37,18 @@ jobs: | |
runs-on: ${{ matrix.test-group.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: TTMetal_build_${{ matrix.test-group.arch }} | ||
- name: Extract files | ||
run: tar -xvf ttm_${{ matrix.test-group.arch }}.tar | ||
- uses: ./.github/actions/install-python-deps | ||
- name: Run pre/post regression tests | ||
timeout-minutes: 180 | ||
run: | | ||
source build/python_env/bin/activate | ||
source ${{ github.workspace }}/python_env/bin/activate | ||
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
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
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