Repository navigation
Read the test events of a pipeline update - #7432
Merged
Merged
Conversation
This was referenced Nov 10, 2026
Contributor
|
Commit: Regression test reportSelected 3 changed tests (limit=20, 0 not selected) 3 tests: regression=3 unreleased=0 coverage=0 failing=0
TestAccept/pipelines/databricks-cli-help: branch ✅ | main (dd65f08) ❌ | latest (v1.26.0) ❌main (dd65f08): latest (v1.26.0): TestAccept/pipelines/test/immutable: branch ✅ | main (dd65f08) ❌ | latest (v1.26.0) ❌main (dd65f08): latest (v1.26.0): same output as main (dd65f08) TestAccept/pipelines/test/selection: branch ✅ | main (dd65f08) ❌ | latest (v1.26.0) ❌main (dd65f08): latest (v1.26.0): same output as main (dd65f08) |
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-read-events
branch
from
November 10, 2026 06:02
2f0154d to
1154b5d
Compare
tharunbhuk-db
marked this pull request as ready for review
November 10, 2026 06:12
tharunbhuk-db
requested review from
rclarey
and removed request for
a team and
rclarey
November 10, 2026 06:12
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-bundle-key
branch
from
November 10, 2026 17:13
3535b9a to
7d64487
Compare
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-read-events
branch
from
November 10, 2026 17:13
1154b5d to
53b3c58
Compare
pranshupand-db
approved these changes
Nov 10, 2026
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-bundle-key
branch
from
November 11, 2026 00:04
7d64487 to
2a9fc81
Compare
idelafuente-oc
pushed a commit
to idelafuente-oc/cli
that referenced
this pull request
Nov 11, 2026
## 🥞 Stacked PR Use this [link](https://github.com/databricks/cli/pull/7297/files) to review incremental changes. - [**stack/pipelines-test-pr1-command**](databricks#7297) [[Files changed](https://github.com/databricks/cli/pull/7297/files)] ← _this PR_ - [stack/pipelines-test-bundle-key](databricks#7431) [[Files changed](https://github.com/databricks/cli/pull/7431/files)] - [stack/pipelines-test-read-events](databricks#7432) [[Files changed](https://github.com/databricks/cli/pull/7432/files)] - [stack/pipelines-test-print-results](databricks#7433) [[Files changed](https://github.com/databricks/cli/pull/7433/files)] - [stack/pipelines-test-pr2-output](databricks#7298) [[Files changed](https://github.com/databricks/cli/pull/7298/files)] - [stack/pipelines-test-a4-run-control](databricks#7426) [[Files changed](https://github.com/databricks/cli/pull/7426/files)] - [stack/pipelines-test-pr3-junit](databricks#7299) [[Files changed](https://github.com/databricks/cli/pull/7299/files)] - [stack/pipelines-test-junit-flag](databricks#7434) [[Files changed](https://github.com/databricks/cli/pull/7434/files)] --------- - Add `databricks pipelines test --pipeline-id <id> [TEST_SELECTION...]`: starts a test-only update and prints its IDs. - Experimental: runs only with `DATABRICKS_CLI_PIPELINES_TEST=true`. - Selections are workspace paths or paths relative to `root_path`, sent as typed. `--pytest-arg` accepts only `-k` and `-m`. Tests: unit tests; acceptance in `acceptance/pipelines/test/{arguments,pipeline-id,submit-error}`. This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
idelafuente-oc
pushed a commit
to idelafuente-oc/cli
that referenced
this pull request
Nov 11, 2026
## 🥞 Stacked PR - [stack/pipelines-test-pr1-command](databricks#7297) [[Files changed](https://github.com/databricks/cli/pull/7297/files)] - [**stack/pipelines-test-bundle-key**](databricks#7431) [[Files changed](https://github.com/databricks/cli/pull/7431/files)] ← _this PR_ - [stack/pipelines-test-read-events](databricks#7432) [[Files changed](https://github.com/databricks/cli/pull/7432/files)] - [stack/pipelines-test-print-results](databricks#7433) [[Files changed](https://github.com/databricks/cli/pull/7433/files)] - [stack/pipelines-test-pr2-output](databricks#7298) [[Files changed](https://github.com/databricks/cli/pull/7298/files)] - [stack/pipelines-test-a4-run-control](databricks#7426) [[Files changed](https://github.com/databricks/cli/pull/7426/files)] - [stack/pipelines-test-pr3-junit](databricks#7299) [[Files changed](https://github.com/databricks/cli/pull/7299/files)] - [stack/pipelines-test-junit-flag](databricks#7434) [[Files changed](https://github.com/databricks/cli/pull/7434/files)] --------- - In a bundle, identify the pipeline by KEY: `pipelines test [flags] [KEY] [TEST_SELECTION...]`. - Relative selections are local paths, mapped to their deployed paths. - A first argument that is not a KEY gets an error that names the bundle's pipelines and the working command. Tests: unit tests; acceptance in `acceptance/pipelines/test/{selection,immutable}`. This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-read-events
branch
from
November 16, 2026 22:19
53b3c58 to
6203ea4
Compare
readTestEvents reads every page of an update's events and keeps the test fields that the Go SDK event type does not have. It sends the SDK's ListPipelineEventsRequest and uses the filter of buildPipelineEventFilter. fetchAllPipelineEvents, which pipelines logs and run use, is not changed. testRun collects one result per test case and reports whether the results are complete. The command does not use them yet. Co-authored-by: Isaac <no-reply@databricks.com>
The Go SDK now has StartUpdate.test_only and test_options, so the test command calls w.Pipelines.StartUpdate instead of sending the request directly. The request body has the same fields and values. The only change is the key order inside test_options, which now follows the SDK type. Co-authored-by: Isaac <no-reply@databricks.com>
The short help says Experimental, like the long help and the gate. A selection outside the synced files, and a relative selection with workspace.sync_mode immutable, now say which /Workspace path to pass. Co-authored-by: Isaac <no-reply@databricks.com>
tharunbhuk-db
force-pushed
the
tharun/pipelines-test-read-events
branch
from
November 17, 2026 00:17
6203ea4 to
c1a1613
Compare
List Pipeline Events can return an empty page that still has a next_page_token. Follow the token until it is empty, so later events and the summary are not lost. Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
❌ Integration test reportCommit: bbfc78a
101 interesting tests: 88 FAIL, 12 RECOVERED, 1 KNOWN
Top 50 slowest tests (at least 2 minutes):
|
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.
🥞 Stacked PR
ListPipelineEventsRequestandbuildPipelineEventFilter. Existing code is not changed.w.Pipelines.StartUpdate: the Go SDK now hastest_onlyandtest_options. The body has the same fields and values; only the key order insidetest_optionsfollows the SDK type (one golden file).PipelineEventhas nodetailsororigin.test_case_id, which the test results come from.workspace.sync_mode: immutable, now say which /Workspace path to pass.Tests: unit tests, including 200 cases over 3 pages; acceptance
pipelines/test/*.This pull request and its description were written by Isaac.