Skip to content

fix: cache usage#1228

Open
gomba999 wants to merge 8 commits intomainfrom
make-cicd-lint-faster
Open

fix: cache usage#1228
gomba999 wants to merge 8 commits intomainfrom
make-cicd-lint-faster

Conversation

@gomba999
Copy link
Collaborator

@gomba999 gomba999 commented Feb 13, 2026

Description

Fix typo in cache usage, disable caching cargo/bin since the swatinem cache used by the rust toolchain has a bug, add that as a directory instead. Disable cache for release builds.

Type of Change

  • Bugfix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 27, 2026, 1:18 PM

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud
Copy link

@gomba999 gomba999 force-pushed the make-cicd-lint-faster branch 2 times, most recently from bc15f67 to d197f5f Compare February 24, 2026 14:06
@gomba999 gomba999 marked this pull request as ready for review February 24, 2026 14:08
@gomba999 gomba999 requested a review from a team as a code owner February 24, 2026 14:08
@gomba999 gomba999 changed the title fix: typo fix: cache usage Feb 25, 2026
Copy link
Member

@msardara msardara left a comment

Choose a reason for hiding this comment

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

Let's not change all the quotes from " to ' here, if there is a good reason let's do it in another PR.

Otherwise LGTM ✅

Comment on lines +140 to +143
cache-directories: |
~/.cargo/bin
~/.cargo/.crates.toml
~/.cargo/.crates2.json
Copy link
Member

Choose a reason for hiding this comment

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

I'd tend to leave this as default instead of repearing it around, what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thinking was that without this the install of components with binstall would have to be forced every time so this let's us spare a little more time on the builds.

Copy link
Member

Choose a reason for hiding this comment

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

100% agree, I am suggesting to put them as default in the action directly

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah sorry I see now, I thought you meant the default as it is defined by the toolchain itself, I can set these to be the default values in the setup-rust workflow

Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
Signed-off-by: Dominik Kolonits <dkolonit@cisco.com>
@gomba999 gomba999 force-pushed the make-cicd-lint-faster branch from ff19cda to 3d0c62a Compare February 27, 2026 13:18
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.

2 participants