Skip to content

[6.2][Caching] Improve diagnostics around swift caching #81245

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

Conversation

cachemeifyoucan
Copy link
Contributor

  • Explanation: Improve diagnostics message for swift caching build by trying to emit the diagnostics early when there is more context to differentiate the different kind of problems.
  • Scope: Diagnostics message update to make the errors easier to understand and more actionable.
  • Issues: rdar://145676736
  • Original PRs: [Caching] Improve diagnostics around swift caching #81007
  • Risk: Low. Only update diagnostics message.
  • Testing: N/A
  • Reviewers: @benlangmuir

Improve diagnostics message for swift caching build by trying to emit
the diagnostics early when there is more context to differentiate the
different kind of problems.

After the improvement, CAS Error should be more closer to when there is
functional problem with the CAS, rather than mixing in other kinds of
problem (like scanning dependency failures) when operating with a CAS.

rdar://145676736
(cherry picked from commit 226552b)
@cachemeifyoucan cachemeifyoucan requested a review from a team as a code owner May 2, 2025 00:01
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

2 similar comments
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

This is a safe change to break down the existing generic CAS error message to more specific ones.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test macOS platform

@cachemeifyoucan cachemeifyoucan merged commit 8e30d7f into swiftlang:release/6.2 May 9, 2025
5 checks passed
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