Repository navigation
Describe the per-resource layout in the resource skills - #8044
Draft
janniklasrose wants to merge 3 commits into
Draft
janniklasrose wants to merge 3 commits into
janniklasrose wants to merge 3 commits into
Conversation
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>
Collaborator
✅ Integration test reportCommit: c6fa34d
Top 6 slowest tests (at least 2 minutes):
|
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
author-new-resource/references/wiring.mdno longer lists shared files to edit. It points to "Adding a resource type" inbundle/config/resources/README.mdfor 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.author-new-resource/SKILL.md, the testing and pitfalls references, the API readiness reference and the review passes inreview-new-resource/SKILL.mdname the per-type files and their completeness tests instead of central lists.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
./task wspasses.go test -runpatterns that the skills give were run there withfeature_specsin place of the placeholder, to confirm that each runs the tests it names.This pull request and its description were written by Isaac.