Skip to content

acc: tolerate retried app deployment POST in apps lifecycle-started tests - #7511

Merged
denik merged 1 commit into
mainfrom
ai/apps-lifecycle-started-unique-deployments
Nov 12, 2026
Merged

denik merged 1 commit into
mainfrom
ai/apps-lifecycle-started-unique-deployments

Conversation

@denik

@denik denik commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Changes

Collapse consecutive duplicate requests (print_requests.py --unique) in the apps/lifecycle-started and apps/lifecycle-started-toggle acceptance tests. The toggle test switches from an inline jq filter to print_requests.py so it can use --unique; that only reorders keys in its output.txt.

Why

appdeploy.Deploy (bundle/appdeploy/app.go) retries POST /api/2.0/apps/{name}/deployments on purpose: if the first attempt fails, it waits for the in-flight deployment to finish and posts again. On cloud this sometimes happens right after an app is created with started: true or started by the bundle. The request recording then has the same deployment POST twice in a row, and the tests flake (~0.5-1% of cloud runs on main, all clouds, since August).

This is the CLI behaving as intended, not a backend bug. These tests check which lifecycle calls are made (create/start/stop/update/deploy), not how many times one is attempted, so collapsing exact consecutive duplicates keeps that coverage. I did not change the retry: it handles a real backend race.

Dashboard

error verbatim snippet
error/1031 + "path": "/api/2.0/apps/[UNIQUE_NAME]/deployments", (extra POST with "mode": "SNAPSHOT" after the expected one)

Tests:

Tests

  • Local: go test ./acceptance -run 'TestAccept/bundle/resources/apps/lifecycle-started' passes.
  • AWS: testme-aws -run 'TestAccept/bundle/resources/apps/lifecycle-started(-toggle)?/' passes (all 6 variants incl. lifecycle-started-omitted).

Opened by an AI agent (harness_auto, isaac_claude, opus5.5).

This pull request and its description were written by Isaac.

appdeploy.Deploy retries POST /api/2.0/apps/{name}/deployments after waiting
for the in-flight deployment when the first attempt fails. On cloud this
happens occasionally right after create/start, so the recorded requests
contain the deployment twice. Collapse consecutive duplicates with
print_requests.py --unique.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik denik added the ai-auto PRs made by AI loops & factories, label Nov 11, 2026
@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 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Commit: 89931892a | Workflow run

Regression test report

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

4 tests: regression=0 unreleased=0 coverage=4 failing=0
test branch main (cec3f63) latest (v1.26.0)
TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/apps/lifecycle-started/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/apps/lifecycle-started/DMS=true ✅ ✅ ✅

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 8993189

Run: 43093892102

Env 🔄​flaky 💚​RECOVERED ✅​pass 🙈​skip Time
🔄​ aws linux-2core-8gb 3 4 270 15 37:09
🔄​ aws-windows-latest-4core-16gb 4 3 272 13 32:40
🔄​ azure linux-2core-8gb 3 4 269 15 31:52
🔄​ azure-windows-latest-4core-16gb 6 4 268 13 26:49
💚​ gcp linux-2core-8gb 7 270 15 14:56
💚​ gcp-windows-latest-4core-16gb 7 272 13 11:44
10 interesting tests: 10 flaky
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 🔄​f 💚​R 🔄​f 🔄​f 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started 🔄​f 🔄​f 💚​R 🔄​f 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started-toggle 💚​R 🔄​f 🔄​f 💚​R 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS= 💚​R 💚​R 🔄​f 💚​R 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true 💚​R 🔄​f 💚​R 💚​R 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started/DMS= 🔄​f 💚​R 💚​R 🔄​f 💚​R 💚​R
🔄​ TestAccept/bundle/resources/apps/lifecycle-started/DMS=true 💚​R 🔄​f 💚​R 💚​R 💚​R 💚​R
🔄​ TestSyncFullFileSync ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
🔄​ TestSyncIncrementalFileOverwritesFolder ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
🔄​ TestSyncIncrementalSyncPythonNotebookDelete ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
Top 50 slowest tests (at least 2 minutes):
duration env testname
13:57 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
13:05 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
12:28 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
12:28 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
12:13 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:34 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:30 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
10:28 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
9:32 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:27 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:00 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
7:46 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
6:12 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
5:56 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
5:41 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
5:33 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
5:26 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
5:20 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
5:10 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
4:43 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
4:12 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
4:07 azure linux-2core-8gb TestFsCpDirToDirWithOverwriteFlag/dbfs_to_dbfs
4:02 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
4:00 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
3:55 azure linux-2core-8gb TestFsCpDirToDirFileNotOverwritten/dbfs_to_local
3:53 gcp linux-2core-8gb TestAccept
3:42 azure-windows-latest-4core-16gb TestFsCpDirToDirWithOverwriteFlag/dbfs_to_dbfs
3:37 gcp-windows-latest-4core-16gb TestAccept
3:09 aws linux-2core-8gb TestFsCpDirToDirFileNotOverwritten/dbfs_to_dbfs
3:03 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
3:02 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
3:01 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
2:59 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:51 azure-windows-latest-4core-16gb TestFsCpFileToDirWithOverwriteFlag/dbfs_to_uc-volumes
2:45 aws linux-2core-8gb TestFsCpDirToDirFileNotOverwritten/dbfs_to_uc-volumes
2:39 azure-windows-latest-4core-16gb TestFsCpFileToDirWithOverwriteFlag/dbfs_to_dbfs
2:31 azure-windows-latest-4core-16gb TestLock
2:29 aws linux-2core-8gb TestFsCpFileToFileFileNotOverwritten/dbfs_to_dbfs
2:29 aws linux-2core-8gb TestFsCpFileToFile/dbfs_to_dbfs
2:29 azure linux-2core-8gb TestFsCpDir/dbfs_to_dbfs
2:24 azure linux-2core-8gb TestFsCpDirToDirFileNotOverwritten/dbfs_to_uc-volumes
2:23 azure linux-2core-8gb TestFsCpDirToDirFileNotOverwritten/dbfs_to_dbfs
2:23 aws linux-2core-8gb TestFsCpDirToDirWithOverwriteFlag/dbfs_to_dbfs
2:19 azure-windows-latest-4core-16gb TestExportDir
2:17 gcp linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:16 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:15 aws-windows-latest-4core-16gb TestFsCpDirToDirWithOverwriteFlag/dbfs_to_dbfs
2:12 aws linux-2core-8gb TestFsCpFileToDirWithOverwriteFlag/dbfs_to_local
2:11 azure linux-2core-8gb TestFsCpFileToFileFileNotOverwritten/uc-volumes_to_dbfs
2:10 azure-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files_extensions

@denik
denik marked this pull request as ready for review November 11, 2026 22:11
@denik
denik requested review from a team as code owners November 11, 2026 22:11
@denik
denik requested a review from andrewnester November 11, 2026 22:11
@denik
denik enabled auto-merge November 11, 2026 22:11

@andrewnester andrewnester 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.

lifecycle-started-omitted prints the same start-then-deployments pair via print_requests.py //apps without --unique, so it has the same exposure. Same treatment, or did the dashboard show it clean?

@denik
denik added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 093378d Nov 12, 2026
39 of 45 checks passed
@denik
denik deleted the ai/apps-lifecycle-started-unique-deployments branch November 12, 2026 07:41
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

❌ Integration test report

Commit: 093378d

Run: 43177282116

Env ❌​FAIL 🟨​KNOWN 💚​RECOVERED ✅​pass 🙈​skip Time
❌​ aws linux-2core-8gb 39 1 11 1511 1279 146:30
❌​ aws-windows-latest-4core-16gb 39 1 11 1430 1306 179:10
❌​ azure linux-2core-8gb 39 1 11 1491 1287 135:46
❌​ azure-windows-latest-4core-16gb 46 1 11 1403 1314 142:43
❌​ gcp linux-2core-8gb 39 1 11 1498 1285 141:36
❌​ gcp-windows-latest-4core-16gb 39 1 11 1417 1312 174:09
58 interesting tests: 46 FAIL, 11 RECOVERED, 1 KNOWN
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 🟨​K 🟨​K 🟨​K 🟨​K 🟨​K 🟨​K
💚​ TestAccept/bundle/resources/apps/lifecycle-started 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-omitted 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
❌​ TestAccept/bundle/resources/postgres_branches/update_protected ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_branches/update_protected/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_branches/update_protected/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_branches/update_ttl ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_branches/update_ttl/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_branches/update_ttl/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_databases/update ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_databases/update/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_databases/update/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/remove_suspend_timeout ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/remove_suspend_timeout/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/remove_suspend_timeout/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_autoscaling ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_autoscaling/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_autoscaling/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_pg_settings ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_pg_settings/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_pg_settings/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_suspend_timeout ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_suspend_timeout/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_endpoints/update_suspend_timeout/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/add_default_endpoint_settings ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/add_default_endpoint_settings/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/add_default_endpoint_settings/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/remove_history_retention ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/remove_history_retention/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/remove_history_retention/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_default_endpoint_suspend ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_default_endpoint_suspend/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_default_endpoint_suspend/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_display_name ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_display_name/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_display_name/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_history_retention ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_history_retention/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_projects/update_history_retention/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_roles/update ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_roles/update/DMS= ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/postgres_roles/update/DMS=true ❌​F ❌​F ❌​F ❌​F ❌​F ❌​F
💚​ TestAccept/bundle/resources/postgres_synced_tables/recreate 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/postgres_synced_tables/recreate/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/postgres_synced_tables/recreate/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
❌​ TestFsCpDirToDirFileNotOverwritten ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFsCpDirToDirFileNotOverwritten/dbfs_to_uc-volumes ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFsCpDirToDirFileNotOverwritten/uc-volumes_to_dbfs ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFsCpDirToDirFileNotOverwritten/uc-volumes_to_local ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFsCpDirToDirFileNotOverwritten/uc-volumes_to_uc-volumes ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFilerRecursiveDelete ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
❌​ TestFilerRecursiveDelete/files ✅​p ✅​p ✅​p ❌​F ✅​p ✅​p
Top 50 slowest tests (at least 2 minutes):
duration env testname
11:17 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
9:47 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
9:21 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
9:06 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:58 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:54 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
8:53 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
8:47 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
8:36 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:35 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:35 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:29 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:11 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:09 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
8:02 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/resize-terminated-fallback/DMS=
7:57 azure linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster_libraries.yml.tmpl/READPLAN=1
7:53 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
7:35 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=true
7:28 azure linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
7:21 gcp linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster_apply_policy_default_values.yml.tmpl/READPLAN=1
7:17 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
7:14 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
7:12 gcp linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster_libraries.yml.tmpl/READPLAN=
7:11 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
7:10 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
6:51 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
6:46 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=true
6:44 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
6:43 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
6:40 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
6:33 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
6:30 gcp linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster_libraries.yml.tmpl/READPLAN=1
6:23 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
6:23 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:12 azure linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster_libraries.yml.tmpl/READPLAN=
6:11 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
6:08 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
6:04 aws-windows-latest-4core-16gb TestAccept/bundle/deploy/spark-jar-task/DMS=true
5:57 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
5:50 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
5:47 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:47 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
5:41 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:39 azure linux-2core-8gb TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=cluster.yml.tmpl/READPLAN=1
5:27 azure linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
5:27 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
5:25 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:22 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
5:18 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
5:15 gcp-windows-latest-4core-16gb TestAccept/bundle/templates/default-python/combinations/classic/DLT=yes/DMS=/NBOOK=no/PY=no/READPLAN=

@denik

denik commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

@andrewnester good catch, it does have the same exposure: the "started omitted -> started: true" step records start + POST .../deployments. The dashboard showed it clean (no error/1031 hits on lifecycle-started-omitted in the last 90 days), but the same retry can hit it, so I applied the same --unique treatment in #7547 (output.txt is unchanged).

AI agent (harness_auto, isaac_claude, opus5.5)

tedjt pushed a commit to tedjt/cli that referenced this pull request Nov 12, 2026
…mitted (databricks#7547)

## Changes

Collapse consecutive duplicate requests (`print_requests.py --unique`)
in `apps/lifecycle-started-omitted`, the same treatment databricks#7511 gave
`lifecycle-started` and `lifecycle-started-toggle`. `output.txt` doesn't
change, because the trace line prints the wrapper function name.

## Why

Review feedback on databricks#7511: this test also records a start followed by
`POST /api/2.0/apps/{name}/deployments` (the "started omitted ->
started: true" step), so the same `appdeploy.Deploy` retry can record
that POST twice. The dashboard shows no error/1031 failures for this
test in the last 90 days, so this change prevents the flake rather than
fixing an observed one. Consecutive duplicates are still collapsed only
after GET filtering, as in databricks#7511.

## Dashboard

Preventive; the same failure mode as
[error/1031](http://go/cli/dashboard/error/1031?main=1&pr=1&end=2026-11-12T00:00:00Z&last=60d),
which has not been seen on this test yet.

## Tests

- Local: `go test ./acceptance -run
'TestAccept/bundle/resources/apps/lifecycle-started-omitted'` passes.
- AWS: `testme-aws -run
'TestAccept/bundle/resources/apps/lifecycle-started-omitted/'` passes
(DMS= and DMS=true).

_Opened by an AI agent (harness_auto, isaac_claude, opus5.5)._

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

ai-auto PRs made by AI loops & factories, DABs DABs related issues 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