@devries-cameron20 / composio Mirror · read-only / commits / b162d88cb
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 06:00 UTC

perf(py): avoid recursive release cache discovery (#5204)

## Summary This PR: - avoids recursive uv cache discovery through pnpm dependency links during Python release setup. - delivers PR1 of the unified SDK release plan; guarded preview and publication follow separately. Designated PR reviewer: [@jkomyno](mailto:alberto@composio.dev). ## Changes - Gives the release job explicit root lock, manifest and toolchain cache inputs. - Preserves the shared setup action's existing default discovery for other callers. ## Type of change - [x] Refactor/Chore ## How Has This Been Tested? Existing `pnpm test:release-workflow`, actionlint, Prettier and whitespace checks pass. [Hosted build](https://github.com/ComposioHQ/composio/actions/runs/41671491495) passed: setup 8s (prior measured run 493s), build 13s, all 28 downloaded wheels/sdists report 0.31.0. One run measured; publication was skipped. No new test: this forwards a composite-action input; the existing metadata check plus hosted build exercise the affected contract. ## Checklist - [x] I have read the Code of Conduct and this PR adheres to it - [x] I have read and understand every line of this diff - [x] Third-party docs links follow the contribution policy - [x] I ran relevant linters/tests locally and they passed - [x] Documentation and tests assessed for this configuration change - [x] No changeset required: published packages are unchanged ## Additional context Plan group: docs/plans/2026-11-03-1729-feat-unified-sdk-releases-plan.md PR1

Alberto Schiabel committed Nov 4, 2026 at 18:53 UTC b162d88cb01118ec4f13cc5393374b070646530a
2 files changed +19
.github/actions/setup-python-uv/action.yml
+13
@@ -14,6 +14,18 @@ inputs:
14 description: 'Enable uv/tool cache'
15 required: false
16 default: 'true'
17 + cache-dependency-glob:
18 + description: 'Workspace-relative files used to invalidate the uv cache'
19 + required: false
20 + # Mirrors setup-uv v9 defaults; recheck when updating the pinned action.
21 + default: |
22 + **/*requirements*.txt
23 + **/*requirements*.in
24 + **/*constraints*.txt
25 + **/*constraints*.in
26 + **/pyproject.toml
27 + **/uv.lock
28 + **/*.py.lock
29
30 outputs:
31 python-version:
@@ -58,6 +70,7 @@ runs:
70 with:
71 version: ${{ steps.tool-versions.outputs.uv }}
72 enable-cache: ${{ inputs.enable-caching }}
73 + cache-dependency-glob: ${{ inputs.cache-dependency-glob }}
74 prune-cache: true
75
76 - name: Report versions
.github/workflows/py.release.yml
+6
@@ -38,6 +38,12 @@ jobs:
38
39 - name: Setup Python with UV
40 uses: ./.github/actions/setup-python-uv
41 + with:
42 + cache-dependency-glob: |
43 + uv.lock
44 + pyproject.toml
45 + mise.lock
46 + python/pyproject.toml
47
48 - name: Resolve release package set
49 id: release_mode