Repository navigation
Conversation
denik
force-pushed
the
denik/bundle-bitmap
branch
from
July 30, 2026 10:11
221d417 to
39faace
Compare
Collaborator
❌ Integration test reportCommit: 0f0c0e0
Top 33 slowest tests (at least 2 minutes):
|
denik
force-pushed
the
denik/bundle-bitmap
branch
2 times, most recently
from
August 3, 2026 10:01
eb6b1f0 to
29c5b44
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
2 times, most recently
from
August 17, 2026 11:52
45b8bfe to
9ad0bbb
Compare
Contributor
|
This PR has not received an update in a while. If you want to keep this PR open, please leave a comment below or push a new commit and auto-close will be canceled. |
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 3, 2026 16:34
9ad0bbb to
96a6df5
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 3, 2026 16:42
96a6df5 to
f972c44
Compare
Contributor
|
Commit: Regression test reportSelected 9 changed tests (limit=20, 0 not selected) 77 tests: regression=75 unreleased=0 coverage=2 failing=0
TestAccept/bundle/bitmap/full: branch ✅ | main (627d1d1) ❌ | latest (v1.27.0) ❌main (627d1d1): latest (v1.27.0): TestAccept/bundle/bitmap/presence/DMS=: branch ✅ | main (627d1d1) ❌ | latest (v1.27.0) ❌main (627d1d1): latest (v1.27.0): same output as main (627d1d1) TestAccept/bundle/bitmap/presence/DMS=true: branch ✅ | main (627d1d1) ❌ | latest (v1.27.0) ❌main (627d1d1): latest (v1.27.0): 72 more failure details omitted, see the full report in the run. |
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 4, 2026 10:08
f972c44 to
1cc9186
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
3 times, most recently
from
November 5, 2026 13:52
5e60941 to
445b523
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 9, 2026 15:40
108e307 to
6d41413
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
2 times, most recently
from
November 9, 2026 22:59
e070c71 to
9739855
Compare
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 11, 2026 12:35
9739855 to
2f3d071
Compare
idelafuente-oc
pushed a commit
to idelafuente-oc/cli
that referenced
this pull request
Nov 11, 2026
## Why Optional bools in CLI-defined config structs were plain `bool` with `omitempty`. The typed-to-dynamic conversion that runs after every mutator drops zero values, so an explicit `false` was lost unless the struct declared `ForceSendFields`: - it never showed in `bundle validate -o json`; - a target could not override `true` with `false`. On main this is broken for `artifacts.*.dynamic_version`, `bundle.deployment.lock.force`, `workspace.azure_use_msi` (auth then fails with "more than one authorization method configured: azure and pat") and `replace_existing` on postgres endpoints, databases and roles; - the bundle bitmap (databricks#6104) could not record it. ## Changes These fields become `*bool`, like `lock.enabled` already is; readers use `config.IsExplicitlyEnabled` (or dereference inline in the direct engine): - `variables.*.sensitive`, `artifacts.*.dynamic_version`, `bundle.deployment.lock.force`, `workspace.azure_use_msi`, `workspace.experimental_is_unified_host`, `targets.*.default`, `experimental.{immutable_folder,python_wheel_wrapper,use_legacy_run_as,skip_artifact_cleanup,skip_name_prefix_for_schema}`, `experimental.pydabs.enabled`; - `replace_existing` on postgres branches, endpoints, databases and roles, and `purge_on_delete` on postgres projects and branches; - `bundle.deployment.fail_on_active_runs`. The last two groups already kept an explicit `false` through `ForceSendFields` declared for them (postgres projects and branches, `Deployment` from databricks#7117); with `*bool` those `ForceSendFields` go away. The postgres configs keep their `MarshalJSON`/`UnmarshalJSON`, which exist because they embed an SDK spec. Still plain `bool`: `bundle.force` (readonly, set from `--force`), and three fields whose struct's `ForceSendFields` covers more than the bool (`lifecycle.prevent_destroy` with `depends_on`, `presets.artifacts_dynamic_version` with the other presets, `dashboards.*.embed_credentials`, which the direct engine passes to the dashboards API). `TestConfigBoolsArePointers` fails for any other `bool` in a CLI-defined config struct. ## Tests `acceptance/bundle/validate/explicit_false`: explicit `false` values are kept, and a target overrides `true` with `false` for every field above that a target can set (on main the broken ones stay `true`). This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
denik
force-pushed
the
denik/bundle-bitmap
branch
2 times, most recently
from
November 17, 2026 13:36
9c777e4 to
6680bd0
Compare
…_sets triggers) Co-authored-by: Isaac <no-reply@databricks.com>
Each job with an ai_runtime_task now records its value, so a deploy with a scheduled and an unscheduled job reports both true and false, like *_lifecycle_started. Co-authored-by: Isaac <no-reply@databricks.com>
decode_json/to_json return the same object as `databricks bundle bitmap decode -o json`, and `python -m databricks.bundles._bitmap -o json` prints it byte for byte like the CLI. presence and invariant/validate_bitmap diff it against the CLI's JSON. Co-authored-by: Isaac <no-reply@databricks.com>
New fields from main (apps effective_resources and scan_*, pipelines testing, features iceberg_table_source, catalogs isolation_mode, environments image_uri), the [=true|false] bool flag help, and the blank line after a title. Co-authored-by: Isaac <no-reply@databricks.com>
Initialize ran after --var, --profile and the InitFuncs (--force, --force-lock, --fail-on-active-runs, --cluster-id), so passing a variable with --var set variables.*.value while BUNDLE_VAR_* did not. The bitmap now starts when the target is selected. Found by an adversarial review. Co-authored-by: Isaac <no-reply@databricks.com>
The type walk visits a flattened embed at its parent's path and a field together with an embedded field it shadows, so 132 of 5438 paths were repeats. update-schema dropped them in Merge; the schema does not change. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
A list field has no child but its elements, so the elements' subtree is keyed by the field name plus [*] and replaces the field's leaf. Co-authored-by: Isaac <no-reply@databricks.com>
P marks a present field, T and F the values a bool field held, and a space each that is not set, so a bool seen both true and false is one line instead of two. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
TestAiRuntimeTaskMetrics covers jobs that record both values. Co-authored-by: Isaac <no-reply@databricks.com>
Shows lifecycle.started recorded with both values. Co-authored-by: Isaac <no-reply@databricks.com>
Only the resources Python added were recorded. MarkChanges compares the config Python received with the result and marks what is new or different, so a field a mutator sets on a YAML resource counts, and the defaults that resource already had do not. Co-authored-by: Isaac <no-reply@databricks.com>
… diffs The encoded form carries the schema size, so generate-bitmap-schema now refreshes presence along with full. Co-authored-by: Isaac <no-reply@databricks.com>
Both decoders rejected a bitmap with more bits than their schema. They now render the fields they know and a placeholder for each set bit past the schema. bitmap/presence re-encodes its bitmap with two more fields and checks that the CLI and Python decoders agree. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
bitmap/presence already covers a bool with both values under a wildcard. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
schema.txt (357 KB) and the base64 copy in _schema.py (41 KB) become one raw DEFLATE file (29 KB), generated by genschema: the CLI embeds it and the databricks-bundles package ships the same bytes as package data. The listing in acceptance/bundle/bitmap/full is where a schema change is reviewed. Co-authored-by: Isaac <no-reply@databricks.com>
…dle_bitmap) Encoded at the end of the deploy, so it includes the telemetry flags only a deploy measures. Omitted when the config did not load: the bitmap starts once the target is selected. telemetry/deploy decodes the sent bitmap; telemetry/deploy-load-error covers the deploy that fails before the bitmap exists. Co-authored-by: Isaac <no-reply@databricks.com>
…the bitmap schema Co-authored-by: Isaac <no-reply@databricks.com>
denik
force-pushed
the
denik/bundle-bitmap
branch
from
November 20, 2026 17:55
14f8670 to
8320d43
Compare
…dle bitmap The dev deploy's telemetry event, with the encoded bitmap, is logged to LOG.telemetry.dev.json, and its decoded config fields must match bundle bitmap's. Co-authored-by: Isaac <no-reply@databricks.com>
An unparsable YAML file failed yamlfmt in lint. Co-authored-by: Isaac <no-reply@databricks.com>
…rement was The DABs telemetry pipeline reads bool_values as a map, so a key sent as true and then false kept false: a bundle with one started and one stopped app read as not started, and ai_runtime_task_scheduled flipped to false when any ai_runtime job was unscheduled (it was "any job is scheduled" on main). The bitmap still records both values. Co-authored-by: Isaac <no-reply@databricks.com>
…hema copy
- A bool set through ${variables.<name>.value} or ${variables.<name>.default}
recorded only its presence bit; it now records the value as ${var.<name>} does.
- TestPythonSchemaMatchesEmbedded fails when the databricks-bundles copy of
schema.deflate differs. A stale copy still decodes the bits it has, so the
decoder parity tests did not notice.
- Mark, MarkChanges and ResolveVariables do nothing on a nil Builder, so
`apps dev-remote` and `apps start` no longer panic after a load error.
- bundle_bitmap is omitted, not empty, when the configuration did not load.
Co-authored-by: Isaac <no-reply@databricks.com>
Deploy telemetry is logged after a failed load too, and it sent a bitmap of the root configuration with no target merged in (e.g. `-t missing`). Co-authored-by: Isaac <no-reply@databricks.com>
Bitmaps already sent are decoded by bit position, but the completeness check passed a reordered schema, and the goldens that list it are regenerated from it. update-schema --validate --base FILE checks that FILE's schema is a prefix; the validate-generated job runs it against main's schema.deflate (skipped until main has one). The bitmap command also reports a bundle that did not load instead of dereferencing its missing bitmap. Co-authored-by: Isaac <no-reply@databricks.com>
- A target that overrides a keyed list element (a job task with the same task_key, a job cluster, a pipeline cluster, ...) is concatenated by target selection and merged only in initialize, so the bitmap counted the base element's values too (a bool overridden true -> false recorded both). The load phase now marks the config with the same merges applied; resourcemutator.MergeKeyedLists exposes them, and the six merge mutators call the same functions. - The deprecated bundle.compute_id is renamed to cluster_id before the bitmap starts, so its bit could never be set. ComputeIdToClusterId now records where it was written, and the root or the selected target's counts. - An include glob that matches no file leaves no include list; the raw patterns are marked instead. Co-authored-by: Isaac <no-reply@databricks.com>
…g fixes - Encoding: "bm1.<size>.<base64>". The size outside the compressed payload lets DATA_SHAPE_DABS_BUNDLE_BITMAP in universe bound the length of the rest without decompressing it, so the bitmap survives centralization from FedRAMP workspaces, where a string without a data shape is redacted (about 0.9% of bundle deploys, including all of AWS GovCloud). Sizes are 1 to 32768 bits; MaxEncodedBodyLen matches the shape, and TestEncodeFitsShape checks Encode against a copy of it. Both decoders check the prefix against the payload. - Telemetry bits are named by the metric tag (telemetry.select_used), not the Go field name, so renaming a field keeps its bits. Nothing has shipped, so the schema is regenerated rather than appended to. - A quoted bool inside a complex variable records its value: variable values are coerced wherever they hold a bool, not only at the top. - A map key containing '.', '=', '[', ']' or '*' (a variable named "*.description", a key "enabled=true") can no longer name another schema entry. - What Python changed in a list: an element it kept is skipped wherever it moved, and keyed elements (task_key, job_cluster_key, ...) are compared with the element of the same key, so prepending or reordering no longer marks fields the CLI filled in. Co-authored-by: Isaac <no-reply@databricks.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Today each tracked DABs feature needs custom code (a key constant plus a SetBoolValue call), so only hand-picked features are tracked. The bundle bitmap encodes the presence of every bundle config field as one bit, derived by reflecting over config.Root, so all current and future fields are covered for free (http://go/dabs-telemetry).
Builds on #7412 (merged), which keeps an explicit
falseon optional config bools so the bitmap can record it.Changes
databricks bundle bitmapgroup:schema,bitmap -o compressed|text|json(compressed, the default, isbm1.<size>.<base64 of DEFLATE>),decode(stdin, same-o, defaults to text) andupdate-schema [--validate [--base FILE]]. The schema is append-only so bit positions stay stable;task generateappends new fields, and CI fails if main's schema is not a prefix of the branch's. It is stored once, compressed (bundle/bitmap/schema.deflate, 29 KB, embedded into the binary, and the same bytes in databricks-bundles); acceptance/bundle/bitmap/full lists it with each field's bit for review. Bool fields also record their value.bundle.compute_idand include globs that match nothing still count. The Python mutator marks what Python wrote (the resources it adds and the fields it sets on existing ones, compared with the config it received; list elements are paired by key, and ones it kept are skipped wherever they moved). The end of Initialize fills in the values of fields set through${var.*}or${variables.*}(so a bool set through a variable records its value, also when quoted, and a complex variable records the fields inside it).bundle.target/bundle.environmentare left out: target selection sets them on every bundle.bundle.Telemetrystruct (metrictags): one assignment per call site instead of a key constant plus SetBoolValue. Flags measured per artifact or per resource are aBoolSet(SetBool(v)):bool_valueskeeps one entry per key, true if any measurement was (*_lifecycle_startedused to take a random resource's value;artifact_*_is_setno longer repeats once per artifact), and the bitmap records each value taken. Otherwisebool_valueskeeps the same entries, now in field order. Telemetry bits are named by the metric tag (telemetry.select_used), so renaming a Go field keeps its bits.bundle_deploy_event.bundle_bitmap, encoded at the end of the deploy so it includes the flags only a deploy measures; omitted when the config did not load or the target does not exist. The size before the payload lets a data shape bound its length without decompressing, so the field survives centralization from FedRAMP workspaces, where strings without a shape are redacted (about 0.9% of bundle deploys, including all of AWS GovCloud).databricks.bundles._bitmapin databricks-bundles: a self-contained decoder with the schema embedded (python -m databricks.bundles._bitmap [-o text|json]).Universe changes, separate PRs: the proto field (https://6.gitspoke.cloud.databricks.com/databricks-eng-ghes/universe/pull/60000592), the
DATA_SHAPE_DABS_BUNDLE_BITMAPshape it will be annotated with (https://6.gitspoke.cloud.databricks.com/databricks-eng-ghes/universe/pull/60001781), and a shape for the CLI version, which is also redacted on FedRAMP rows today (https://6.gitspoke.cloud.databricks.com/databricks-eng-ghes/universe/pull/60001712).Tests
Go and Python unit tests for presence, bool variants, variable spellings, Python list edits, the wire format and its decoders; TestEncodeFitsShape checks Encode against a copy of the universe shape for sizes up to 32768 bits. Load-phase tests cover target overrides of keyed lists,
compute_id, empty include globs and a missing target. acceptance/bundle/bitmap/presence pins the set bits of a fixture and checks that the CLI and Python decoders (text, JSON) reproduce it; bitmap/full records the whole schema with each field's bit, split per resource type; python/telemetry covers a Python-defined resource; telemetry/deploy decodes the bitmap a deploy sends, and telemetry/deploy-load-error a deploy that fails before the bitmap exists; invariant/validate_bitmap (local-only) runs validate on every invariant config and checks that both decoders reproduce the bits from the encoded bitmap.This pull request and its description were written by Isaac.