direct: plan: add new "empty" rule to replace empty{slice,map,struct}#4491
direct: plan: add new "empty" rule to replace empty{slice,map,struct}#4491
Conversation
| >>> [CLI] auth profiles | ||
| Name Host Valid | ||
| test [DATABRICKS_URL] NO | ||
| test [DATABRICKS_URL] YES |
There was a problem hiding this comment.
What's going on here? Looks racy...
There was a problem hiding this comment.
Indeed, I got this locally but it failed on CI. Reverting.
There was a problem hiding this comment.
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.
I stopped getting YES once I brew-uninstalled 'databricks'.
There was a problem hiding this comment.
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.