Skip to content

config-remote-sync: fail when a selected resource is not in the configuration - #6931

Merged
ilyakuz-db merged 4 commits into
mainfrom
configsync-resource-not-in-config
Oct 6, 2026
Merged

ilyakuz-db merged 4 commits into
mainfrom
configsync-resource-not-in-config

Conversation

@ilyakuz-db

@ilyakuz-db ilyakuz-db commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Changes

bundle config-remote-sync --select-ids now fails when a selected resource is deployed but its key is no longer in the bundle configuration (renamed or removed since the last deploy). JSON output reports status: failed with a new errorCode field (RESOURCE_NOT_IN_CONFIG), and telemetry records the same category. errorCode is only set for explicitly classified failures.

Why

Such a resource is planned as a delete with no changes, so the command reported success and the remote edits were silently dropped. DABs in the Workspace showed the sync as successful.

Tests

Added an acceptance test that renames a deployed job's key and checks the JSON output and the telemetry payload.

…guration

Co-authored-by: Isaac <no-reply@databricks.com>
@ilyakuz-db
ilyakuz-db requested review from a team as code owners October 5, 2026 16:28
@github-actions github-actions Bot added the DABs DABs related issues label Oct 5, 2026
…ied error codes

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

eng-dev-ecosystem-bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 3609192

Run: 37451777528

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 17 5:33
✅​ aws windows 278 15 5:54
✅​ azure linux 275 17 5:39
✅​ azure windows 277 15 7:06
✅​ gcp linux 276 17 5:37
✅​ gcp windows 278 15 8:13
Top 6 slowest tests (at least 2 minutes):
duration env testname
8:06 gcp windows TestAccept
6:59 azure windows TestAccept
5:49 aws windows TestAccept
4:06 gcp linux TestAccept
3:58 aws linux TestAccept
3:53 azure linux TestAccept

ilyakuz-db and others added 2 commits October 5, 2026 19:11
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@ilyakuz-db
ilyakuz-db added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 82e3f48 Oct 6, 2026
40 of 42 checks passed
@ilyakuz-db
ilyakuz-db deleted the configsync-resource-not-in-config branch October 6, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants