Skip to content

Deprecate TRAP cache cleanup#3795

Open
henrymercer wants to merge 1 commit intomainfrom
henrymercer/deprecate-trap-caching-cleanup
Open

Deprecate TRAP cache cleanup#3795
henrymercer wants to merge 1 commit intomainfrom
henrymercer/deprecate-trap-caching-cleanup

Conversation

@henrymercer
Copy link
Copy Markdown
Contributor

This undocumented feature required giving actions: write permission to the analyze job on the default branch. If we were going to move ahead, we would prefer to reimplement this within a separate Action that does the cleanup to limit permissions. However it is most likely that TRAP caching will become less relevant over time given improved incremental analysis supersedes it, so this PR deprecates this little-used and undocumented feature.

@henrymercer henrymercer requested a review from a team as a code owner April 1, 2026 14:34
Copilot AI review requested due to automatic review settings April 1, 2026 14:34
@github-actions github-actions bot added the size/XS Should be very easy to review label Apr 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Deprecates the TRAP cache cleanup feature by surfacing a runtime warning and documenting the deprecation timeline in the changelog, aligning with the goal of reducing required permissions for analyze and discouraging use of this undocumented behavior.

Changes:

  • Emit a deprecation warning when TRAP cache cleanup is enabled.
  • Document the deprecation and removal timeline in CHANGELOG.md.
  • Update generated lib/ output to reflect the TypeScript source change.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/trap-caching.ts Adds a warning indicating TRAP cache cleanup is deprecated and provides guidance to disable TRAP caching.
lib/analyze-action.js Generated build artifact reflecting the src/ change.
CHANGELOG.md Adds an UNRELEASED entry documenting the deprecation, removal date, and mitigation.

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

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants