Skip to content

acc: record that deploy takes over a resource it did not create after a failed create request - #8120

Open
denik wants to merge 9 commits into
mainfrom
pmr/create-recovery-foreign-tests
Open

denik wants to merge 9 commits into
mainfrom
pmr/create-recovery-foreign-tests

Conversation

@denik

@denik denik commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Seven local acceptance tests that record what the direct engine does today when a create request fails in a way that leaves its outcome unknown. In six, a resource with the bundle's name exists that the bundle did not create, and deploy takes it. In the seventh, the bundle did create the resource, and deploy does not take it. No production code changes; the testserver gets a hook for two of the tests.

After such a failure, recoverCreate (bundle/direct/dresources/create_recovery.go) looks the resource up by name and uses it if its create time is no earlier than one minute before the first create request. For Unity Catalog resources it also requires created_by to be the deploying principal. Neither check tells a resource the bundle's request created from one that something else created in that window.

In the first six tests the 504 is injected before the backend handles the create request, so the bundle creates nothing.

Test Result recorded
vector_search_endpoints/create-504-foreign The endpoint is created outside the bundle first. A plain deploy fails with "already exists". The same deploy with the 504 reports Created, the plan is clean, and destroy deletes the endpoint. The read response has creator, which is not checked.
postgres_projects/create_504_foreign The same for a Lakebase project. The read response has status.owner, which is not checked.
schemas/create_504_foreign The same for a schema the deploying user created: the created_by check passes.
vector_search_endpoints/create-504-foreign-earlier The endpoint has a create time 30 seconds before the bundle's create request, so that request cannot have created it. Deploy takes it.
vector_search_endpoints/create-504-foreign-during The race itself: the endpoint is created outside the bundle between the failed request and its repeat. The repeat fails with "already exists", the next lookup finds the endpoint, and deploy takes it. Destroy deletes it.
vector_search_endpoints/create-504-foreign-type The endpoint found has another endpoint_type than the one requested. Deploy takes it and the next plan is recreate, so the next deploy would delete it.
vector_search_endpoints/create-503-replayed The opposite failure. The create request is applied but answered with a 503. The SDK repeats the request on its own, the repeat fails with "already exists", and deploy returns that error without a lookup, because the error it sees is not one that leaves the outcome unknown. The endpoint the bundle created stays outside its state and the next deploy fails the same way. This predates #7599.

Each test carries a Badness note.

Testserver hook

The last two tests need something to happen at an exact point of the deploy: an endpoint that appears between a failed create request and its repeat, and an endpoint that is a known time older than the request. A script can only approximate that with a background deploy and sleeps, and the output then depends on the speed of the machine. So this PR adds a hook to the testserver, next to the fault rules:

  • hook.py PATTERN OFFSET TIMES REQUEST [BODY] (POST /__testserver/hook): when a request of the test that matches PATTERN arrives, the server handles REQUEST itself, with the test's token, after the matching request is handled (or failed by a fault rule) and before it is answered. The request is recorded like any other and fails the test if it is answered with an error.
  • --clock-offset-ms N shifts the time the handler of REQUEST sees. Only the vector search endpoint create takes its time from the request so far (Request.nowMilli); the other handlers ignore the shift.

create-504-foreign-during puts the outside create on the deploy's lookup. create-504-foreign-earlier puts it on the deploy's create request, with the clock 30 seconds back. Neither test sleeps or runs anything in the background.

Why

The takeover was introduced for vector search endpoints in #7599 and extended to more resources in #7602, #7747, #7757, #7767, #7782, #7801 and #7910. In #7910 a review comment raised it for schemas and a created_by check was added for the Unity Catalog resources; the other resource types were left as they were. A Go-level check of all resource types shows 20 that take over a resource created just before the request by the same user.

It needs two things at once: a create request that fails with a 504 (or another error that leaves the outcome unknown), and something else creating the same name within about a minute. That is rare, but the result is a deployment that manages, and on destroy deletes, a resource it did not create. Before #7599 the deploy failed.

These tests are evidence for deciding what to do about it. They are useful whichever way that goes.

Tests

The seven tests above. They run only against the testserver, since the fault is injected there. Unit tests for the hook are in libs/testserver/hook_test.go: the order of the hook's request, a hook whose request matches its own pattern, and the shifted create time, compared with the create times of endpoints created before and after and not with the clock of the test.

Gaps and risks

  • The testserver has one user per workspace for these calls, so the tests do not show the takeover of a resource created by another user. That case follows from the code for every resource type without a created_by check.
  • Not run on cloud: the fault injection is local only.
  • Four tests (create-504-foreign, both create_504_foreign and create-504-foreign-type) create the resource with a CLI command right before the deploy. Their output holds as long as that takes less than a minute, which is the window they record.
  • Risk: low. Tests and test infrastructure only.

