Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cache): better forbidden error message #9313

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

chris-olszewski
Copy link
Member

Description

This PR makes the error message for the case that the provided token does not have permission to upload an artifact. Currently this case leads to us printing WARNING failed to contact remote cache: unknown status forbidden: Not authorized the PR will change this to WARNING Insufficient permissions to write to remote cache. Please verify that your role has write access for Remote Cache Artifact at https://vercel.com/docs/accounts/team-members-and-roles/access-roles/team-level-roles

This does not replace the more detailed warnings when we get a cache status. These errors get printed as warnings via the async cache

Testing Instructions

Added unit tests for error messages in this case.

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 9:18pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 9:18pm

@chris-olszewski chris-olszewski marked this pull request as ready for review October 22, 2024 20:17
@chris-olszewski chris-olszewski requested a review from a team as a code owner October 22, 2024 20:17
Copy link
Member

@tknickman tknickman left a comment

Choose a reason for hiding this comment

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

Love it, one suggestion but lgtm!

crates/turborepo-cache/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Thomas Knickman <tom.knickman@vercel.com>
@chris-olszewski chris-olszewski enabled auto-merge (squash) October 22, 2024 21:20
@chris-olszewski chris-olszewski merged commit 5c45126 into main Oct 22, 2024
40 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/chore_better_forbidden_msg branch October 22, 2024 21:46
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