-
Notifications
You must be signed in to change notification settings - Fork 145
direct: plan: add new "empty" rule to replace empty{slice,map,struct} #4491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| >>> [CLI] auth profiles | ||
| Name Host Valid | ||
| test [DATABRICKS_URL] NO | ||
| test [DATABRICKS_URL] YES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on here? Looks racy...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I got this locally but it failed on CI. Reverting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a race condition, I get YES consistently on my laptop.
Interestingly, YES is correct answer here as was added originally in https://github.com/databricks/cli/pull/3659/changes#diff-57b881487b436a3f618f7247532d8579c6f0d6de170708025bc70390aca79169R7
When SDK was bumped, it was changed to NO with this explanation:
Badness = "databricks auth profiles should return yes for the test profile. There's something going wrong with CLI detection in the SDK which makes this flag it as a legacy CLI."
perhaps @shreyas-goenka has some context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stopped getting YES once I brew-uninstalled 'databricks'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps @shreyas-goenka has some context
This is a regression caused by the SDK bump. If you have the databricks CLI in path this passes otherwise fails. @tejaskochar-db was looking into this more.
|
Commit: 3f60147
18 interesting tests: 7 KNOWN, 5 SKIP, 5 RECOVERED, 1 FAIL
Top 50 slowest tests (at least 2 minutes):
|
|
Commit: 1114335
30 interesting tests: 12 flaky, 7 KNOWN, 5 SKIP, 5 RECOVERED, 1 FAIL
Top 50 slowest tests (at least 2 minutes):
|
Changes
New "empty" reason in plan triggers when old/new & remote values are all either nil or zero or empty slice/map.
Why
Ignoring differences like nil vs "" and nil vs 0 reduces drift when backend has preferred representation. For example, model_serving_endpoints.description is converted from nil to "" by backend. jobs.timeout_seconds has a default 0.
This supports removing server_side_default rule which currently marks this changes as "skip". #4490
Tests
Existing tests.