🤖 AI agent (fable5.2, isaac_claude)

This pull request and its description were written by Isaac.

… a failed create request

After a create request fails with a 504, DoCreate looks the resource up
by name and uses it if it was created no earlier than a minute before
the request. These tests record what that does when the resource was
created outside the bundle and the bundle's own request was never
applied: deploy succeeds, and destroy deletes the resource.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added DABs DABs related issues test-only-fix PRs that update failing of flaky tests without changing CLI code. labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 64bf80149 | Workflow run

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

9 tests: regression=0 unreleased=6 coverage=3 failing=0
test branch main (905b0f7) latest (v1.28.0)
TestAccept/bundle/resources/postgres_projects/create_504_foreign/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/postgres_projects/create_504_foreign/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/schemas/create_504_foreign/DMS= ✅ ✅ ❌
TestAccept/bundle/resources/schemas/create_504_foreign/DMS=true ✅ ✅ ❌
TestAccept/bundle/resources/vector_search_endpoints/create-503-replayed/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-during/DMS= ✅ ✅ ❌
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-earlier/DMS= ✅ ✅ ❌
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-type/DMS= ✅ ✅ ❌
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign/DMS= ✅ ✅ ❌
TestAccept/bundle/resources/schemas/create_504_foreign/DMS=: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/create_504_foreign/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemascreate_504_foreignDMS=837983770/002/output.txt
        @@ -24,33 +24,13 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-504-foreign-[UNIQUE_NAME]/default/files...
        -Created schemas.my_schema
        -Files: 0 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        +Error: cannot create resources.schemas.my_schema: Fault injected by test. (504 DEADLINE_EXCEEDED)
         
        ->>> print_requests.py --get --summary //unity-catalog/schemas //scim/v2/Me
        -POST /api/2.1/unity-catalog/schemas
        -GET /api/2.1/unity-catalog/schemas/main.test-schema-[UNIQUE_NAME]
        -GET /api/2.0/preview/scim/v2/Me
        +Endpoint: POST [DATABRICKS_URL]/api/2.1/unity-catalog/schemas
        +HTTP Status: 504 Gateway Timeout
        +API error_code: DEADLINE_EXCEEDED
        +API message: Fault injected by test.
         
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
        +Files: 0 uploaded, 0 deleted
         
        -=== Destroy deletes the schema the bundle did not create
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.my_schema
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.my_schema
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-504-foreign-[UNIQUE_NAME]/default
        -
        -Destroy: 1 deleted
        -
        ->>> print_requests.py --summary //unity-catalog/schemas
        -DELETE /api/2.1/unity-catalog/schemas/main.test-schema-[UNIQUE_NAME] force=true
        -
        ->>> musterr [CLI] schemas get main.test-schema-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-[UNIQUE_NAME]' does not exist.
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/schema-504-foreign-vhwaalikener5hfbo3vs4wsk64/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 0 deleted
    acceptance_test.go:1192: Test produced unexpected files:
        .databricks/.gitignore
        .databricks/bundle/default/deployment.json
        .databricks/bundle/default/released-deploy-locks.json
TestAccept/bundle/resources/schemas/create_504_foreign/DMS=true: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/create_504_foreign/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemascreate_504_foreignDMS=true2134213402/002/output.txt
        @@ -24,33 +24,13 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-504-foreign-[UNIQUE_NAME]/default/files...
        -Created schemas.my_schema
        -Files: 0 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        +Error: cannot create resources.schemas.my_schema: Fault injected by test. (504 DEADLINE_EXCEEDED)
         
        ->>> print_requests.py --get --summary //unity-catalog/schemas //scim/v2/Me
        -POST /api/2.1/unity-catalog/schemas
        -GET /api/2.1/unity-catalog/schemas/main.test-schema-[UNIQUE_NAME]
        -GET /api/2.0/preview/scim/v2/Me
        +Endpoint: POST [DATABRICKS_URL]/api/2.1/unity-catalog/schemas
        +HTTP Status: 504 Gateway Timeout
        +API error_code: DEADLINE_EXCEEDED
        +API message: Fault injected by test.
         
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
        +Files: 0 uploaded, 0 deleted
         
        -=== Destroy deletes the schema the bundle did not create
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.my_schema
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.my_schema
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-504-foreign-[UNIQUE_NAME]/default
        -
        -Destroy: 1 deleted
        -
        ->>> print_requests.py --summary //unity-catalog/schemas
        -DELETE /api/2.1/unity-catalog/schemas/main.test-schema-[UNIQUE_NAME] force=true
        -
        ->>> musterr [CLI] schemas get main.test-schema-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-[UNIQUE_NAME]' does not exist.
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/schema-504-foreign-2prlnfjhw5curcucf2lkgr3aey/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 0 deleted
    acceptance_test.go:1192: Test produced unexpected files:
        .databricks/.gitignore
        .databricks/bundle/default/deployment.json
        .databricks/bundle/default/released-deploy-locks.json
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-during/DMS=: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

hook.go:86: hook request POST /api/2.0/vector-search/endpoints failed: 409 {
            "error_code": "ALREADY_EXISTS",
            "message": "AI Search endpoint vs-endpoint-acga4b6fungrpogavgurpvwbde already exists. Please try again with a different endpoint name."
        }
    acceptance_test.go:1402: Diff:
        --- bundle/resources/vector_search_endpoints/create-504-foreign-during/output.txt
        +++ /tmp/TestAcceptbundleresourcesvector_search_endpointscreate-504-f2078644711/002/output.txt
        @@ -10,11 +10,9 @@
         
         >>> print_requests.py --get --summary //vector-search/endpoints
         POST /api/2.0/vector-search/endpoints
        -GET /api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]
         POST /api/2.0/vector-search/endpoints
        -POST /api/2.0/vector-search/endpoints
         GET /api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]
        -GET /api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]
        +POST /api/2.0/vector-search/endpoints
         
         >>> [CLI] bundle plan
         Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
        
    acceptance_test.go:1180: 
        LOG.cleanup: No active deployment found to destroy!
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-earlier/DMS=: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "\n=== The bundle's create request fails with a 504 that the backend did not apply. An endpoint with the name the bundle uses was created outside the bundle 30 seconds before the request: deploy takes it\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-endpoint-504-foreign-earlier-[UNIQUE_NAME]/default/files...\nCreated vector_search_endpoints.my_endpoint\nFiles: 0 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n"
        	            	actual  : "\n=== The bundle's create request fails with a 504 that the backend did not apply. An endpoint with the name the bundle uses was created outside the bundle 30 seconds before the request: deploy takes it\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-endpoint-504-foreign-earlier-[UNIQUE_NAME]/default/files...\nWarn: deploying resources.vector_search_endpoints.my_endpoint: retrying after 504 Gateway Timeout from POST /api/2.0/vector-search/endpoints\nWarn: deploying resources.vector_search_endpoints.my_endpoint: vector search endpoint \"vs-endpoint-[UNIQUE_NAME]\" was created by an earlier attempt that failed with a transient error, using it\nCreated vector_search_endpoints.my_endpoint\nFiles: 0 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,2 +5,4 @@
        	            	 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-endpoint-504-foreign-earlier-[UNIQUE_NAME]/default/files...
        	            	+Warn: deploying resources.vector_search_endpoints.my_endpoint: retrying after 504 Gateway Timeout from POST /api/2.0/vector-search/endpoints
        	            	+Warn: deploying resources.vector_search_endpoints.my_endpoint: vector search endpoint "vs-endpoint-[UNIQUE_NAME]" was created by an earlier attempt that failed with a transient error, using it
        	            	 Created vector_search_endpoints.my_endpoint
        	Test:       	TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-earlier/DMS=
        	Messages:   	bundle/resources/vector_search_endpoints/create-504-foreign-earlier/output.txt vs /tmp/TestAcceptbundleresourcesvector_search_endpointscreate-504-f1337009678/002/output.txt
    acceptance_test.go:1180: 
        LOG.cleanup: The following resources will be deleted:
        LOG.cleanup:   delete resources.vector_search_endpoints.my_endpoint
        LOG.cleanup: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/vs-endpoint-504-foreign-earlier-hx2acrh2ofadjho45xqlqd3lwe/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 1 deleted
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign-type/DMS=: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/vector_search_endpoints/create-504-foreign-type/output.txt
        +++ /tmp/TestAcceptbundleresourcesvector_search_endpointscreate-504-f3304287701/002/output.txt
        @@ -11,6 +11,8 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-endpoint-504-foreign-type-[UNIQUE_NAME]/default/files...
        +Warn: deploying resources.vector_search_endpoints.my_endpoint: retrying after 504 Gateway Timeout from POST /api/2.0/vector-search/endpoints
        +Warn: deploying resources.vector_search_endpoints.my_endpoint: vector search endpoint "vs-endpoint-[UNIQUE_NAME]" was created by an earlier attempt that failed with a transient error, using it
         Created vector_search_endpoints.my_endpoint
         Files: 0 uploaded, 0 deleted
         Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        
    acceptance_test.go:1180: 
        LOG.cleanup: The following resources will be deleted:
        LOG.cleanup:   delete resources.vector_search_endpoints.my_endpoint
        LOG.cleanup: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/vs-endpoint-504-foreign-type-2zxzymubtnfenm2p5tua4qehu4/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 1 deleted
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1
TestAccept/bundle/resources/vector_search_endpoints/create-504-foreign/DMS=: branch ✅ | main (905b0f7) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/vector_search_endpoints/create-504-foreign/output.txt
        +++ /tmp/TestAcceptbundleresourcesvector_search_endpointscreate-504-f1166403495/002/output.txt
        @@ -24,12 +24,15 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-endpoint-504-foreign-[UNIQUE_NAME]/default/files...
        +Warn: deploying resources.vector_search_endpoints.my_endpoint: retrying after 504 Gateway Timeout from POST /api/2.0/vector-search/endpoints
        +Warn: deploying resources.vector_search_endpoints.my_endpoint: vector search endpoint "vs-endpoint-[UNIQUE_NAME]" was created by an earlier attempt that failed with a transient error, using it
         Created vector_search_endpoints.my_endpoint
         Files: 0 uploaded, 0 deleted
         Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
         
         >>> print_requests.py --get --summary //vector-search/endpoints
         POST /api/2.0/vector-search/endpoints
        +POST /api/2.0/vector-search/endpoints
         GET /api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]
         GET /api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]
         
        
    acceptance_test.go:1180: 
        LOG.cleanup: No active deployment found to destroy!
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1

