Skip enum validation for unresolved variable references#4752
Merged
Conversation
The `${resources...}` references are not resolved during the validate phase,
so enum validation incorrectly flags them as invalid enum values.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Variable references like ${resources.jobs.my_job.id} are not resolved
during the validate phase. The enum validator now skips values that
contain variable references to avoid false positive warnings.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Collaborator
|
Commit: a6edc23
18 interesting tests: 9 SKIP, 7 KNOWN, 2 flaky
Top 21 slowest tests (at least 2 minutes):
|
shreyas-goenka
approved these changes
Mar 16, 2026
Contributor
shreyas-goenka
left a comment
There was a problem hiding this comment.
When did you run into this? Very suprising this is a real issue because enums normally should not be referencing IDs.
rauchy
pushed a commit
that referenced
this pull request
Mar 17, 2026
Variable references like ${resources.jobs.my_job.id} are not resolved
during the validate phase. The enum validator now skips values that
contain variable references to avoid false positive warnings.
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>
deco-sdk-tagging bot
added a commit
that referenced
this pull request
Mar 18, 2026
## Release v0.295.0 ### Notable Changes * Databricks Asset Bundles have been renamed to Declarative Automation Bundles (DABs). This is a non-breaking change; no code or configuration modifications are required. See the [FAQ](https://docs.databricks.com/aws/en/dev-tools/bundles/faqs#why-was-databricks-asset-bundles-renamed-to-declarative-automation-bundles). * Add `bundle.engine` config setting to select the deployment engine (`terraform` or [`direct`](https://docs.databricks.com/aws/en/dev-tools/bundles/direct)). The `bundle.engine` setting takes precedence over the `DATABRICKS_BUNDLE_ENGINE` environment variable. When the configured engine doesn't match existing deployment state, a warning is issued and the existing engine is used ([#4749](#4749), [#4782](#4782)) ### CLI * Add `databricks auth switch` command for setting the default profile ([#4651](#4651)) * Add positional argument support to `auth logout` ([#4744](#4744)) * Strip trailing slash from host in `auth login`, `auth token`, and `configure` commands ([#4633](#4633)) ### Bundles * Standardize `personal_schemas` enum across bundle templates ([#4401](#4401)) * engine/direct: Fix permanent drift on experiment name field ([#4627](#4627)) * engine/direct: Fix permissions state path to match input config schema ([#4703](#4703)) * Add default project name and success message to default-scala template ([#4661](#4661)) * Skip enum validation for unresolved variable references ([#4752](#4752)) * engine/direct: Support references to/from grants ([#4774](#4774))
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.
Variable references like ${resources.jobs.my_job.id} are not resolved during the validate phase. The enum validator now skips values that contain variable references to avoid false positive warnings.