Skip to content

Rename per-type deploy files after their resource key - #8041

Draft
janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/per-resource-rename-deploy-hooks
Draft

janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/per-resource-rename-deploy-hooks

Conversation

@janniklasrose

Copy link
Copy Markdown
Member

Changes

Pure renames with git mv, no content change:

Before After
bundle/deploy/metadata/annotate_jobs.go bundle/deploy/metadata/jobs_annotate.go
bundle/deploy/metadata/annotate_pipelines.go bundle/deploy/metadata/pipelines_annotate.go
bundle/deploy/check_dashboards_modified_remotely.go bundle/deploy/dashboards_modified_remotely.go

Their test files move with them. No Go identifier changes, so the mutator names in telemetry stay the same.

Why

Files that hold logic about one resource type are named after the key of that type under resources: (<key>.go or <key>_<aspect>.go). These three put the key last, so tooling that recognises per-type files by name treats them as shared code.

Tests

  • The commit contains only renames: 6 files, 0 insertions, 0 deletions.
  • No other file referred to the old names.
  • The unit and acceptance suites pass.

This pull request and its description were written by Isaac.

Per-type files are named after the resource key under resources:, as <key>.go or <key>_<aspect>.go. These three files and their tests hold logic for a single resource type, so they follow the same rule. Content is unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
@janniklasrose janniklasrose added DABs DABs related issues new-resource-work Skills, docs and small refactors for onboarding new bundle resources labels Nov 26, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 9d6b639

Run: 45742104210

Env 🔄​flaky 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 279 19 3:49
💚​ aws-windows-latest-4core-16gb 1 281 17 4:05
💚​ azure linux-2core-8gb 1 278 19 3:56
💚​ azure-windows-latest-4core-16gb 1 280 17 3:42
💚​ gcp linux-2core-8gb 1 279 19 3:56
🔄​ gcp-windows-latest-4core-16gb 3 1 278 17 4:25
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 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🔄​ TestFsCpDirToDirWithOverwriteFlag/dbfs_to_uc-volumes ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f
🔄​ TestFsCpDirToDirWithOverwriteFlag/uc-volumes_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f
🔄​ TestFsCpDirToDirWithOverwriteFlag/uc-volumes_to_uc-volumes ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f
Top 4 slowest tests (at least 2 minutes):
duration env testname
4:03 aws-windows-latest-4core-16gb TestAccept
3:39 azure-windows-latest-4core-16gb TestAccept
3:32 gcp-windows-latest-4core-16gb TestAccept
2:01 gcp linux-2core-8gb TestAccept

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 new-resource-work Skills, docs and small refactors for onboarding new bundle resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants