Skip to content

docs(databricks): plan binds dbt projects and refuses what apply refuses - #335

Merged
fas89 merged 1 commit into
mainfrom
docs/databricks-plan-binding-and-refusals
Dec 4, 2026
Merged

fas89 merged 1 commit into
mainfrom
docs/databricks-plan-binding-and-refusals

Conversation

@fas89

@fas89 fas89 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

What

Documents forge-cli #1188, which is open and not merged (head e4bed6c0d, on main at 528822e1b). This pull request stays a draft until it merges, and is checked against the merged files then.

  • docs/cli/plan.md: fluid plan of a contract file records the dbt projects its builds run (dbtProjects, under planDigest) and says why a project is unbound. A new section, "What fluid plan refuses", for the offline check of what fluid apply's OpenTofu emitter refuses: what fails the plan, what only warns because it depends on where apply runs, the project refusals of a Databricks job build, the --provider mismatch, and the AWS Glue jar prefix, which is reported after the contract's own refusals.
  • docs/cli/apply.md, docs/cli/bundle.md, docs/advanced/operating-in-ci.md, docs/advanced/production-troubleshooting.md: the three refusals of a plan whose dbt project changed, is missing or was never bound (apply_plan_digest_dbt_project_changed, _missing, _unbound), the dry-run warning, and planning and applying in one checkout.
  • docs/cli/verify.md, docs/providers/databricks.md: the NOT NULL hint for a dbt-built Databricks table and its two JSON keys; what the dbt job's per-rule report says when a task's output could not be read, and that only a test's own line counts; the refusal fixes that work with contract rules; the upload that sizes each file before it reads it; the shape of the error code fluid diff repeats.
  • docs/providers/aws.md, docs/advanced/spark-iceberg-aws.md, docs/sdk-and-plugins/reference/entry-points.md: the AWS plan-time refusals and the order of the jar prefix, and the optional emit_refusals and environment_refusals capabilities of a provider plugin.
  • docs/cli/test.md: a results-alert folder is checked before it is made, and the /Workspace/Shared refusal stops advising a permission change.
  • docs/advanced/project-dotenv-trust.md, docs/cli/diff.md, docs/cli/doctor.md: the host warning that says how to unset the profile, and which codes a preflight failure repeats.
  • docs/upgrading.md, "Not in a release yet": a bullet for each change a reader notices.
  • All new text is marked "not yet in a release" with forge-cli #1188. Two fixes in #1188 need no page: the type-named dbt messages and the order of the job rule are quoted nowhere, and the doctor row's missing period shows only in an upgrading line.

Validation

  • Every changed sentence was read against forge-cli #1188 at e4bed6c0d. Its source equals the earlier head these pages were checked against, except one test file.
  • Two independent reads of the changed sentences against the code found nine imprecisions, now fixed. Examples: the AWS jar prefix order was described as a reorder of a plan check that 0.44.0 did not have; the results-alert text said a refused run never leaves an empty folder, which is not true when the parent's permissions cannot be read; the preflight code shape applies to the Databricks rows only; the list of refusals that only warn lacked a bundle planned away from its checkout; an opening sentence said a plan's digests never bind the project's files.
  • Run from a build of that source:
    • fluid plan of a contract file with a dbt build records dbtProjects and prints dbt project bound or dbt project NOT bound; fluid apply plan.json refuses a changed, missing or unbound project in each apply mode, and a dry run warns instead.
    • fluid plan of a Databricks job build from a local repository exits 1 with no plan.json for a missing project, a symbolic link, a file over 2 MiB, an unreadable file and a project over 1000 files. The same contract planned as a bundle away from its <bundle>.provenance.json warns and writes the plan.
    • The warnings that depend on where apply runs, the --provider mismatch (generate_iac_provider_mismatch) and the AWS refusals at plan; an unset Glue jar prefix alone and beside a second refusal, in fluid plan, fluid apply and fluid generate iac.
    • The ignored-host warning with a profile alone and with a token, the failure text for an upper-case, lower-case and mixed-case API code, and the dbt upload's size refusals next to what 0.44.0 printed.
    • The results-alert folder check against an in-process stand-in workspace (a parent open to every user, an unreadable parent), next to 0.44.0, which made the folder first. The verify hint and the dbt job's per-rule report were read from the code and not run.
  • scripts/check_cli_docs.py in every mode (against data-product-forge==0.44.0, the release sweep against forge-cli's CHANGELOG.md at 528822e1b), scripts/check_providers.py, scripts/gen_contract_reference.py --check, the offline link check on the route mirror, npm run docs:build and node scripts/check-dist-links.mjs: pass.

Not run: a live Databricks workspace or AWS account, a real dbt run, and a full fluid apply against either.

fluid plan of a contract file binds each dbt build's project and runs the
refusals fluid apply's OpenTofu emitter raises, so a refused contract fails
the plan. fluid apply refuses a project that changed, is missing or was not
bound. fluid verify says where a dbt-built table's NOT NULL belongs, and the
dbt job's per-rule report says what it could not read. The dbt upload sizes a
file before it reads it, a results-alert folder is checked before it is made,
and a few warnings and failure texts are clearer. Not yet in a release.

Signed-off-by: Speculator55005 <50082482+fas89@users.noreply.github.com>
@fas89
fas89 marked this pull request as ready for review December 4, 2026 12:02
@fas89
fas89 merged commit bc9342c into main Dec 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant