chore: delete ci-js-deps artifact after all consumers finish#30307
Conversation
Every push re-creates the ci-js-deps artifact from scratch so there is no cross-run reuse benefit. Keeping it for the full retention-days: 1 window accumulates ~635 MB × 30+ PRs/day (~19+ GB) of live artifact storage unnecessarily. A dedicated cleanup-ci-js-deps job runs after all consumers (unit-tests, component-view-tests, merge-unit-and-component-view-tests) with if: always() so it fires on pass, fail, and skip (e.g. merge_group skips the merge job). The artifact is deleted via the GitHub REST API, reducing its live duration from up to 24 h to the length of the CI run. Co-authored-by: Cursor <cursoragent@cursor.com>
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Since this change has zero impact on app behavior, user flows, or test infrastructure that runs E2E tests, no E2E test tags need to be run. Performance Test Selection: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c689475. Configure here.
|




Summary
cleanup-ci-js-depsjob that deletes theci-js-depsworkflow artifact via the GitHub REST API once all consumers have finished.retention-days: 1minimum. With 30+ PRs/day this accumulates ~19+ GB of live artifact storage at any given time, none of which is ever reused (every push re-creates it from scratch).if: always()so it fires on pass, fail, and themerge_groupcase wheremerge-unit-and-component-view-testsis skipped.inputs.runner_provider != 'namespace'— same condition as the upload/download steps. On Namespace runners the artifact is never created so there is nothing to clean up.How it works
The artifact now lives only for the duration of the CI run (~20–40 min) instead of up to 24 hours.
Test plan
cleanup-ci-js-depsjob appears in the Actions run after unit/CV tests and merge job completeci-js-depsartifact is absent from the run's artifact list after the cleanup job finishesif: always())merge_groupevent (wheremerge-unit-and-component-view-testsis skipped) the cleanup job still runsMade with Cursor
Note
Low Risk
Low risk CI-only change; main failure mode is the new artifact-deletion step lacking permissions or not finding the artifact, which could cause an extra job to fail without affecting product code.
Overview
Reduces GitHub Actions artifact storage by adding a temporary
cleanup-ci-js-depsjob that, on non-Namespace runs, usesactions/github-scriptto find and delete theci-js-depsartifact afterunit-tests,component-view-tests, andmerge-unit-and-component-view-testscomplete (runs even on failures viaalways()).Reviewed by Cursor Bugbot for commit c689475. Bugbot is set up for automated code reviews on this repo. Configure here.