Skip to content

fix(cache): display server-provided skipped message#113

Open
llwt wants to merge 4 commits intomainfrom
fix/cache-skipped-message
Open

fix(cache): display server-provided skipped message#113
llwt wants to merge 4 commits intomainfrom
fix/cache-skipped-message

Conversation

@llwt
Copy link
Member

@llwt llwt commented Mar 13, 2026

Summary

  • Add skipped_message field (proto field 3) to StoreResponse in the cache step's generated proto
  • Update post.ts to display skippedMessage from the server when present, falling back to the existing hardcoded message for backward compatibility

Context

The workflow controller is being updated (nrwl/ocean CLOUD-4366) to return specific skip reasons via skipped_message — e.g. distinguishing between lock contention and permission errors (403). Without this change, a 403 would show "another instance has already started the upload" which is misleading.

Test plan

  • Verify cache step displays server-provided skippedMessage when present
  • Verify fallback to hardcoded message when skippedMessage is empty (older controller)

Use the new `skipped_message` field from the StoreResponse proto when
available, falling back to the existing hardcoded message for backward
compatibility with older controllers.
@nx-cloud
Copy link

nx-cloud bot commented Mar 13, 2026

View your CI Pipeline Execution ↗ for commit 9f56619

Command Status Duration Result
nx affected -t test ✅ Succeeded 4s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-16 20:43:23 UTC

@llwt llwt requested a review from rarmatei March 13, 2026 13:38
Document that cache writes require read-write tokens, and that
read-only tokens on PRs are expected — cache entries are written
by main branch workflows and restored on PRs.
llwt added 2 commits March 16, 2026 21:40
Rewrite base-branch section to reflect that PR branches typically use
read-only tokens and cannot write to cache. Consolidate with the cache
writes section to avoid duplication. Add note about using read-write
tokens on non-protected branches.
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