Skip to content

Commit f749d99

Browse files
authored
add skip wheel install fact (#185)
We want to only skip the tt-forge wheel install test for now. I have added a release fact `skip_wheel_install` boolean to control this behavior for easy future adjustment. Fixes https://github.com/tenstorrent/tt-forge/actions/runs/15860335527/job/44715803236#step:3:329 ```bash The conflict is caused by: pjrt-plugin-tt 0.1.0.dev20250624 depends on jax>=0.6.0 tt-forge-fe 0.1.0.dev20250624 depends on jax==0.4.30 ```
1 parent ca3a724 commit f749d99

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.github/actions/publish-tenstorrent-pypi/action.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ runs:
8181
for wheel_name in $pip_wheel_names; do
8282
# Check the only tenstorrent index for the wheel version
8383
pip index versions $wheel_name --pre --index-url https://pypi.eng.aws.tenstorrent.com/ | grep ${{ inputs.new_version_tag }}
84-
# Test install wheel version.
85-
pip install $wheel_name==${{ inputs.new_version_tag }} --no-cache-dir --extra-index-url https://pypi.eng.aws.tenstorrent.com/
86-
# Wheel import wheel
87-
# TODO: skip import test until wheels are fixed
88-
#normalized_import=$(echo "$wheel_name" | sed -e 's/-/_/g')
89-
#python -c "import $normalized_import"
90-
# Check installed version of wheel
91-
pip show $wheel_name | grep ${{ inputs.new_version_tag }}
84+
if [ "${{ steps.set-release-facts.outputs.skip_wheel_install }}" == "false" ]; then
85+
# Test install wheel version.
86+
pip install $wheel_name==${{ inputs.new_version_tag }} --no-cache-dir --extra-index-url https://pypi.eng.aws.tenstorrent.com/
87+
# Wheel import wheel
88+
# TODO: skip import test until wheels are fixed
89+
#normalized_import=$(echo "$wheel_name" | sed -e 's/-/_/g')
90+
#python -c "import $normalized_import"
91+
# Check installed version of wheel
92+
pip show $wheel_name | grep ${{ inputs.new_version_tag }}
93+
fi
9294
done

.github/actions/set-release-facts/action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ outputs:
4242
pip_wheel_deps_names:
4343
description: "Names of pip wheel dependencies"
4444
value: ${{ steps.set-manifest.outputs.pip_wheel_deps_names }}
45+
skip_wheel_install:
46+
description: "Skip wheel install"
47+
value: ${{ steps.set-manifest.outputs.skip_wheel_install }}
48+
4549
runs:
4650
using: "composite"
4751
steps:
@@ -50,6 +54,10 @@ runs:
5054
shell: bash
5155
run: |
5256
# Set release facts based on repo
57+
58+
# Globals
59+
skip_wheel_install="false"
60+
5361
if [[ "${{ inputs.repo }}" =~ "tt-forge-fe" ]]; then
5462
workflow="On nightly"
5563
if [[ "${{ inputs.release_type }}" == "nightly" ]]; then
@@ -86,6 +94,7 @@ runs:
8694
elif [[ "${{ inputs.repo }}" =~ "tt-forge" ]]; then
8795
pip_wheel_deps_names="tt-torch tt_forge_fe tt_tvm pjrt-plugin-tt"
8896
pip_wheel_names="tt-forge"
97+
skip_wheel_install="true"
8998
else
9099
echo "Unknown repo: ${{ inputs.repo }}"
91100
exit 1
@@ -112,6 +121,7 @@ runs:
112121
echo "Using repo_short: $repo_short"
113122
echo "Using pip_wheel_names: $pip_wheel_names"
114123
echo "Using pip_wheel_deps_names: $pip_wheel_deps_names"
124+
echo "Using skip_wheel_install: $skip_wheel_install"
115125
116126
# Set outputs
117127
echo "workflow=$workflow" >> $GITHUB_OUTPUT
@@ -123,3 +133,4 @@ runs:
123133
echo "new_version_tag=$new_version_tag" >> $GITHUB_OUTPUT
124134
echo "pip_wheel_names=$pip_wheel_names" >> $GITHUB_OUTPUT
125135
echo "pip_wheel_deps_names=$pip_wheel_deps_names" >> $GITHUB_OUTPUT
136+
echo "skip_wheel_install=$skip_wheel_install" >> $GITHUB_OUTPUT

.github/actions/tt-forge-wheel/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ runs:
5858
mv ${{ github.workspace }}/dist/*.whl ${{ github.workspace }}/release/artifacts/.
5959
cd ${{ github.workspace }}/release/artifacts
6060
# TODO: build alerting around this.
61-
pip install *.whl || echo "Failed to install wheel"
61+
if [ "${{ steps.set-release-facts.outputs.skip_wheel_install }}" == "false" ]; then
62+
pip install *.whl
63+
else
64+
pip install *.whl || echo "Failed to install wheel"
65+
fi

0 commit comments

Comments
 (0)