feat: add verbose option for detailed cache logging#20
Open
adityamaru wants to merge 2 commits intomainfrom
Open
feat: add verbose option for detailed cache logging#20adityamaru wants to merge 2 commits intomainfrom
adityamaru wants to merge 2 commits intomainfrom
Conversation
- Add `verbose` input parameter to action.yml - Update pruneBuildkitCache to use docker buildx du for detailed cache info - Log cache state before and after pruning when verbose is enabled - Shows cache size, last used time, type, and descriptions - Helps debug cache usage and pruning effectiveness 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add code structure for BPA_V2_DEBUG_WORKERS_AVAILABLE_MS metric - Add code structure for BPA_V2_PRUNE_BYTES metric - Currently commented out due to package version compatibility - Will be enabled when updating to @buf/blacksmith_vm-agent.bufbuild_es@2.7.0+ - These metrics will track worker availability time and pruned cache bytes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
verboseinput parameter to the action for enhanced debugging capabilitiesdocker buildx duinstead of basic filesystem commandsChanges
verboseboolean input (default: false)docker buildx dufor detailed cache informationBPA_V2_DEBUG_WORKERS_AVAILABLE_MS: Track time for workers to become availableBPA_V2_PRUNE_BYTES: Track bytes pruned from cacheTest plan
verbose: false(default) - should not show cache detailsverbose: true- should show detailed cache informationUsage Example
Future Work
When the buf packages are updated to v2.7.0+, uncomment the metric tracking code to automatically report:
🤖 Generated with Claude Code