Skip to content

acc: leave requests answered with a transient error out of cloud recordings - #7771

Merged
denik merged 3 commits into
mainfrom
denik/acc-proxy-drop-retried
Nov 18, 2026
Merged

denik merged 3 commits into
mainfrom
denik/acc-proxy-drop-retried

Conversation

@denik

@denik denik commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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.txt before writing the repeat, and logs Dropped 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 = true tests. With the local testserver, a 5xx only happens when a test injects one with fault.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 the retrying after ... warnings out of output.txt.

Judgment calls:

  • An attempt is dropped only when it is repeated, not on every 5xx. Otherwise a create that succeeded despite a 500, and that the recovery lookup then found, would lose the POST that created the resource. The file is also changed only while a request is recorded, not after a response has been sent, so a script that reads or removes the file right after the CLI exits cannot race with it.
  • Not covered: create-recovery lookups. When a Lakebase branch create gets a 504, the CLI reads the branch (404) before it repeats the create. The failed POST is dropped, but the extra GET stays, so that case can still flake (1 of the 5 failures below).

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*.json golden failed:

error snippet
error/3667 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" in out.requests.update.json
error/2330 retrying after 500 Internal Server Error from GET /api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME], then an extra GET of the project in out.requests.destroy.json
error/3290 retrying after 500 Internal Server Error from PATCH /api/2.0/postgres/[MY_ENDPOINT_ID], then an extra PATCH in out.requests.update.json
error/3538 retrying after 504 Gateway Timeout from PATCH /api/2.1/unity-catalog/models/..., then an extra PATCH of the model

Tests: postgres_roles/update/DMS=true, postgres_branches/replace_existing/DMS=, postgres_endpoints/update_autoscaling/DMS=true, registered_models/comment_cleared/DMS=true.

Tests

  • New local selftest selftest/record_proxy_retry (Proxy = true, so requests go through the same proxy as in cloud runs):
    • It injects a 500 on a Lakebase create-operation poll, which the CLI retries. The recording has one poll, not two; without the change it has two.
    • It injects a 500 the CLI does not retry. The request stays recorded.
  • The local bundle/, selftest/ and cmd/ acceptance tests pass, except bundle/templates/pydabs/check-formatting, which needs ruff and fails on this machine without the change too.
  • The last commit asks CI to run selftest/record_cloud, postgres_roles/update and postgres_databases/basic on every cloud.

This pull request and its description were written by Isaac.

…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>
@denik denik added the ai-auto Deprecated: use factory-generated instead. label Nov 18, 2026
@github-actions github-actions Bot added the test-only-fix PRs that update failing of flaky tests without changing CLI code. label Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 04a240b67 | Workflow run

Regression test report

Selected 1 changed tests (limit=20, 0 not selected)

10 tests: regression=0 unreleased=1 coverage=9 failing=0
test branch main (61f1fc5) latest (v1.26.0)
TestAccept/bundle/resources/postgres_databases/basic/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/postgres_databases/basic/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/postgres_roles/update/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/postgres_roles/update/DMS=true ✅ ✅ ✅
TestAccept/selftest/record_cloud/basic ✅ ✅ ✅
TestAccept/selftest/record_cloud/error ✅ ✅ ✅
TestAccept/selftest/record_cloud/pipeline-crud ✅ ✅ ✅
TestAccept/selftest/record_cloud/volume-io ✅ ✅ ✅
TestAccept/selftest/record_cloud/workspace-file-io ✅ ✅ ✅
TestAccept/selftest/record_proxy_retry ✅ ✅ ❌
TestAccept/selftest/record_proxy_retry: branch ✅ | main (61f1fc5) ✅ | latest (v1.26.0) ❌

latest (v1.26.0):

