Skip to content

add cache buster to anthropic test for consistent results#16

Merged
Andrew Kent (realark) merged 1 commit intomainfrom
ark/add-cache-buster-uuid-to-anthropic-prompt-cache-tests
Apr 30, 2026
Merged

add cache buster to anthropic test for consistent results#16
Andrew Kent (realark) merged 1 commit intomainfrom
ark/add-cache-buster-uuid-to-anthropic-prompt-cache-tests

Conversation

@realark
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test/llm_span/anthropic/prompt_caching_1h.yaml Outdated
@realark Andrew Kent (realark) force-pushed the ark/add-cache-buster-uuid-to-anthropic-prompt-cache-tests branch from 6952bff to 23f397f Compare April 30, 2026 20:36
# injected into sys prompt to guarantee cache misses
# NOTE: this will not bust record+replay modes because vcr cassettes match by request body
client: !gen test_runner_client
vcr-nonce: !gen vcr_nonce
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this does mean back-to-back runs in RECORD mode will fail after the first time and you'll have to wait for anthropic's cache to reset. I can't think of a better solution though

@realark Andrew Kent (realark) merged commit ed8c61e into main Apr 30, 2026
2 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