Skip to content

ci: clean workspace artifacts before cache upload#385

Merged
KSXGitHub merged 3 commits intomasterfrom
claude/review-ci-caching-NbfHN
Apr 3, 2026
Merged

ci: clean workspace artifacts before cache upload#385
KSXGitHub merged 3 commits intomasterfrom
claude/review-ci-caching-NbfHN

Conversation

@KSXGitHub
Copy link
Copy Markdown
Owner

@KSXGitHub KSXGitHub commented Apr 3, 2026

Adds a cargo clean --workspace step to CI workflow files to clean up build artifacts before caching. This helps reduce cache size and ensures cleaner builds in subsequent runs.

https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq

claude added 2 commits April 3, 2026 01:17
Run `cargo clean --workspace` at the end of each cached job so that
only compiled dependencies are cached, not the workspace's own build
artifacts. This reduces cache size and upload/download time while
keeping the expensive dependency compilation cached.

https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq
Remove the `if: matrix.os != 'macos-latest'` condition from the clean
steps in test.yaml and clippy.yaml since it's unnecessary, and add
`continue-on-error: true` to all clean steps so a failure doesn't
fail the CI.

https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq
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

This PR adds a final CI step intended to reduce cache size by cleaning Cargo workspace build artifacts before GitHub Actions cache upload.

Changes:

  • Add cargo clean --workspace as a final step in the Test workflow.
  • Add cargo clean --workspace as a final step in the Clippy workflow.
  • Add cargo clean --workspace as a final step in the Benchmark and Deploy workflows.

Reviewed changes

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

File Description
.github/workflows/test.yaml Adds a trailing cargo clean --workspace step after tests complete.
.github/workflows/clippy.yaml Adds a trailing cargo clean --workspace step after clippy runs.
.github/workflows/benchmark.yaml Adds a trailing cargo clean --workspace step after benchmark/report steps.
.github/workflows/deploy.yaml Adds a trailing cargo clean --workspace step at the end of the benchmark job.

Comment thread .github/workflows/test.yaml
Comment thread .github/workflows/clippy.yaml
Comment thread .github/workflows/benchmark.yaml
Comment thread .github/workflows/deploy.yaml
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/test.yaml
@KSXGitHub KSXGitHub marked this pull request as ready for review April 3, 2026 01:31
@KSXGitHub KSXGitHub requested a review from Copilot April 3, 2026 01:31
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2026

Performance Regression Reports

commit: a9c1b07

There are no regressions.

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

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

Comment thread .github/workflows/test.yaml
Comment thread .github/workflows/clippy.yaml
Comment thread .github/workflows/benchmark.yaml
Comment thread .github/workflows/deploy.yaml
@KSXGitHub KSXGitHub marked this pull request as draft April 3, 2026 01:34
Add `if: always()` to the clean steps so workspace artifacts are
trimmed before cache upload even when a prior step fails.

https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/clippy.yaml
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

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

@KSXGitHub KSXGitHub marked this pull request as ready for review April 3, 2026 02:51
@KSXGitHub KSXGitHub merged commit 0dbc5c8 into master Apr 3, 2026
21 checks passed
@KSXGitHub KSXGitHub deleted the claude/review-ci-caching-NbfHN branch April 3, 2026 02:52
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.

3 participants