Skip to content

Fix pydabs acceptance test regex to match v1.x bundle versions#5294

Merged
pietern merged 1 commit into
mainfrom
debug-v1.0-test-failure
May 21, 2026
Merged

Fix pydabs acceptance test regex to match v1.x bundle versions#5294
pietern merged 1 commit into
mainfrom
debug-v1.0-test-failure

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented May 21, 2026

The acceptance/bundle/templates/pydabs/test.toml replacement regex only matched databricks-bundles==0.x.y, so after the v1.0.0 release the wheel version 1.0.0 slipped through unredacted and the recorded output (databricks-bundles==x.y.z) no longer matched.

Broaden the regex to \d+\.\d+\.\d+ (and escape the dots) so any future version is normalized.

The replacement regex only matched databricks-bundles==0.x.y, so after
the v1.0.0 release the wheel version 1.0.0 slipped through unredacted
and the recorded output no longer matched.

Co-authored-by: Isaac
@pietern pietern temporarily deployed to test-trigger-is May 21, 2026 09:08 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is May 21, 2026 09:08 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@janniklasrose janniklasrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

funny!

Cloud = false

[[Repls]]
Old = '"databricks-bundles==0.\d+.\d+"'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have other places where we might do the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seemed to be the only test that failed on main, so I think not. Let's see if main goes back to green.

@pietern pietern merged commit a8f7a13 into main May 21, 2026
28 of 30 checks passed
@pietern pietern deleted the debug-v1.0-test-failure branch May 21, 2026 09:28
TanishqDatabricks pushed a commit to TanishqDatabricks/cli that referenced this pull request May 22, 2026
…ricks#5294)

The `acceptance/bundle/templates/pydabs/test.toml` replacement regex
only matched `databricks-bundles==0.x.y`, so after the v1.0.0 release
the wheel version `1.0.0` slipped through unredacted and the recorded
output (`databricks-bundles==x.y.z`) no longer matched.

Broaden the regex to `\d+\.\d+\.\d+` (and escape the dots) so any future
version is normalized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants