Repository navigation
Tests: update two contract tests that #16953 and #16927 left red on main - #17040
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
Two tests have been red on main since this morning's merges. Every PR based on main now inherits them: #17010, which changes only the Windows bash tool, fails both. Both reproduce on main locally:
In both cases the product change is correct and the test is out of date.
GET /v1/models/<model>before a Messages API stream that sets nomax_tokens, so that provider now makes one more request. That request goes through_append_provider_path, so it keeps?tenant=a, which is the invariant Studio: keep the base URL query string on connection requests #16951 cares about. The test simply predates it. Each PR was green on its own.strip_args_shadowed_by(args, fields), so the line now readsstrip_batch = "n_batch" in fields,and is called with the same kwargs. What gets stripped is unchanged. The contract test grepped for the old source line.Change
Tests only:
test_base_url_query_survives_native_provider_callsexpects the output-cap lookup first, with its query string kept. It also empties_anthropic_output_capsfirst, so the lookup happens whatever ran earlier in the worker. That cache is module-global, and with an entry already cached the request list would change with test order.test_batch_sizes_reach_an_api_load_through_the_server_mirrorstops grepping that line. It calls the realmodel_override_load_kwargs, imported the same way as the lookup-ladder helper already in that file:-bis dropped when the override hasn_batch;-ubis dropped when the override hasn_ubatch;Testing
test_custom_provider_api_type.py+test_anthropic_default_max_tokens.pytests/studio/test_model_picker_contracts.pystrip_batch = Falseplanted instrip_args_shadowed_by