Registry Mirror
Skip to content

Conversation

@misha-db

Copy link
Copy Markdown
Contributor

…e stderr

The email rule in redactSetupStderr used unbounded + quantifiers:

/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g

On a long @-less run of characters — e.g. a 50k-char uv resolution dump — the unanchored match backtracks quadratically at each position hunting for the missing @. That took ~1.6s locally and blew past Mocha's 5000ms timeout on slower Windows CI, making reportSetupIssue.test.ts flaky.

Bound the quantifiers to RFC limits (local part ≤64, domain ≤255, TLD 2–24). Real-email matching is unchanged; pathological input now runs in linear time (~1.6s → ~11ms).

Changes

Tests

…e stderr

The email rule in redactSetupStderr used unbounded `+` quantifiers:

    /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g

On a long `@`-less run of characters — e.g. a 50k-char uv resolution dump —
the unanchored match backtracks quadratically at each position hunting for
the missing `@`. That took ~1.6s locally and blew past Mocha's 5000ms
timeout on slower Windows CI, making reportSetupIssue.test.ts flaky.

Bound the quantifiers to RFC limits (local part ≤64, domain ≤255, TLD
2–24). Real-email matching is unchanged; pathological input now runs in
linear time (~1.6s → ~11ms).
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2202
  • Commit SHA: bf256ce83903a729b7336500b69fac93983de556

Checks will be approved automatically on success.

@rugpanov

Copy link
Copy Markdown
Contributor

🤖 Integration tests running for bf256ce8 — ⏳.
View run

@misha-db
misha-db merged commit 7bbc670 into main Sep 18, 2026
9 checks passed
This was referenced Sep 25, 2026
abdelrahmanomar1515 pushed a commit that referenced this pull request Sep 25, 2026
## packages/databricks-vscode
##  (2026-09-25)

* Add a setting to override CLI path (#2205)
([d5ea7eb](d5ea7eb)),
closes
[#2205](#2205)
[#2199](#2199)
* Add HTTP proxy and corporate-CA support for SDK and bundled CLI
(#2178)
([dd8a1c8](dd8a1c8)),
closes
[#2178](#2178)
* Pin VSCode version to 1.138.0 for tests (#2207)
([8501f9d](8501f9d)),
closes
[#2207](#2207)
[/github.com/databricks/databricks-vscode/blob/7bbc6700519ac4413c6adcf8bad83792ab26b658/packages/databricks-vscode/src/bundle/BundlePipelinesManager.ts#L599](https://github.com//github.com/databricks/databricks-vscode/blob/7bbc6700519ac4413c6adcf8bad83792ab26b658/packages/databricks-vscode/src/bundle/BundlePipelinesManager.ts/issues/L599)
* Update Databricks CLI to v1.18.0 (#2209)
([b90792c](b90792c)),
closes
[#2209](#2209)
* fix(python-setup): bound email-redaction regex to avoid ReDoS on larg…
(#2202)
([7bbc670](7bbc670)),
closes
[#2202](#2202)



## packages/databricks-vscode-types
##  (2026-09-25)

Co-authored-by: releasebot <noreply@github.com>
@louis-johnston-db
louis-johnston-db deleted the fix-email-regex-performance branch November 25, 2026 15:59

This branch was previously deployed

1 inactive deployment
test-trigger-is — bf256ce8 Deployed Sep 18, 2026 by misha-db via Trigger Tests #2172
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.

2 participants