Skip to content

remote cache logger - new plugin to help debug the remote cache#23038

Open
kaplan-shaked wants to merge 1 commit intopantsbuild:mainfrom
kaplan-shaked:feature/remote-cache-logger
Open

remote cache logger - new plugin to help debug the remote cache#23038
kaplan-shaked wants to merge 1 commit intopantsbuild:mainfrom
kaplan-shaked:feature/remote-cache-logger

Conversation

@kaplan-shaked
Copy link
Copy Markdown
Contributor

Summary

Adds a new experimental backend pants.backend.experimental.tools.remote_cache_logger that logs remote cache speculation outcomes to a CSV file.

This is useful for debugging remote cache hit/miss behavior and identifying non-deterministic builds.

Features

  • Logs remote_cache_read_speculation workunits with:
    • description - What action was being cached
    • action_digest - The cache key
    • outcome - Whether it was a hit or miss
    • request - Full request details
  • Outputs to .pants.d/workdir/<run_id>.csv by default
  • Controlled via [remote-cache-logger] options

Usage

pants.toml

[GLOBAL]
backend_packages.add = ["pants.backend.experimental.tools.remote_cache_logger"]

[remote-cache-logger]
enabled = true

@kaplan-shaked
Copy link
Copy Markdown
Contributor Author

#21294
based om this PR

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