-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Staging signoff fixes #42266
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?
Staging signoff fixes #42266
Conversation
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - cosmos - tests |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
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 addresses staging signoff fixes with a focus on making tests work with actual account locations and fixing a bug where metadata requests were not honoring excluded locations. The changes primarily involve:
- Updating test configuration to dynamically retrieve and use actual account locations instead of hardcoded values
- Fixing metadata request handling to properly respect excluded locations for session container, queries, and partition key range operations
- Various test fixes and improvements including async client initialization and error message formatting
Reviewed Changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
test_config.py |
Added dynamic account location retrieval and populated class attributes |
conftest.py |
Added call to populate account info during test session setup |
Multiple test files | Updated to use dynamic locations from TestConfig instead of hardcoded values |
_session.py |
Updated session token methods to accept and pass excluded locations options |
_routing/routing_map_provider.py |
Made feed_options parameter required for proper excluded locations handling |
_base.py |
Updated session token header setting to pass options parameter |
_global_partition_endpoint_manager_circuit_breaker.py |
Fixed excluded locations handling in partition key range operations |
Multiple execution context files | Updated to pass options parameter to routing provider calls |
_constants.py |
Added EXCLUDED_LOCATIONS constant |
CHANGELOG.md |
Documented the excluded locations bug fix |
Comments suppressed due to low confidence (1)
sdk/cosmos/azure-cosmos/azure/cosmos/_routing/aio/routing_map_provider.py
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@@ -29,7 +29,7 @@ class TestQuery(unittest.TestCase): | |||
connectionPolicy = config.connectionPolicy | |||
TEST_DATABASE_ID = config.TEST_DATABASE_ID | |||
is_emulator = config.is_emulator | |||
credential = config.credential | |||
credential = config.masterKey |
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.
was this broken for AAD? same question for the same changes elsewhere
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.
I will create a separate live tests pipeline running many of the tests in AAD in separate pr. This will also make it easier to filter them out for staging pipeline. For now, moved everything back to using keys.
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, thanks! Just one question but it's non-blocking.
…on3/azure-sdk-for-python into tvaron3/stagingSignoffFixes
…into tvaron3/stagingSignoffFixes # Conflicts: # sdk/cosmos/azure-cosmos/tests/workloads/dev.md # sdk/cosmos/azure-cosmos/tests/workloads/workload_configs.py # sdk/cosmos/azure-cosmos/tests/workloads/workload_utils.py
Description