-
Notifications
You must be signed in to change notification settings - Fork 315
Added test proxy support #3217
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
base: main
Are you sure you want to change the base?
Added test proxy support #3217
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds test proxy support to the codebase by updating the instrument
method signature to accept an optional RecordingOptions
parameter. The changes enable control over test proxy behavior, particularly for performance tests, while maintaining backward compatibility by allowing None
for most test cases.
Key Changes:
- Updated
Recording::instrument
method to accept anOption<RecordingOptions>
parameter - Added
RemoveRecording
header type to control whether recordings are removed during playback - Modified pipeline construction to move
LoggingPolicy
after per-try policies for proper test proxy integration - Updated all existing call sites to pass
None
for recording options, maintaining current behavior
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
sdk/core/azure_core_test/src/recording.rs | Added RecordingOptions parameter to instrument method and implemented RemoveRecording header |
sdk/core/azure_core_test/src/proxy/policy.rs | Extended RecordingOptions struct with remove_recording field and updated header conversion |
sdk/core/typespec_client_core/src/http/pipeline.rs | Moved LoggingPolicy after per-try policies in pipeline construction |
sdk/keyvault/azure_security_keyvault_secrets/perf/get_secret.rs | Updated to use new RecordingOptions with RemoveRecording(false) for performance tests |
Multiple test files | Updated all instrument calls to pass None for recording options |
sdk/keyvault/assets.json | Updated test assets tag reference |
sdk/core/azure_core_test/src/perf/README.md | Added documentation about performance tests being recorded tests |
… duration switches
… to recording to make recording infra happy
…ly enabled through instrument_perf function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few suggestions, but this LGTM and is much cleaner!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Commenting so that it is known I'm reviewing, though I want someone with a little more time to be the actual reviewer.
…ure_core_test now pass
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Fixes #3099