dab: implement gen_dab.py emitter that produces databricks.yml from registry + config #172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A generator script that reads the pipeline registry, stack.toml [databricks], and table catalog to emit a valid databricks.yml — zero hardcoded pipeline names, task lists, or dependencies.
Why
When a new pipeline is added to
aco.pipe, the DAB config should update automatically (viagen_config.py --checkin CI). The current databricks.yml is hand-maintained and will drift.Scope
dev/scripts/backends/databricks.py(follows gitea.py / github.py pattern)registrydict → generatesresources.jobs.stack_pipelines.taskswith correctdepends_onfromPipeline.upstreamstack.toml [databricks]→ generatesbundle,variables,workspace,targets,job_clustersschemasandvolumesresourcesdatabricks.ymlat repo rootgen_config.pysouv run python dev/scripts/gen_config.pyalso generates databricks.yml--checkmode validates databricks.yml is up-to-dateAcceptance
uv run python dev/scripts/gen_config.pyproduces a databricks.yml identical to current (modulo formatting)databricks bundle validatepasses on the generated file