From d0d78f1aeb5a38d6c1fc7a08edfdcec5dcc43540 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Tue, 12 May 2026 10:10:45 -0700 Subject: [PATCH] ci: disable uv cache in publish pipeline (#37364) Disable `uv` dependency caching throughout the release workflow so build, validation, PyPI publish, and GitHub release jobs do not restore shared cache state. Release jobs already pass the built distributions through explicit artifacts; keeping dependency caches out of this path avoids cache-poisoning risk and makes the existing pre-release validation comment match the actual workflow behavior. --- .github/workflows/_release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index a7fc7b7f8f6..0fbafcf748a 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -132,6 +132,7 @@ jobs: uses: "./.github/actions/uv_setup" with: python-version: ${{ env.PYTHON_VERSION }} + enable-cache: "false" # We want to keep this build stage *separate* from the release stage, # so that there's no sharing of permissions between them. @@ -298,6 +299,7 @@ jobs: id: setup-python with: python-version: ${{ env.PYTHON_VERSION }} + enable-cache: "false" - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: @@ -511,6 +513,7 @@ jobs: uses: "./.github/actions/uv_setup" with: python-version: ${{ env.PYTHON_VERSION }} + enable-cache: "false" - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 if: startsWith(env.EFFECTIVE_WORKING_DIR, 'libs/core') @@ -597,6 +600,7 @@ jobs: uses: "./langchain/.github/actions/uv_setup" with: python-version: ${{ matrix.python-version }} + enable-cache: "false" - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: @@ -654,6 +658,7 @@ jobs: uses: "./.github/actions/uv_setup" with: python-version: ${{ env.PYTHON_VERSION }} + enable-cache: "false" - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: @@ -697,6 +702,7 @@ jobs: uses: "./.github/actions/uv_setup" with: python-version: ${{ env.PYTHON_VERSION }} + enable-cache: "false" - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: