Repository navigation
Conversation
DoUpdate and DoDelete are wrapped in retry.With(retry.IsTransient) in apply.go, but DoCreate is not, so a 504 on the publish that follows a dashboard create trashed the new dashboard and failed the deploy. Publishing the same draft again is harmless, so retry it in DoCreate. cloud: TestAccept/bundle/resources/dashboards/unpublish-out-of-band TestAccept/bundle/invariant/no_drift/DMS=true/INPUT_CONFIG=dashboard.yml.tmpl Co-authored-by: Isaac <no-reply@databricks.com>
cloud: TestAccept/bundle/resources/dashboards/unpublish-out-of-band TestAccept/bundle/invariant/no_drift/DMS=true/INPUT_CONFIG=dashboard.yml.tmpl Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 6 tests: regression=2 unreleased=0 coverage=4 failing=0
TestAccept/bundle/resources/dashboards/publish_504/DMS=: branch ✅ | main (7377a87) ❌ | latest (v1.28.0) ❌main (7377a87): latest (v1.28.0): TestAccept/bundle/resources/dashboards/publish_504/DMS=true: branch ✅ | main (7377a87) ❌ | latest (v1.28.0) ❌main (7377a87): latest (v1.28.0): |
A dashboard left behind after the cleanup trash fails is not in state, so every later deploy fails with ALREADY_EXISTS on its path. Retry the trash on transient errors like DoDelete, and treat a retry that finds it gone as done. The test now also covers every publish failing and checks the warehouse_id and embed_credentials each publish sends. cloud: TestAccept/bundle/resources/dashboards/unpublish-out-of-band TestAccept/bundle/invariant/no_drift/DMS=true/INPUT_CONFIG=dashboard.yml.tmpl 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
When the publish request that follows a dashboard create fails with a transient error (5xx, 408, inactivity timeout), the direct engine now retries it (
retry.With(ctx, retry.IsTransient, ...), up toretry.MaxRetriestimes) instead of trashing the new dashboard and failing the deploy.DoUpdateandDoDeleteare already wrapped inretry.With(ctx, retry.IsTransient, ...)inbundle/direct/apply.go, so the publish insideDoUpdateis already retried.DoCreateis retried only when it marks its errorretrySafe, which the dashboard create can't do as a whole, so its publish step had no retry. #7757 recovers a timed-out create request but not a timed-out publish after it.Publishing the same draft with the same
warehouse_idandembed_credentialsagain is harmless, so a publish that landed despite the error can be repeated.Why
Since #7757 merged on 2026-11-18, both failures of this error on main were on the publish call:
Error: cannot create resources.dashboards.dashboard1: (504 DEADLINE_EXCEEDED)/Endpoint: POST [DATABRICKS_URL]/api/2.0/lakeview/dashboards/[DASHBOARD_ID]/publishedPOST .../lakeview/dashboards/[DASHBOARD_ID]/publishedTests
New acceptance test
bundle/resources/dashboards/publish_504injects one 504 on the publish, before and after the handler runs; the deploy retries the publish, a follow-up plan shows no changes, and destroy deletes the dashboard. Without the fix both cases fail with the 504 above.Dashboard
Error: cannot create resources.dashboards.[NAME]: (504 DEADLINE_EXCEEDED)onPOST .../lakeview/dashboards/[DASHBOARD_ID]/publishedGaps and risks
🤖 AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.