Skip to content

Treat already-gone deletes as state-only cleanup in plan/deploy output - #6675

Merged
denik merged 1 commit into
mainfrom
denik/gone-count
Sep 15, 2026
Merged

denik merged 1 commit into
mainfrom
denik/gone-count

Conversation

@denik

@denik denik commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Changes

A Delete entry marked Gone (the resource is already missing remotely) only drops the stale state entry — no backend call — exactly like a StateOnly delete. Report it consistently: omit it from the bundle plan and bundle deploy action listings and from the resource counts, matching what bundle destroy already does.

Why

The paths disagreed: bundle destroy already excluded already-gone resources from its "will be deleted" list and count, but bundle plan/deploy still listed and counted them as deletions. Fixing only the count would make deploy contradict itself ("Deleted jobs.foo" followed by "0 deleted"), so the listing and the count move together, matching the state-only-delete model.

Tests

Acceptance goldens regenerated (jobs/remote_delete/removed_from_config).

This PR was written by Claude Code.

@denik
denik force-pushed the denik/gone-count branch 2 times, most recently from 7789897 to d5bd04e Compare September 14, 2026 14:49
@denik
denik marked this pull request as ready for review September 14, 2026 14:50
@denik
denik enabled auto-merge September 14, 2026 14:51
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 40611fe

Run: 34955279031

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 275 16 5:34
💚​ aws windows 1 277 14 5:36
💚​ azure linux 1 274 16 5:37
💚​ azure windows 1 276 14 3:29
💚​ gcp linux 1 275 16 5:42
💚​ gcp windows 1 277 14 4:28
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:34 aws windows TestAccept
4:25 gcp windows TestAccept
4:02 aws linux TestAccept
3:59 gcp linux TestAccept
3:57 azure linux TestAccept
3:26 azure windows TestAccept

@denik
denik force-pushed the denik/gone-count branch 2 times, most recently from 1621aa9 to 97f6510 Compare September 15, 2026 08:36
A Delete entry marked Gone (the resource is already missing remotely) only drops
the stale state entry — no backend call — just like a StateOnly delete. Report it
that way consistently: omit it from the `bundle plan` and `bundle deploy` action
listings and from the resource counts, matching what `bundle destroy` already does.
Previously plan/deploy listed and counted such deletes while destroy did not.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik added this pull request to the merge queue Sep 15, 2026
Merged via the queue into main with commit 7766dd1 Sep 15, 2026
35 checks passed
@denik
denik deleted the denik/gone-count branch September 15, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants