Skip to content
New issue

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

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

Already on GitHub? # to your account

Unify cache locations and pruning strategies #139

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Unify cache locations and pruning strategies #139

merged 1 commit into from
Feb 11, 2025

Conversation

owenv
Copy link
Collaborator

@owenv owenv commented Feb 10, 2025

  • Use the same cache path for all tools in the build.This is safe because it's versioned internally
  • Wire up the cache pruning mechanism to generic task caching to ensure consistent behavior
  • Improve test coverage of replay in incremental builds

- Use the same cache path for all tools in the build.This is safe because it's versioned internally
- Wire up the cache pruning mechanism to generic task caching to ensure consistent behavior
- Improve test coverage of replay in incremental builds
@owenv
Copy link
Collaborator Author

owenv commented Feb 10, 2025

@swift-ci test

let casPath = casOpts.casPath.str
let path = key.path.str

// Avoiding the swift concurrency variant because it may lead to starvation when `waitForCompletion()`
Copy link
Collaborator

Choose a reason for hiding this comment

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

waitForCompletion() is async now, though

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm going to clean this up later alongside the other half of the pruning implementation

@owenv owenv merged commit 9647382 into main Feb 11, 2025
1 of 2 checks passed
@owenv owenv deleted the unify-caches branch February 11, 2025 02:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants