Encourage the use of root_path in production to ensure single deployment#1712
Conversation
Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com>
742210c to
3973c50
Compare
3973c50 to
6ea5306
Compare
|
@pietern @andrewnester could you take another look at this PR? The remaining thread should be resolved: #1712 (comment) |
| // report an error for them. | ||
| return diag.Warningf("target with 'mode: production' should " + advice) | ||
| } | ||
| return diag.Errorf("target with 'mode: production' must " + advice) |
There was a problem hiding this comment.
For follow-up: the advice should be a multi-line string in the Detail field to render nicely. As is, it is shown as a single (wrapped) line. The warning case will light up in all cases where mode: production is used and the root path is not specified.
Also, this doc page should be updated https://docs.databricks.com/en/dev-tools/bundles/deployment-modes.html#production-mode as well and linked from the warning to explain why the warning is shown while users haven't changed anything.
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Changes
This updates
mode: productionto allowroot_pathto indicate uniqueness. Historically, we requiredrun_asfor this, which isn't actually very effective for that purpose.run_asalso had the problem that it doesn't work for pipelines.This is a cherry-pick from #1387