Skip to content

Describe the per-resource layout in the resource skills - #8044

Draft
janniklasrose wants to merge 3 commits into
janniklasrose/resource-skillsfrom
janniklasrose/per-resource-skill-wiring
Draft

janniklasrose wants to merge 3 commits into
janniklasrose/resource-skillsfrom
janniklasrose/per-resource-skill-wiring

Conversation

@janniklasrose

Copy link
Copy Markdown
Member

Changes

  • author-new-resource/references/wiring.md no longer lists shared files to edit. It points to "Adding a resource type" in bundle/config/resources/README.md for the files a new type needs, and keeps what that list does not carry: how to decide each declaration (run_as, presets, permissions, grants, Unity Catalog names, approval messages, workspace URL, launch stage, bind, create recovery, deployment history, etag protection), what to check in the generated files, and the rows no test guards, each with a command to verify it by hand.
  • The phases in author-new-resource/SKILL.md, the testing and pitfalls references, the API readiness reference and the review passes in review-new-resource/SKILL.md name the per-type files and their completeness tests instead of central lists.
  • Statements about what a test guards are corrected. TestRequiredAnnotationsForNewFields, for one, passes for a committed placeholder, so that check is now a row to verify by hand.

This builds on the pull request that adds the two skills. It describes the layout of the per-resource changes, so it is only correct once those have landed.

Why

The wiring checklist was written for a layout in which a new resource type was wired into many shared files, and several of its rows said that nothing catches a missing entry. With per-type files and completeness tests, most of those rows are either gone or guarded by a test that names the type.

Tests

  • Documentation only. ./task ws passes.
  • Every path, function, test name and command in the six files was checked against the combined branch of the per-resource changes, by the author and again by an independent review. The go test -run patterns that the skills give were run there with feature_specs in place of the placeholder, to confirm that each runs the tests it names.

This pull request and its description were written by Isaac.

janniklasrose and others added 3 commits November 26, 2026 02:13
Adding a resource type now means adding per-type files that register themselves; config.Resources is the only shared list a new type edits, and coverage tests name a type whose file or declaration is missing. The wiring checklist still described edits to shared lists, several of which no longer exist, and marked rows as unguarded that tests now catch.

The checklist now points to the file list in bundle/config/resources/README.md and keeps what that README does not carry: how to decide each declaration, what to check in the generated files, and the rows no test guards, each with a command to verify by hand. The phases, the review passes, the testing and pitfalls references and the readiness gate are updated to the same layout.

Co-authored-by: Isaac <no-reply@databricks.com>
The dashboards check lives in a file named after the resource key, the fake server registers permission object types from the file of each API, and a test guards shared Go code against naming resource types.

Co-authored-by: Isaac <no-reply@databricks.com>
The wiring checklist claimed that every row outside its last section has a test, but TestRequiredAnnotationsForNewFields passes with a committed file of placeholders, nothing requires a destroy approval message next to a deploy one, and no coverage test asks for the implicit-dependencies case. List those rows with a command to check them by hand, fix the phase checks that depended on later phases, and restore guidance on unexported adapter helpers, Exists and the changelog PR link.

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: c6fa34d

Run: 45746147435

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 270 15 5:24
💚​ aws-windows-latest-4core-16gb 1 272 13 6:17
💚​ azure linux-2core-8gb 1 269 15 4:55
💚​ azure-windows-latest-4core-16gb 1 271 13 6:11
💚​ gcp linux-2core-8gb 1 270 15 4:57
💚​ gcp-windows-latest-4core-16gb 1 272 13 6:00
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
Top 6 slowest tests (at least 2 minutes):
duration env testname
6:13 aws-windows-latest-4core-16gb TestAccept
6:06 azure-windows-latest-4core-16gb TestAccept
5:56 gcp-windows-latest-4core-16gb TestAccept
3:25 gcp linux-2core-8gb TestAccept
3:20 azure linux-2core-8gb TestAccept
3:16 aws 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