Skip to content

Commit 48a06fc

Browse files
authored
[CI] Pin tensordict to the commit before it required torch 2.13 (#4545)
1 parent 47bd395 commit 48a06fc

44 files changed

Lines changed: 45 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
037156fbf7c73daf70b648c15824bb01fa0aac79

‎.github/unittest/examples/scripts/run_all.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ uv_pip_install --no-deps "mujoco-torch==0.2.0"
7373

7474
uv_pip_install ninja setuptools
7575
if [[ "${RELEASE}" == 0 ]]; then
76-
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git
76+
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
7777
else
7878
uv_pip_install --no-deps tensordict
7979
fi

‎.github/unittest/linux/scripts/run_all.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export pybind11_DIR
253253

254254
# install tensordict
255255
if [[ "$RELEASE" == 0 ]]; then
256-
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git
256+
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
257257
else
258258
uv_pip_install --no-deps tensordict
259259
fi

‎.github/unittest/linux/scripts/run_setup_test.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fi
7474
# tensordict is a hard dependency of torchrl; install it explicitly since we test
7575
# `pip/uv install --no-deps` for torchrl itself.
7676
if [[ "$RELEASE" == 0 ]]; then
77-
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git
77+
uv_pip_install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
7878
else
7979
uv_pip_install tensordict
8080
fi

‎.github/unittest/linux_distributed/scripts/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ python -c "import functorch"
5151

5252
# install tensordict
5353
if [[ "$RELEASE" == 0 ]]; then
54-
pip3 install git+https://github.com/pytorch/tensordict.git
54+
pip3 install git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
5555
else
5656
pip3 install tensordict
5757
fi

‎.github/unittest/linux_libs/scripts_ataridqn/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pip3 install pillow
5252

5353
# install tensordict
5454
if [[ "$RELEASE" == 0 ]]; then
55-
pip3 install git+https://github.com/pytorch/tensordict.git
55+
pip3 install git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
5656
else
5757
pip3 install tensordict
5858
fi

‎.github/unittest/linux_libs/scripts_botorch/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else
4141
fi
4242

4343
# install tensordict
44-
pip install git+https://github.com/pytorch/tensordict.git --progress-bar off
44+
pip install git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt) --progress-bar off
4545

4646
# smoke test
4747
python -c "import functorch;import tensordict"

‎.github/unittest/linux_libs/scripts_brax/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545

4646
# install tensordict
4747
if [[ "$RELEASE" == 0 ]]; then
48-
pip install git+https://github.com/pytorch/tensordict.git --progress-bar off
48+
pip install git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt) --progress-bar off
4949
else
5050
pip install tensordict --progress-bar off
5151
fi

‎.github/unittest/linux_libs/scripts_chess/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666

6767
# install tensordict
6868
if [[ "$RELEASE" == 0 ]]; then
69-
pip3 install git+https://github.com/pytorch/tensordict.git
69+
pip3 install git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
7070
else
7171
pip3 install tensordict
7272
fi

‎.github/unittest/linux_libs/scripts_craftground/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ uv pip install setuptools wheel setuptools_scm ninja "pybind11[global]"
5555

5656
# install tensordict
5757
if [[ "$RELEASE" == 0 ]]; then
58-
uv pip install --no-deps git+https://github.com/pytorch/tensordict.git
58+
uv pip install --no-deps git+https://github.com/pytorch/tensordict.git@$(cat .github/ci_commit_pins/tensordict.txt)
5959
else
6060
uv pip install --no-deps tensordict
6161
fi

0 commit comments

Comments
 (0)