Repository navigation
Conversation
…rdings On a real workspace the CLI repeats a request answered with a 5xx, 408 or 429, and the proxy recorded both attempts, so out.requests goldens failed whenever the workspace had a hiccup. The proxy now removes the failed attempt from out.requests.txt once its response arrives. cloud: TestAccept/selftest/record_cloud TestAccept/bundle/resources/postgres_roles/update TestAccept/bundle/resources/postgres_databases/basic Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
Commit: Regression test reportSelected 1 changed tests (limit=20, 0 not selected) 10 tests: regression=0 unreleased=1 coverage=9 failing=0
TestAccept/selftest/record_proxy_retry: branch ✅ | main (61f1fc5) ✅ | latest (v1.26.0) ❌latest (v1.26.0): |
Collaborator
✅ Integration test reportCommit: 8598757
Top 44 slowest tests (at least 2 minutes):
|
A request answered with a transient error is now removed from out.requests.txt only once the same request is recorded again, so a request the CLI does not repeat (e.g. a create that succeeded despite a 500 and was found by the recovery lookup) stays in the recording. cloud: TestAccept/selftest/record_cloud TestAccept/bundle/resources/postgres_roles/update TestAccept/bundle/resources/postgres_databases/basic Co-authored-by: Isaac <no-reply@databricks.com>
denik
marked this pull request as ready for review
November 18, 2026 13:52
denik
requested review from
Sankalp-Mittal,
andrewnester and
renaudhartert-db
November 18, 2026 13:52
andrewnester
approved these changes
Nov 18, 2026
cloud: TestAccept/selftest/record_cloud TestAccept/bundle/resources/postgres_roles/update TestAccept/bundle/resources/postgres_databases/basic Co-authored-by: Isaac <no-reply@databricks.com>
This branch has not been deployed
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.
Changes
In cloud runs the acceptance proxy now records a request only once when the CLI repeats it after a transient error (408, 429 or 5xx). Requests are still written when they arrive, so the order is unchanged. The proxy remembers each attempt answered with a transient error. When an identical request (same method, path, query and body) arrives later, it removes the failed attempt from
out.requests.txtbefore writing the repeat, and logsDropped from out.requests.txt, repeated after a transient error: <method> <path>. A failed request that is not repeated stays recorded.This applies only behind the proxy: cloud runs and local
Proxy = truetests. With the local testserver, a 5xx only happens when a test injects one withfault.py, and those goldens show the failed attempt on purpose (create_504,create_transient_500, ...). They are unchanged.This is the request-log counterpart of
SuppressLines.warn_retry, which already keeps theretrying after ...warnings out ofoutput.txt.Judgment calls:
Why
Lakebase and UC endpoints answer with a 500/504 now and then. The CLI retries and the deploy succeeds, but the recorded request log had the request twice, and the
out.requests*.jsongolden failed:Warn: retrying after 500 Internal Server Error from GET /api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main, then an extra"method": "GET", "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main"inout.requests.update.jsonretrying after 500 Internal Server Error from GET /api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME], then an extra GET of the project inout.requests.destroy.jsonretrying after 500 Internal Server Error from PATCH /api/2.0/postgres/[MY_ENDPOINT_ID], then an extra PATCH inout.requests.update.jsonretrying after 504 Gateway Timeout from PATCH /api/2.1/unity-catalog/models/..., then an extra PATCH of the modelTests: postgres_roles/update/DMS=true, postgres_branches/replace_existing/DMS=, postgres_endpoints/update_autoscaling/DMS=true, registered_models/comment_cleared/DMS=true.
Tests
selftest/record_proxy_retry(Proxy = true, so requests go through the same proxy as in cloud runs):bundle/,selftest/andcmd/acceptance tests pass, exceptbundle/templates/pydabs/check-formatting, which needsruffand fails on this machine without the change too.selftest/record_cloud,postgres_roles/updateandpostgres_databases/basicon every cloud.This pull request and its description were written by Isaac.