acceptance_test.go:1388: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1388
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1129
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:674
        	Error:      	Not equal: 
        	            	expected: "\n=== A request answered with a transient error and repeated by the CLI is recorded once\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated postgres_projects.my_project\nFiles: 0 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py --get //postgres\n{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/postgres/projects\",\n  \"q\": {\n    \"project_id\": \"test-pg-proj\"\n  },\n  \"body\": {\n    \"spec\": {\n      \"display_name\": \"Test Postgres Project\",\n      \"pg_version\": 16\n    }\n  }\n}\n{\n  \"method\": \"GET\",\n  \"path\": \"/api/2.0/postgres/projects/test-pg-proj/operations/[UUID]\"\n}\n\n=== A request answered with a transient error and not repeated stays recorded\n\n>>> musterr [CLI] current-user me\nError: Fault injected by test.\n\n>>> print_requests.py --get //scim\n{\n  \"method\": \"GET\",\n  \"path\": \"/api/2.0/preview/scim/v2/Me\"\n}\n"
        	            	actual  : "\n=== A request answered with a transient error and repeated by the CLI is recorded once\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nError: cannot create resources.postgres_projects.my_project: Fault injected by test. (500 INTERNAL_ERROR)\n\nEndpoint: GET [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj/operations/[UUID]?\nHTTP Status: 500 Internal Server Error\nAPI error_code: INTERNAL_ERROR\nAPI message: Fault injected by test.\n\nFiles: 0 uploaded, 0 deleted\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,35 +5,12 @@
        	            	 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        	            	-Created postgres_projects.my_project
        	            	+Error: cannot create resources.postgres_projects.my_project: Fault injected by test. (500 INTERNAL_ERROR)
        	            	+
        	            	+Endpoint: GET [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj/operations/[UUID]?
        	            	+HTTP Status: 500 Internal Server Error
        	            	+API error_code: INTERNAL_ERROR
        	            	+API message: Fault injected by test.
        	            	+
        	            	 Files: 0 uploaded, 0 deleted
        	            	-Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        	            	 
        	            	->>> print_requests.py --get //postgres
        	            	-{
        	            	-  "method": "POST",
        	            	-  "path": "/api/2.0/postgres/projects",
        	            	-  "q": {
        	            	-    "project_id": "test-pg-proj"
        	            	-  },
        	            	-  "body": {
        	            	-    "spec": {
        	            	-      "display_name": "Test Postgres Project",
        	            	-      "pg_version": 16
        	            	-    }
        	            	-  }
        	            	-}
        	            	-{
        	            	-  "method": "GET",
        	            	-  "path": "/api/2.0/postgres/projects/test-pg-proj/operations/[UUID]"
        	            	-}
        	            	+Exit code: 1
        	            	 
        	            	-=== A request answered with a transient error and not repeated stays recorded
        	            	-
        	            	->>> musterr [CLI] current-user me
        	            	-Error: Fault injected by test.
        	            	-
        	            	->>> print_requests.py --get //scim
        	            	-{
        	            	-  "method": "GET",
        	            	-  "path": "/api/2.0/preview/scim/v2/Me"
        	            	-}
        	            	-
        	Test:       	TestAccept/selftest/record_proxy_retry
        	Messages:   	selftest/record_proxy_retry/output.txt vs /tmp/TestAcceptselftestrecord_proxy_retry1308510464/002/output.txt
    acceptance_test.go:1178: Test produced unexpected files:
        .databricks/.gitignore
        .databricks/bundle/default/deployment.json

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 04a240b

Run: 44343573964

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 283 20 18:27
💚​ aws-windows-latest-4core-16gb 1 285 18 14:11
💚​ azure linux-2core-8gb 1 282 20 21:11
💚​ azure-windows-latest-4core-16gb 1 284 18 16:03
💚​ gcp linux-2core-8gb 1 283 20 20:08
💚​ gcp-windows-latest-4core-16gb 1 285 18 12:17
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 50 slowest tests (at least 2 minutes):
duration env testname
7:57 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
5:57 aws linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=
5:52 gcp linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=
5:18 azure linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
5:14 gcp linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
5:10 aws-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=
5:01 azure linux-2core-8gb TestImportDirDoesNotOverwrite
5:00 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
4:53 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
4:45 azure-windows-latest-4core-16gb TestImportDirDoesNotOverwrite
4:40 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
4:40 aws linux-2core-8gb TestAccept/bundle/resources/postgres_databases/basic/DMS=true
4:23 aws-windows-latest-4core-16gb TestSyncIncrementalFileSync
4:19 azure linux-2core-8gb TestImportDirWithOverwriteFlag
4:07 gcp-windows-latest-4core-16gb TestImportDirDoesNotOverwrite
4:07 azure-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=
4:01 gcp linux-2core-8gb TestFilerWorkspaceFilesExtensionsRead
3:57 aws linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
3:53 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
3:53 azure-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
3:50 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
3:41 azure-windows-latest-4core-16gb TestFilerReadWrite/workspace_files
3:32 aws-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=true
3:30 aws-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_databases/basic/DMS=true
3:27 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
3:15 azure linux-2core-8gb TestFilerRecursiveDelete/workspace_files_extensions
3:13 aws-windows-latest-4core-16gb TestAccept
3:07 gcp-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
3:06 gcp-windows-latest-4core-16gb TestAccept
3:03 aws linux-2core-8gb TestFilerRecursiveDelete/workspace_files
3:02 gcp-windows-latest-4core-16gb TestFilerWorkspaceNotebook/pythonJupyterNb.ipynb
3:02 azure linux-2core-8gb TestAccept/bundle/resources/postgres_roles/update/DMS=
3:01 azure linux-2core-8gb TestFilerReadWrite/workspace_files
2:58 azure linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:55 azure-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_databases/basic/DMS=
2:54 aws linux-2core-8gb TestFilerReadWrite/workspace_files_extensions
2:54 azure-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
2:52 azure-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_databases/basic/DMS=true
2:51 azure-windows-latest-4core-16gb TestImportDirWithOverwriteFlag
2:51 gcp linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
2:50 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_databases/basic/DMS=true
2:43 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsDelete
2:42 gcp linux-2core-8gb TestSyncNestedFolderDoesntFailOnNonEmptyDirectory
2:42 aws linux-2core-8gb TestImportDir
2:41 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/postgres_roles/update/DMS=
2:39 azure-windows-latest-4core-16gb TestImportDir
2:37 azure-windows-latest-4core-16gb TestAccept
2:35 gcp-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:32 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsDelete
2:28 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete

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
denik marked this pull request as ready for review November 18, 2026 13:52
@denik
denik requested a review from a team as a code owner November 18, 2026 13:52
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
denik added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit acb677a Nov 18, 2026
27 checks passed
@denik
denik deleted the denik/acc-proxy-drop-retried branch November 18, 2026 17:05
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

❌ Integration test report

Commit: acb677a

Run: 44354872682

Env 💥​PANIC ❌​FAIL 🤯​MISS 💚​RECOVERED ✅​pass 🙈​skip Time
💥​ aws linux-2core-8gb 1 3 245 14 1367 1383 320:00
💥​ aws-windows-latest-4core-16gb 1 3 231 14 1297 1411 320:04
💥​ azure linux-2core-8gb 1 3 264 9 1333 1391 320:00
💥​ azure-windows-latest-4core-16gb 1 9 127 14 1375 1419 320:05
💥​ gcp linux-2core-8gb 1 281 14 1321 1389 320:00
💥​ gcp-windows-latest-4core-16gb 1 3 206 14 1309 1417 320:04
1035 interesting tests: 1011 MISS, 9 FAIL, 9 RECOVERED, 6 PANIC
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
🤯​ TestAccept 🤯​M 🤯​M 🤯​M 🤯​M 🤯​M 🤯​M
🤯​ TestAccept/bundle/apps/job_permissions ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/apps/job_permissions/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/apps/job_permissions/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_doesnot_exist ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_doesnot_exist/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_doesnot_exist/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_not_deployed ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_not_deployed/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/artifacts/artifact_path_with_volume/volume_not_deployed/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cli_defaults ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/cli_defaults/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cli_defaults/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_cross_target ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_cross_target/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_cross_target/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_permissions ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_permissions/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_permissions/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_remote_addition ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_remote_addition/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/cluster_policy_remote_addition/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/config_edits ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/config_edits/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/config_edits/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/dashboard_etag ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/dashboard_etag/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/dashboard_etag/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/external_cluster_policy_cross_target ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/external_cluster_policy_cross_target/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/external_cluster_policy_cross_target/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/flushed_cache ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/flushed_cache/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/flushed_cache/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/formatting_preserved ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/formatting_preserved/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/formatting_preserved/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_fields ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/job_fields/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_fields/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_multiple_tasks ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/job_multiple_tasks/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_multiple_tasks/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_params_variables ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/job_params_variables/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_params_variables/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_pipeline_task ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/job_pipeline_task/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/job_pipeline_task/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/json_status_missing_state ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/json_status_missing_state/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/json_status_missing_state/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/json_status_selectors ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/json_status_selectors/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/json_status_selectors/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/multiple_files ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/multiple_files/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/multiple_files/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/multiple_resources ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/multiple_resources/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/output_json ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/output_json/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/output_json/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/output_no_changes ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/output_no_changes/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/output_no_changes/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/pipeline_fields ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/pipeline_fields/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/pipeline_fields/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/policy_injected_cluster_fields ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/policy_injected_cluster_fields/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/policy_injected_cluster_fields/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/resolve_variables ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/resolve_variables/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/resolve_variables/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/select_basic ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/select_basic/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/select_basic/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/select_multiple ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/select_multiple/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/select_multiple/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/skip_deployment ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/skip_deployment/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/skip_deployment/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/skip_permissions ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/skip_permissions/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/skip_permissions/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/target_override ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/target_override/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/target_override/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/task_rename_revert ✅​p 🙈​s ✅​p 🙈​s 🤯​M 🙈​s
🤯​ TestAccept/bundle/config-remote-sync/task_rename_revert/DMS= ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/config-remote-sync/task_rename_revert/DMS=true ✅​p ✅​p 🤯​M
🤯​ TestAccept/bundle/debug/fetch-repository-info ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/debug/fetch-repository-info/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/debug/fetch-repository-info/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/empty-bundle ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/empty-bundle/DATABRICKS_BUNDLE_ENABLE_EXPERIMENTAL_YAML_SYNC=/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/empty-bundle/DATABRICKS_BUNDLE_ENABLE_EXPERIMENTAL_YAML_SYNC=/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/empty-bundle/DATABRICKS_BUNDLE_ENABLE_EXPERIMENTAL_YAML_SYNC=true/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/empty-bundle/DATABRICKS_BUNDLE_ENABLE_EXPERIMENTAL_YAML_SYNC=true/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/files/no-snapshot-sync ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/files/no-snapshot-sync/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/files/no-snapshot-sync/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/basic ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/basic/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/breakglass ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/breakglass/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/can-manage ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/can-manage/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/destroy-redeploy ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/destroy-redeploy/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/dev-mode ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/dev-mode/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/legacy-state ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/legacy-state/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/missing-snapshot ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/missing-snapshot/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/no-artifacts ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/no-artifacts/DMS=/READPLAN= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/no-artifacts/DMS=/READPLAN=1 ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/immutable/permissions-change ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/immutable/permissions-change/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/immutable/select ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/immutable/select/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/mlops-stacks ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/mlops-stacks/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/mlops-stacks/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deploy/spark-jar-task ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/spark-jar-task/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
🤯​ TestAccept/bundle/deploy/spark-jar-task/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M 🤯​M
❌​ TestAccept/bundle/deployment/bind/alert ✅​p 🤯​M ✅​p ❌​F 🤯​M 🤯​M
❌​ TestAccept/bundle/deployment/bind/alert/DMS= ✅​p 🤯​M ✅​p ❌​F 🤯​M 🤯​M
❌​ TestAccept/bundle/deployment/bind/alert/DMS=true ✅​p 🤯​M ✅​p ❌​F 🤯​M 🤯​M
🤯​ TestAccept/bundle/deployment/bind/catalog ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/catalog/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/catalog/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/cluster ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/cluster/DMS= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/cluster/DMS=true ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/DMS=/READPLAN= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/DMS=/READPLAN=1 ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/DMS=true/READPLAN= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/DMS=true/READPLAN=1 ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/recreation ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1 ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN= ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
🤯​ TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1 ✅​p 🤯​M ✅​p ✅​p 🤯​M ✅​p
Top 50 slowest tests (at least 2 minutes):
duration env testname
13:21 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
12:24 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
11:55 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
11:46 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
11:43 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
10:52 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:50 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
10:47 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:35 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:03 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:57 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
9:53 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:51 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:36 azure-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
8:55 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:52 aws linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster.yml.tmpl/READPLAN=
8:51 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/grants/schemas/remove_principal/DMS=true
8:28 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
8:22 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
8:13 azure-windows-latest-4core-16gb TestAccept/pipelines/run/refresh-flags
7:55 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=true
7:48 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
7:45 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
7:36 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
7:35 gcp linux-2core-8gb TestAccept/bundle/invariant/destroy_idempotent/DMS=/INPUT_CONFIG=cluster_libraries.yml.tmpl/READPLAN=
7:29 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
7:19 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
7:17 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
7:15 azure linux-2core-8gb TestAccept/bundle/resources/materialization_sets/batch/DMS=
7:07 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
7:01 aws-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
6:52 aws-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
6:50 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
6:42 azure linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
6:42 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
6:40 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
6:35 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
6:33 gcp linux-2core-8gb TestAccept/bundle/invariant/no_drift/DMS=true/INPUT_CONFIG=cluster.yml.tmpl/READPLAN=1
6:24 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
6:17 aws-windows-latest-4core-16gb TestAccept/pipelines/run/refresh-flags
6:12 aws-windows-latest-4core-16gb TestAccept/bundle/templates/default-python/combinations/classic/DLT=no/DMS=/NBOOK=no/PY=yes/READPLAN=
6:10 azure-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
6:08 aws linux-2core-8gb TestAccept/bundle/quiet-levels/DMS=true
6:08 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
6:06 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:03 azure linux-2core-8gb TestAccept/pipelines/run/refresh-flags
6:00 azure linux-2core-8gb TestAccept/bundle/resources/materialization_sets/batch/DMS=true
5:58 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:57 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:57 gcp linux-2core-8gb TestAccept/bundle/resources/materialization_sets/immutable/DMS=true
(884 table rows omitted to keep the report under 60000 bytes)

@denik denik added factory-generated and removed ai-auto Deprecated: use factory-generated instead. labels Nov 20, 2026
idelafuente-oc pushed a commit to idelafuente-oc/cli that referenced this pull request Nov 20, 2026
…bricks#7838)

## Changes

Follow-up to [databricks#7771](databricks#7771). In
cloud runs the acceptance proxy now also drops the create-recovery
lookup when the CLI repeats a failed create.

When a Lakebase create (project, branch, role, catalog) is answered with
a transient error, the CLI reads the resource before it repeats the
create, to see whether the failed request created it anyway
(`recoverPostgresCreate`,
[databricks#7747](databricks#7747)). databricks#7771 dropped the
failed POST once it was repeated, but the lookup GET (answered with 404)
stayed in `out.requests.txt`, so the request goldens still flaked. databricks#7771
listed this case as not covered.

The recorder now remembers, for a POST answered with a transient error,
the resource paths it names (the request path plus one of its query
values, e.g. `POST /api/2.0/postgres/projects?project_id=p` names
`/api/2.0/postgres/projects/p`). A GET of such a path answered with 404
is dropped together with the failed attempt when the CLI repeats the
POST, and logged as `Dropped from out.requests.txt, a lookup before a
repeated create: GET <path>`.

Judgment calls:
- Only 404 lookups are dropped, and only once the create is repeated.
When the lookup finds the resource (the failed create did create it), no
repeat follows, and the failed POST plus the lookup stay recorded, as
before. That case records a different sequence (it also waits for the
default branch), so mirroring the normal flow there would mean dropping
requests that did happen. A found resource also ends the recovery: the
failed attempt no longer counts as pending, so a later identical create
(deploy, destroy, deploy in one script) keeps its POST. Before this
change that later POST would have dropped the first one.
- Lookups are matched by exact path (POST path + "/" + the value of an
`*_id` query parameter), so concurrent requests for other resources are
not touched. A more general rule ("drop every 404 GET between a failed
request and its repeat") would also catch unrelated parallel reads, so I
kept it to the resource the create names.
- Not covered here:
[error/3773](http://go/cli/dashboard/error/3773?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d)
("The request could not be processed. Please try again later ...") on
`postgres_branches/update_protected` and `postgres_databases/update`. It
comes from a plain `databricks postgres get-branch` / `get-database`
command that fails, not from a bundle retry, so it is not a recording
problem.

## Why

Dashboard:

| error | snippet |
|---|---|
|
[error/3788](http://go/cli/dashboard/error/3788?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d)
| `Warn: deploying resources.postgres_projects.my_project: retrying
after 500 Internal Server Error from POST /api/2.0/postgres/projects`,
then an extra `"method": "GET", "path":
"/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]"` before the POST
in `out.requests.json` |
|
[error/3667](http://go/cli/dashboard/error/3667?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d)
| `Warn: deploying resources.postgres_branches.main: retrying after 500
Internal Server Error from POST
/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches`, then an
extra `"method": "GET", "path":
"/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main"`
in `out.requests.create.json` |

Tests:
[postgres_catalogs/basic/DMS=](http://go/cli/dashboard/test/acceptance.TestAccept/bundle/resources/postgres_catalogs/basic/DMS=?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d),
[postgres_roles/basic/DMS=](http://go/cli/dashboard/test/acceptance.TestAccept/bundle/resources/postgres_roles/basic/DMS=?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d),
[postgres_roles/update/DMS=](http://go/cli/dashboard/test/acceptance.TestAccept/bundle/resources/postgres_roles/update/DMS=?main=1&pr=1&end=2026-11-20T08:00:00Z&last=3d).

All of these show `prepare_server.go: Dropped from out.requests.txt,
repeated after a transient error: POST ...`, so databricks#7771 handled the POST;
only the lookup was left.

## Tests

- `selftest/record_proxy_retry` (`Proxy = true`, same proxy as cloud
runs) gets a new case: a 500 on the project create, which the CLI
recovers from with a lookup (404) and a repeat. The recording has one
POST and no GET of the project; without the change it has the GET.
- A second new case: a 504 on the project create after the handler
created it (`fault.py --after-handler`). The lookup finds the project,
then the script destroys and deploys again in the same recording. Both
POSTs stay recorded; without the reset the second deploy dropped the
first POST.
- Local `selftest/` and `bundle/resources/postgres_*` acceptance tests
pass.
- The commit asks CI to run `postgres_roles` and
`postgres_catalogs/basic` on gcp and `postgres_roles/basic` on aws (they
only hit the path on a transient backend error, so this checks nothing
else changed).

This pull request and its description were written by Isaac.

---------

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

factory-generated test-only-fix PRs that update failing of flaky tests without changing CLI code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants