Skip to content

Disable Actions caching for setup-uv in agent jobs - #67022

Merged
pelikhan merged 4 commits into
mainfrom
copilot/disable-actions-caching-setup-uv
Oct 9, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/disable-actions-caching-setup-uv

Conversation

Copilot AI commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Generated setup-uv steps could use Actions caching unnecessarily, and deduplication could carry cache-enabling inputs into replacements. Custom setup-uv steps that remain in the agent job also need explicit cache settings, even when no uv command is detected.

  • Generated steps: Force enable-cache: false, including when merging runtime inputs.
  • Deduplication: Drop carried-over enable-cache values while retaining unrelated inputs and custom-version behavior.
  • Custom steps: Warn when caching is omitted or enabled; treat the same condition as a strict-mode compilation error. Explicitly disabled steps retain their customizations.

Generated setup-uv steps include:

with:
  enable-cache: false

Copilot AI linked an issue Oct 8, 2026 that may be closed by this pull request
@SivaKesava1
SivaKesava1 marked this pull request as ready for review October 8, 2026 23:21
Copilot AI balanced review requested due to automatic review settings October 8, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. This is a work-in-progress planning commit with 0 additions and 0 deletions. Test Quality Sentinel skipped.

🧪 Test quality analysis by Test Quality Sentinel

Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Copilot AI changed the title [WIP] Disable Actions caching in generated setup-uv step Disable Actions caching for setup-uv in agent jobs Oct 8, 2026
Copilot AI requested a review from SivaKesava1 October 8, 2026 23:34
@SivaKesava1

Copy link
Copy Markdown
Collaborator

@copilot Checked 83593018 locally. The compiler change works: gh-aw compile api-consumption-report with this PR now emits with: enable-cache: false under astral-sh/setup-uv, and main emits no with: block.

But the committed lock files weren't regenerated. On this branch, all 21 .github/workflows/*.lock.yml that use astral-sh/setup-uv still lack enable-cache: false (for example api-consumption-report.lock.yml line 570). Please run make recompile and commit the updated locks.

@copilot /pr-finisher

Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>

Copilot AI commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Checked 83593018 locally. The compiler change works: gh-aw compile api-consumption-report with this PR now emits with: enable-cache: false under astral-sh/setup-uv, and main emits no ...

Ran make recompile and committed all 21 updated locks in 2f95e3a6; each setup-uv step now has enable-cache: false. All 333 workflows compiled, workflow-drift checks and focused/impacted tests passed, as did make fmt, make lint, and secret scanning. The scoped progress gate still reports pre-existing custom-linter findings on main. Final diff review found no issues; automated CodeQL timed out. CI on the new commit remains unverified.

@SivaKesava1

Copy link
Copy Markdown
Collaborator

Ready for review. Checked 2f95e3a6: all 21 lock files that use astral-sh/setup-uv now have enable-cache: false. There are no review threads. Separately, AWF v0.28.50 (gh-aw-firewall#9705) on its own fixes runtimes: uv inside the sandbox (verified in a sandbox run), so this PR is hardening and saves the cache step.

@pelikhan
pelikhan merged commit c2f0000 into main Oct 9, 2026
6 checks passed
@pelikhan
pelikhan deleted the copilot/disable-actions-caching-setup-uv branch October 9, 2026 01:09
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated setup-uv step: disable Actions caching in agentic jobs

4 participants