Co-authored-by: Isaac <no-reply@databricks.com>
denik and others added 2 commits November 27, 2026 14:35
…s a bug

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 64bf801

Run: 46096648013

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 174 24 4:35
✅​ aws-windows-latest-4core-16gb 174 24 3:41
✅​ azure linux-2core-8gb 173 24 4:21
✅​ azure-windows-latest-4core-16gb 173 24 4:00
✅​ gcp linux-2core-8gb 174 24 4:53
✅​ gcp-windows-latest-4core-16gb 174 24 2:56
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:21 azure linux-2core-8gb TestAccept
4:19 gcp linux-2core-8gb TestAccept
3:58 azure-windows-latest-4core-16gb TestAccept
3:39 aws-windows-latest-4core-16gb TestAccept
3:23 aws linux-2core-8gb TestAccept
2:55 gcp-windows-latest-4core-16gb TestAccept

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik marked this pull request as ready for review November 27, 2026 15:14
@denik
denik requested review from a team as code owners November 27, 2026 15:14

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review at b05d590. Each finding was verified against the code.

No blocking issues found. 4 non-blocking comment(s) and 1 question(s) below.

This PR adds six local acceptance tests that record how the direct engine, after a create request fails with a 504, takes over a same-named resource the bundle did not create. Destroy then deletes it. No production code changes. The recorded outputs match what recoverCreate does today. The concrete issues are in the test scripts: they hand-write a jq projection where print_requests.py --summary already exists, and the race test's golden doesn't show the race. The PR description's timing note for create-504-foreign-during also no longer matches the script.

Questions

  1. What does create-504-foreign-earlier cover that create-504-foreign doesn't? recoverCreate accepts any create time no earlier than start - createTimeSkew (one minute). Endpoints created 0 or 7 seconds before the deploy take the same path, and create-504-foreign already creates the endpoint before a whole failing deploy. Should the test be dropped or folded into create-504-foreign? testing.md says to extend an existing directory when coverage overlaps. Or is there a case the 7-second sleep covers? (non-blocking)

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[AI Generated] Review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.

No blocking or major issues found.

Co-authored-by: Isaac <no-reply@databricks.com>

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[AI Generated] Follow-up review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.

Earlier findings: 4 still open.

No new issues found.

Co-authored-by: Isaac <no-reply@databricks.com>

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[AI Generated] Follow-up review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.

No new issues found.

…of sleeps

create-504-foreign-during ran the deploy in the background and created
the endpoint during a 10 second retry pause, and create-504-foreign-earlier
slept 7 seconds, so their output depended on the speed of the machine.

Add a hook to the testserver: when a request that matches a pattern
arrives, the server sends a given request itself, after the matching
request is handled and before it is answered. The endpoint of the race
test is now created by a hook on the deploy's lookup, between the failed
create and its repeat. The endpoint of the earlier test is created by a
hook on the deploy's create request, with a create time 30 seconds before
it: a hook's request can shift the time its handler sees.

Co-authored-by: Isaac <no-reply@databricks.com>

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[AI Generated] Review by review-factory (Claude Opus 5.5 + Claude Opus 5.5 + Claude Sonnet 5.5, cross-verified). Only points the reviewers agreed on are posted.

No blocking or major issues found.

Comment thread libs/testserver/hook.go Resolved
Co-authored-by: Isaac <no-reply@databricks.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues 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.

4 participants