Available for Enterprise Edition only.
The Prophecy Build Tool only supports building Python and Scala projects.
Features
Using the Prophecy Build tool, you can:- Build pipelines (all or a subset) in Prophecy projects.
- Unit test pipelines in Prophecy projects.
- Deploy jobs with built pipelines on Databricks.
- Deploy jobs filtered by fabric IDs on Databricks.
- Integrate with CI/CD tools like GitHub Actions.
- Verify the project structure of Prophecy projects.
- Deploy pipeline configurations.
- Add Git tags to a deployment.
- Set versions for PySpark projects.
Requirements
To install and run the Prophecy Build Tool, you need:pippython >=3.7(Recommended 3.9.13)pyspark(Recommended 3.3.0)
Using generated wheel artifacts
The Prophecy Build Tool (PBT) generates Python wheel (.whl) files as part of the build process. These artifacts must be available in the execution environment where your pipeline runs.
Depending on your setup, you may need to install or provide the wheel manually.
Local or ad-hoc execution
If you are running jobs locally or outside a managed deployment pipeline, install the wheel file before execution:Databricks or cluster environments
Ensure the wheel is either:- attached as a cluster library, or
- included in your deployment process.
Install PBT
To install the Prophecy Build Tool, run:See the PyPI package for the latest version.
Usage
Configuration
Before using PBT with Databricks, set the following environment variables:Build pipelines
Thebuild command compiles all or specific pipelines within a Prophecy project.
--add-pom-python option.
Build options
To build only specific pipelines:
Deploy pipelines and jobs
Thedeploy command builds and deploys Prophecy pipelines and jobs to your Databricks workspace.
--release-version and --project-id parameters, used to replace placeholders in your job definition file (databricks-job.json).
These values determine the DBFS path where artifacts are uploaded.
Use the project’s ID (from its URL) and a unique release version for each deployment.
Sample deploy output
Deploy dependent projects
Use--dependent-projects-path to include dependent Prophecy projects located in subdirectories.
Deploy by fabric ID
Use--fabric-ids to deploy jobs associated with specific Fabric IDs (helpful for multi-workspace environments).
Skip builds
To deploy previously built pipelines without rebuilding:Deploy specific jobs
By default, all jobs are deployed. To deploy selected jobs, use--job-ids.
Deploy options summary
Test pipelines
The Prophecy Build Tool supports unit testing of pipelines within a Prophecy project. Tests run with the default configuration underconfigs/resources/config.
Test options
If
--driver-library-path is omitted, dependencies are fetched automatically from Maven Central.
Sample test output
Validate pipelines
Validation checks all pipelines in a project for warnings and errors, similar to Prophecy’s in-IDE diagnostics. This helps ensure pipelines are production-ready before deployment.Validate options
Applying versions to PySpark projects
PySpark projects often rely on specific versions of Spark, Python libraries, and data connectors. Versioning the project (viapbt_project.yml or setup.py) ensures compatibility between your code and these dependencies, helping avoid runtime errors when pipelines are deployed to different environments (local, Databricks).
The Prophecy Build Tool lets you set various options for versioning as follows.
Versioning options
Tagging builds
Thepbt tag command creates a Git tag for the version listed in pbt_project.yml. This tag marks a specific point in your project’s history so you can track or redeploy that version later. By default, the tag name includes the branch (for example, main/1.4.0) and is pushed to the remote automatically. You can change or remove the branch name with --branch, create a custom tag with --custom, or skip pushing with --no-push.

