Developers
This page is for contributors and developers working in the GeoBrix repository. It describes how the project is organized and how to use the gbx:* commands effectively.
How the project is organized
GeoBrix is a multi-artifact repo: Scala/JVM core, Python bindings, docs, and tooling share the same root and are built for Databricks. The development container runs the same native payload as the env wheel. Build and test GeoBrix there before you run it on Databricks.
Repository layout
| Path | Purpose |
|---|---|
src/main/scala/com/databricks/labs/gbx/ | Core implementation: readers, expressions, RasterX, GridX, VectorX |
src/test/scala/ | Scala unit and integration tests |
python/geobrix/ | Python package: PySpark bindings and sample-data bundle |
docs/ | Docusaurus site: docs/ (content), src/ (components), tests under docs/tests/ |
examples/ | Sample notebooks, apps, and tests (examples/notebooks/, examples/apps/, examples/sample-data/, examples/tests/) |
scripts/ | CI, Docker, and one-off scripts |
sample-data/ | Scripts and outputs for sample data (host); in-cluster uses Volumes path |
scripts/commands/ | gbx:* palette commands — .md registration + .sh implementation (see below) |
CLAUDE.md | Project conventions and working patterns — read this first when starting work here |
Packages and readers
- RasterX — Raster operations and expressions (GDAL-backed);
rst_*/gbx_rst_*. - GridX — Grid systems (BNG, H3);
bng_*/gbx_bng_*. - VectorX — Vector geometry and OGR-backed readers;
st_*/gbx_st_*. - Readers — Format-specific data sources (GDAL, OGR, GeoTIFF, Shapefile, GeoJSON, GeoPackage, etc.) registered as Spark data sources.
Tests and docs
- Unit tests:
src/test/scala/(Scala),python/geobrix/test/(Python). - Documentation tests:
docs/tests/python/,docs/tests/scala/— validate code examples used in the docs; single source of truth. - Notebook tests:
examples/tests/validates examples underexamples/notebooks/andexamples/apps/; run viagbx:*commands or CI.
Development and CI use a Docker image (geobrix-dev) for a consistent environment; most gbx:* commands run inside that container.
The container runs the native image, geobrix-dev:ubuntu24-gbxnative-spark-<arch>. It carries the env6 wheel's GDAL, the same build that Databricks runs. It is built on a base image, geobrix-dev:ubuntu24-base-spark-<arch>, which has no GDAL of its own. To build both the first time:
- Build the base image:
gbx:docker:rebuild. - Build the env6 wheel:
gbx:build:wheel --env 6. - Build the native bindings into
build/native/out/<arch>/bindings/dist/:gbx:build:native --target bindings. - Run
scripts/native/prefetch.sh --arch <arch>, then build the native image:gbx:docker:rebuild --overlay gbxnative. - Start the container:
gbx:docker:start. When an image is missing, it prints these steps and stops.
Testing the JVM level
The JVM level (L1) needs a built JAR. Functions the JAR speeds up lists the functions that run on the JVM by default. Compiled classes alone are not enough: the tests load the assembly JAR from python/geobrix/lib/.
- Force or favour a level.
register(spark, only=[...], _levels=..., _prefer=...)lets a test compare levels._levelsmaps a SQL name to a forced(level, variant)pair, for example{"gbx_st_triangulate": ("L1", "-")}._prefermaps a SQL name to a level to try first, with the usual fallback. Use them in tests and benches only. They carry no compatibility promise. - Cross-tier parity.
gbx:test:paritybuilds the JAR, stages it inpython/geobrix/lib/and runs the parity suites.--skip-buildreuses the staged JAR. - The family harness.
python/geobrix/test/manager/test_family_cross_tier.pyruns every oracle table at every level. SetGBX_ORACLE_TABLES=<TABLE>[,<TABLE2>]to pick tables. With a staged JAR, run it throughgbx:test:python --path <file> --with-integration. Without--with-integration, its parity rows skip. - Scala suites.
gbx:test:scala --suite '<pattern>'runs one suite, and--suites 'A,B'runs several. - Timing.
gbx:bench:local-timing --set <family>times one function of a family at its JVM level against each Python form, onlocal[8]in the dev container.
The keep rule: the JVM level is the default only where it measured at least 1.2x faster than the best Python form. The output must match. The test runs on dedicated compute at 4x or 16x rows. Otherwise its Scala is removed.
Testing on a Databricks cluster
You can run the Essential bundle and primitive Volume tests on a live Databricks cluster. This way, Volume paths are FUSE-mounted and the bundle uses pathlib/shutil only (no Databricks Files API).
Config — Copy examples/tests/databricks_cluster_config.example.env to examples/tests/databricks_cluster_config.env and set:
DATABRICKS_HOST,DATABRICKS_TOKEN(orDATABRICKS_CONFIG_PROFILE)CLUSTER_ID(existing cluster to run the job)GBX_BUNDLE_VOLUME_CATALOG,GBX_BUNDLE_VOLUME_SCHEMA,GBX_BUNDLE_VOLUME_NAME— Volume root is/Volumes/<catalog>/<schema>/<volume_name>. The volume name must match Data Explorer exactly (e.g.sample-datanotsample_data).- GBX_ARTIFACT_VOLUME — directory for artifacts (e.g.
/Volumes/.../artifacts). JAR and wheel are uploaded directly here (no subpaths). Wheel path for the notebook is derived asGBX_ARTIFACT_VOLUME/geobrix-<version>-py3-none-any.whlunless overridden. - Optional:
GBX_BUNDLE_WHEEL_VOLUME_PATH— override full wheel path for the notebook pip cells. - Optional:
GBX_BUNDLE_SKIP_WHEEL_UPLOAD=1— use existing wheel (no build/upload); notebook still gets the pip and restart cells. - Optional:
GBX_BUNDLE_SKIP_JAR_UPLOAD=1— when running stage-wheel, skip the JAR build and upload (same asGBX_BUNDLE_SKIP_JAR=1). When running stage-jar alone, it still builds the JAR locally and skips only the upload.GBX_BUNDLE_SKIP_JAR=1skips the JAR step entirely (no build, no upload) in both. - Optional:
GBX_RUNNER_DIR,GBX_BUNDLE_RUNNER_NOTEBOOK,GBX_PRIMITIVE_RUNNER_NOTEBOOK— where to upload the runner notebooks.
Commands — From the repo root:
gbx:test:primitive-databricks— Pushes the primitive notebook and runs it on the cluster. Validates volume exists, create subdirs, read/write/copy via FUSE (pathlib/shutil). No GeoBrix dependency.gbx:test:bundle-databricks— Pushes the bundle runner notebook and runs it on the cluster. IfGBX_BUNDLE_WHEEL_VOLUME_PATHis set, the notebook has: (1)%pip install --quiet <wheel>, (2)%pip install --quiet --no-deps --force-reinstall <wheel>, (3)dbutils.library.restartPython(), then the bundle cell. Run those cells in order so the restarted process loads the new GeoBrix code.
Convention — For Volume path handling (FUSE, pathlib, no random access), see the "Unity Catalog Volumes" section in CLAUDE.md.
gbx:* commands
The repo provides gbx:* commands so both humans and AI agents can run tests, coverage, docs, and Docker in a consistent way. Each command is a .md registration + .sh implementation under scripts/commands/ (the directory name is historical; the commands are usable from any shell).
Conventions and architectural guidance live in CLAUDE.md at the repo root. Read that for cross-language naming, BNG resolution rules, GDAL resource management, doc-test single-source pattern, and the user-facing-docs voice rule. Agents (Cursor or Claude) read CLAUDE.md as their entry point.
Commands
Commands are invocable actions. Prefer them over ad-hoc shell for tests, coverage, docs, Docker, and data so behavior is consistent and reproducible.
How to invoke
- From Cursor UI — Use the command palette (
/or type the command name) and run the desiredgbx:*command. Each command is backed by a.md(registration) and a.sh(implementation) inscripts/commands/. - From a shell — Run the script directly, e.g.
bash scripts/commands/gbx-test-scala.sh [OPTIONS]. This is the form most often used by terminals, CI, or AI agents (Claude, Cursor) invoking them via a shell tool.
Naming
Commands follow gbx:<category>:<action>:
| Category | Purpose |
|---|---|
test | Run tests (Scala, Python, docs, SQL docs, notebooks, function-info) |
coverage | Code coverage (Scala/Python, unit/docs, gaps, baseline, package-targeted) |
data | Sample data: download (essential/complete bundle), generate minimal bundle, stage sample data and JAR/wheel to Volume |
docs | Documentation server (start, stop, restart, dev, serve-local, static-build, function-info) |
docker | Container lifecycle (exec, start, stop, restart, rebuild, attach) |
ci | CI / GitHub Actions: push, trigger, status, watch, logs, docs menu, setup |
lint | Scala: scalastyle; Python: isort, black, flake8 (same as CI) |
When to use which command
Use the following by task; always prefer the command over manual shell for these operations.
Testing
| Command | When to use | What it does |
|---|---|---|
gbx:test:scala | After Scala changes, before commit | Runs Scala unit tests (excludes doc tests); supports --suite |
gbx:test:python | After Python changes | Runs Python unit tests in python/geobrix/test/ |
gbx:test:scala-docs | After changing Scala doc examples | Runs Scala doc tests in docs/tests/scala/ |
gbx:test:python-docs | After changing Python doc examples | Runs Python doc tests in docs/tests/python/ (default: no integration) |
gbx:test:sql-docs | After changing SQL API examples | Runs SQL (and Python API) doc tests in docs/tests/python/api/ |
gbx:test:docs | Before PR that touches docs | Runs all doc tests by invoking python-docs, sql-docs, and scala-docs in sequence; sets GBX_SAMPLE_DATA_ROOT to minimal bundle by default (use --no-sample-data-root for full bundle) |
gbx:test:function-info | After changing function-info or doc SQL | Regenerates function-info and runs DESCRIBE/coverage tests |
gbx:test:notebooks | After changing sample-data or notebook runner | Runs notebook tests; use --include-integration for full run |
gbx:test:python-dbr | Validate Python on Databricks Runtime | DBR integration tests (spatial SQL, readers); excluded from regular CI; requires DBR environment |
gbx:test:bundle-databricks | Validate Essential bundle on a live cluster | Pushes runner notebook and runs it on CLUSTER_ID; use --local to run bundle on host |
gbx:test:primitive-databricks | Validate Volume access on cluster (FUSE) | Pushes primitive notebook; tests volume exists, create subdirs, read/write/copy via pathlib |
Coverage (Scala coverage is slow; use strategically)
| Command | When to use | What it does |
|---|---|---|
gbx:coverage:gaps | See where to focus | Shows package-level gaps (no test run) |
gbx:coverage:scala-package | After changes in one package | Runs coverage for one package (e.g. rasterx, gridx) |
gbx:coverage:baseline | Weekly or before release | Full Scala or Python baseline |
gbx:coverage:scala | Full Scala coverage (sparingly) | Full scoverage; use --report-only to view last run |
gbx:coverage:python | After Python changes | Python unit test coverage (fast) |
gbx:coverage:scala-docs / gbx:coverage:python-docs | After doc test changes | Coverage for doc test suites |
Data
Doc tests use the in-repo minimal bundle (no download step). Generate it once with gbx:data:generate-minimal-bundle; the Docker Volumes mount makes it available to tests. The one exception is the synthetic Zarr ERA5-like cube (global/era5-weather/): it is gitignored, so a fresh clone does not have it. Generate it with gbx:data:generate-minimal-bundle --zarr-only, or in a notebook with write_era5_cube from databricks.labs.gbx.sample.zarr_era5 (tree_digest hashes a written store; two runs give the same digest). For full sample data locally, use gbx:data:download. Minimal-bundle Sentinel-2 rasters (and *_byte.tif variants) may appear black in QGIS or other viewers; the full-size Essential/Complete bundle rasters are the ones suited for visual inspection.
| Command | When to use | What it does |
|---|---|---|
gbx:data:download | Need full sample data locally | Downloads essential and/or complete bundle to sample-data/ |
gbx:data:generate-minimal-bundle | CI or doc tests; after full bundle if needed | Generates minimal bundle under sample-data/Volumes/.../test-data/geobrix-examples/ by bbox extraction (NYC/London, --bbox-size, --max-rows) plus a small synthetic ERA5-like Zarr cube (global/era5-weather/; --zarr-only writes just the cube); doc test commands use this, not a download step |
gbx:data:stage-sample | Stage a sample dataset (default: the Zarr ERA5-like cube) to a Volume | Needs --profile; uploads global/era5-weather/ of the minimal bundle to <volume-root>/geobrix-examples/ (default Volume /Volumes/geospatial_docs/geobrix/sample-data) and checks every size. Deletes only stale files inside the uploaded part of each *.zarr store (the whole store, or only the array with --path <store>.zarr/<array>), never other files, other datasets or the rest of the Volume; --path must be relative with no ..; --dry-run lists the files and the stores it would prune without contacting a workspace (no uv or SDK needed) |
gbx:data:stage-wheel | Stage built JAR and wheel to Volumes | Builds JAR first (stage-jar) unless GBX_BUNDLE_SKIP_JAR_UPLOAD=1 or GBX_BUNDLE_SKIP_JAR=1 (either skips the JAR build and upload), then clears python/geobrix/dist, runs python3 -m build, stages wheel to GBX_ARTIFACT_VOLUME/ (holds exactly one geobrix-*.whl) and the bundle volroot (bundle/%pip path); set GBX_BUNDLE_SKIP_WHEEL_UPLOAD=1 to skip wheel |
gbx:data:stage-jar | Stage built JAR to Volumes | Runs mvn clean package -DskipTests, stages product JAR to GBX_ARTIFACT_VOLUME/ (holds exactly one geobrix-*-jar-with-dependencies.jar) and bench tests.jar to bundle volroot; set GBX_BUNDLE_SKIP_JAR_UPLOAD=1 to build locally and skip the upload, or GBX_BUNDLE_SKIP_JAR=1 to skip build and upload |
Documentation
| Command | When to use | What it does |
|---|---|---|
gbx:docs:start | Serve docs (one-off) | Builds (optional) and starts server on port 3000 |
gbx:docs:stop | Free port or before another docs command | Stops any running docs server |
gbx:docs:dev | While editing docs | Dev server with hot reload |
gbx:docs:serve-local | Preview production build | Build then serve static site |
gbx:docs:static-build | Create offline/portable docs zip | Build with relative paths and hash router; zip to resources/static/ by default (use --output <path>); leaves docs/build/ unchanged for serving |
gbx:docs:restart | Restart after stop | Stop + start with same options |
gbx:docs:function-info | After changing doc SQL examples | Regenerates function-info.json from doc SQL |
Docker
| Command | When to use | What it does |
|---|---|---|
gbx:docker:start | First time or after stop | Starts geobrix-dev container from the image for your machine's architecture (--platform or GBX_DOCKER_PLATFORM to choose; --recreate to switch a running container) |
gbx:docker:stop | When done developing | Stops container |
gbx:docker:exec | Run Maven, pytest, etc. | Runs a command (or interactive shell) in container |
gbx:docker:attach | Interactive shell in container | Attach to running container |
gbx:docker:restart | After config change | Restart container |
gbx:docker:rebuild | After Dockerfile or deps change | Rebuild the base image (native for your machine's architecture; --platform to choose), or with --overlay gbxnative the native image on it |
gbx:docker:clear-pycache | After editing Python code, stale imports | Clears .pyc and __pycache__ in container so tests see fresh code |
Lint
| Command | When to use | What it does |
|---|---|---|
gbx:lint:scalastyle | Before pushing Scala changes | Runs ScalaStyle on src/main/scala (same config as CI); catches trailing whitespace, missing EOF newline, non-ASCII in comments |
gbx:lint:python | Before pushing Python changes | Runs isort, black, flake8 on python/geobrix (same as CI). Default: check-only in Docker. Use --fix on host to apply isort/black (requires pip install -e \"python/geobrix[dev]\"). |
CI (require GitHub CLI gh; use gbx:ci:setup to install/authenticate)
| Command | When to use | What it does |
|---|---|---|
gbx:ci:push | Initiate remote build on current branch (e.g. beta/0.4.0) | Pushes branch to origin, then watches the build main workflow run |
gbx:ci:trigger | Push then manually trigger build main (e.g. workflow_dispatch) | Pushes branch, lists runs, prompts to trigger build main on current branch |
gbx:ci:status | Check recent CI runs | Shows recent workflow runs for current branch (optional: [LIMIT]) |
gbx:ci:watch | Stream a CI run | Watches latest run (or [RUN_ID]) in real time |
gbx:ci:logs | Download CI logs | Fetches logs for latest run (or [RUN_ID]) into ci-logs/ |
gbx:ci:docs | Doc-test CI menu | Run doc tests locally (python/scala), status, trigger, watch, logs (or no args for menu) |
gbx:ci:setup | One-time CI setup | Install and authenticate GitHub CLI (gh) |
Most commands accept --help. Common options: --log <path> for test/output logs (truncated each run), --open for coverage reports, and command-specific flags (e.g. --suite, --path, --skip-build). Doc test commands set GBX_SAMPLE_DATA_ROOT=/Volumes/main/default/test-data in the container by default, so the minimal bundle is used (required for remote/CI). Use --no-sample-data-root to leave it unset and use the full-bundle path or your own env. They do not run a sample-data download; the minimal or full bundle must be present via the Volumes mount.
Working with agents
When working with Claude or Cursor in this repo, agents should:
- Read
CLAUDE.mdfirst — it documents project conventions and translates cross-project working patterns into geobrix-specific behavior (Docker container,ghaccount switching, etc.). - Dispatch long-running work to subagents —
gbx:*test/build commands typically take minutes and benefit from running in an isolated context, freeing the main session for review. - Use
gbx:*commands rather than ad-hoc shell for tests, coverage, docs, and Docker — they handle env vars, log paths, and container setup consistently. - Add or fix a command rather than work around it — if a
gbx:*command is broken, fix the script inscripts/commands/<name>.sh. Do not invoke the underlying tool directly and let the command rot.
Quick reference
- Run tests:
gbx:test:*(pick the scope: scala, python, docs, notebooks, bundle-databricks, primitive-databricks). - Coverage: Prefer
gbx:coverage:gapsandgbx:coverage:scala-packagefor Scala;gbx:coverage:pythonis fast. - Docs:
gbx:docs:devwhile editing;gbx:docs:stopto stop. - Docker:
gbx:docker:startthengbx:docker:exec(orattach) for builds and tests. - Databricks cluster:
gbx:test:primitive-databricksthengbx:test:bundle-databrickswithdatabricks_cluster_config.envset. - Conventions and patterns: Read
CLAUDE.mdat the repo root. - Full command list and options: See the "Commands" section above, or run any
gbx:*command with--help.
CI / GitHub Actions
Workflows live in .github/workflows/. They define when and how tests and builds run on GitHub.
When things run
- Main build (
build_main.yml) — Runs on push to any branch (exceptpython/**andscala/**), on all pull requests, and via workflow_dispatch (manual trigger from the Actions tab orgh workflow run "build main" --ref <branch>). The jobs:- Native payload — builds or restores the cached GDAL native stack. The light and heavy tests wait for it.
- Light tests — the lightweight test directories, split into parallel shards. Each shard installs the native bindings and the Rust module, and fails if they do not load.
- Script tests — the tests under
scripts/ci. They need no native payload, so they start at once. - Two-architecture native gate — checks that the native build was verified on both architectures for the current native inputs.
- Heavy tests (Scala + JAR) — runs in parallel with the light tests. Its Scala step runs the suites listed in
.github/actions/scala_build/suites-heavy.txt: the suites of code that registered functions still reach. Scala doc tests (docs/tests/scala/) run in a separate step, only on a push tomain.
- CodeQL (
codeql-analysis.yml) — Security analysis on push and pull_request tomain. - Publish / release — Triggered by release or publish events (see the workflow files).
Before a pull request
Run gbx:uc:tests --profile <name> before you open a pull request or push to main. The command installs the Unity Catalog functions into a scratch schema on Databricks. It runs the UC oracle slice and the example files against that schema, then drops the schema. The result goes to test-logs/uc-integration/evidence.json, with the scope of the run. A QC check reads that file on gh pr create and on a push to main. It fails when the file is missing, failed, or older than the UC sources. A change of the release version needs --scope full; any other change needs core or full. To run smoke, core or full against an install that exists, add --against SCHEMA. That run writes evidence-adhoc.json, which the check never reads. The pull request template asks you to paste the summary line. Pushes to development branches are not gated.
Initiating a build from a branch
Pushing to a branch (except python/** and scala/**) successfully triggers the build main workflow. To run the main build on your current branch (e.g. beta/0.4.0):
- Push and watch —
gbx:ci:push. Pushes the current branch to origin (push triggers build main), then streams the run. - Trigger after push —
gbx:ci:trigger. Pushes, then prompts to trigger build main (workflow_dispatch). - Check status —
gbx:ci:status. Recent workflow runs for the current branch. - Watch a run —
gbx:ci:watchorgbx:ci:watch RUN_ID. - Fetch logs —
gbx:ci:logsorgbx:ci:logs RUN_ID(saves toci-logs/). - First-time setup —
gbx:ci:setupto install and authenticate the GitHub CLI (gh).
Build environment and caching
The Scala and Python build actions (.github/actions/scala_build/ and python_build/) use a shared environment. When both run in the same job (e.g. build main), caches stay warm:
- Apt — The Scala action restores
.cache/apt-archivesat the start of its system-packages step and saves it at the end; it installs onlyzipandunzip. No GDAL comes from apt: the JVMs run on the native payload's GDAL, the one GeoBrix ships, and the payload bundles the libraries it links. The Python action installs no apt packages. Workflows cache.cache/apt-archiveswith a key derived from both action files, so changing either action invalidates the cache. - Pip — Both use the same pip cache key (
.ci-pip-cache-key, created by the workflow from ref + matrix). That avoids duplicate pip installs when Scala runs first and Python reuses the same interpreter and cache. - Maven — Scala uses
setup-javawithcache: 'maven'andcache-dependency-path: 'pom.xml'. Every Maven call in CI is./mvnw, which runs the version pinned in.mvn/wrapper/maven-wrapper.properties; the dev image installs the same version, andpom.xmlrequires it as a minimum.
The two actions intentionally mirror each other (same apt repos, same system packages, same pip stack: numpy, pyspark). Scala adds JDK, Maven, zip/unzip, and the link of /usr/lib/libgdalalljni.so to the native payload's JNI; Python adds pytest and pip install python/geobrix[dev]. Lint (ScalaStyle, isort/black/flake8) runs in CI on every build, but the build fails on lint errors only for PRs targeting main. Pushes and PRs to other branches do not fail on lint. Config: scalastyle-config.xml, python/geobrix/pyproject.toml. Use gbx:lint:scalastyle and gbx:lint:python locally (or gbx:lint:python --fix with dev deps on the host). A future refactor could extract a single “setup system packages + pip” composite used by both. For now the duplication is small and the structure is aligned for easy comparison.
Releasing the DCS image
The Databricks Container Services (DCS) image for dedicated clusters is built and published separately from the JAR and wheel. It is released for two architectures, Graviton (arm64, the default) and x86 (amd64), and each architecture is built, verified and released on its own. The release owner publishes it. The publish command never runs docker login or handles credentials. Log in to Docker Hub (docker login) first, with an account that can push to the image repository.
Run steps 1 to 4 once per architecture. --arch selects it on both commands: omit it (or pass --arch arm64) for the Graviton image, and pass --arch amd64 for the x86 image. The architecture sets the base image and the tag suffix: -arm on databricksruntime/environment:v6-standard-arm, -x86 on databricksruntime/environment:v6-standard.
-
Build the JAR and wheel for the release, then build the image with
bash scripts/commands/gbx-dcs-build.sh(add--arch amd64for x86). If the build network blocks public PyPI, exportPIP_INDEX_URLbefore the build; the command passes it as a BuildKit secret, so it never enters the image. The image gets its-rctag (<ver>-env6-<arm|x86>-rc) only after every check passes; a failed check leaves no new tag. An architecture different from the build machine's compiles GDAL under emulation, which takes hours. -
Push the release candidate with
bash scripts/commands/gbx-dcs-publish.sh --candidate(add--arch amd64for x86). Note the printedDIGEST=<repo>@sha256:<hex>line: it identifies the exact image you are about to verify. -
Verify the
-rcimage on a dedicated DCS test cluster of the matching instance architecture that has no GeoBrix JAR library attached. A cluster uses one GeoBrix JAR, and the image already carries it. Check both tiers, and the*_gbxreaders on/Volumes. -
Push the release tags, passing the version and the digest from step 2 for that architecture:
bash scripts/commands/gbx-dcs-publish.sh --release --confirm <ver> --expect-digest sha256:<hex>bash scripts/commands/gbx-dcs-publish.sh --release --arch amd64 --confirm <ver> --expect-digest sha256:<hex>The first command releases the Graviton image and the second the x86 image; each takes the digest of its own candidate, never the other architecture's.
--releaserefuses unless--confirmequals the version being released, so run it only after the verification in step 3.--expect-digestrefuses unless the local-rcimage is the one with that digest, which is the image you verified. The command re-tags the candidate image you pushed and verified as<ver>-env6-<arm|x86>andenv6-<arm|x86>, and refuses an-rcimage that was never pushed. Don't rebuild between steps 2 and 4: a rebuilt image needs a new candidate push and verification. Record each architecture's releasedDIGEST=line in the description of the GitHub release that step 5 attaches the Dockerfile to, not in the docs release notes. -
The release workflow attaches
geobrix-<ver>-dcs.Dockerfileto the GitHub release.
Do the image release (step 4) for both architectures before the docs that name the release tags are deployed from main. The Databricks Container Service page tells readers to pull <ver>-env6-arm and env6-arm on Graviton, and <ver>-env6-x86 and env6-x86 on x86. Those tags must exist first.
Summary
The main build runs on push to any branch (except python/**, scala/**) — push triggers are successful — and on all PRs and via workflow_dispatch. Use gbx:ci:push to push and watch the build. Scala doc tests run only on push to main, in a separate step with GBX_SAMPLE_DATA_ROOT set. For full details and triggers, see the YAML files in .github/workflows/.