Skip to content

Release: v2.12.2#1990

Merged
rugpanov merged 3 commits into
mainfrom
releases/draft-7ac1a6d-1783505695
Jul 8, 2026
Merged

Release: v2.12.2#1990
rugpanov merged 3 commits into
mainfrom
releases/draft-7ac1a6d-1783505695

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Release: v2.12.2

Patch release — dependency/security maintenance and internal test/tooling upgrades. No user-facing feature changes.

User-relevant changes (bundled runtime dependencies)

Not in the changelog (internal only)

Dev/CI-only tooling upgrades (TypeScript 6, WebdriverIO v9, mocha 11, nyc, @typescript-eslint v8, @vscode/test-electron, fake-timers, glob, mock-require types, eslint-plugin-local-rules), e2e test flakiness fixes, and a CONTRIBUTING.md guide. These do not ship in the VSIX / are invisible to users.

Bundled Databricks CLI version unchanged (1.2.0).


Release tracked in DECO-27584.

web-flow and others added 2 commits July 8, 2026 10:14
Keep user-relevant runtime dependency bumps (bcryptjs, markdown-it,
shell-quote, @vscode/extension-telemetry); drop dev/CI-only tooling
upgrades and e2e test fixes. Strip Jira refs and auto-close trailers.
@rugpanov rugpanov temporarily deployed to test-trigger-is July 8, 2026 10:21 — with GitHub Actions Inactive
@rugpanov rugpanov requested a review from ilia-db July 8, 2026 10:22
@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🧪 e2e run for this release (v2.12.2): https://github.com/databricks-eng/eng-dev-ecosystem/actions/runs/28935507838

Triggered via vscode-isolated-pr against this PR @ 71b4298.

Note: this run lives in an internal repo, so the link is only accessible to Databricks engineers. Results will be summarized here — judged by which specs fail (known-flaky vs regression), not the run-level conclusion.

@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🔴 Hold — do not merge. The e2e run for this release is 0/34 shards passing on both Linux and Windows (not the usual known-flaky pattern). Root cause is a TypeScript 6 compile break from the TS 5.9.3 → 6.0.3 upgrade (#1981):

  • All e2e shards: scripts/setArchInPackage.ts(6,10): TS2339: Property 'option' does not exist (yargs default-export typing under TS 6). Fails in the test-setup step, so no specs run.
  • SDK-wrapper jobs: src/sdk-extensions/Cluster.integ.ts: TS2593: Cannot find name 'describe'/'it'/'before' (mocha global types don't resolve under TS 6).

Reproduced locally on this branch (TS 6.0.3) — deterministic, a re-run won't clear it. A fix (source/tsconfig) needs to land on main, then this release should be re-cut. Tracking under DECO-27584.

@rugpanov rugpanov marked this pull request as draft July 8, 2026 10:58
@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Fix for the TS6 e2e compile break is up: #1991. Once that merges to main, this release will be re-cut so e2e can run.

rugpanov added a commit that referenced this pull request Jul 8, 2026
## Why

The TypeScript 5.9.3 → 6.0.3 upgrade (#1981) left two test-tooling code
paths broken that `yarn build` and unit tests don't exercise. They only
run in the e2e workflow (`vscode-isolated-pr`), so the breakage surfaced
when cutting the **v2.12.2** release (#1990): **all 34 e2e/SDK shards
failed to compile** on both Linux and Windows.

## What broke

1. **`scripts/setArchInPackage.ts` + `scripts/setupCLIDependencies.ts`**
still used the pre-TS6 `await yargs.option(...)` pattern. Under TS6,
`import yargs from "yargs"` (which uses `export =`) resolves to the
callable factory type, not the `Argv` interface, so chaining `.option()`
fails with:
   ```
scripts/setArchInPackage.ts(6,10): error TS2339: Property 'option' does
not exist on type '(processArgs?: ...) => Argv<{}>'.
   ```
`setArchInPackage.ts` runs in the e2e **test-setup** step, which is why
every e2e shard died before any spec ran. #1981 already fixed this exact
pattern in `writeIpynbWrapper.ts` but missed these two.

2. **`packages/databricks-vscode/tsconfig.json`** got `"types":
["node"]` in #1981, which dropped the mocha ambient globals the SDK
integration tests (`src/sdk-extensions/**/*.integ.ts`) rely on:
   ```
src/sdk-extensions/Cluster.integ.ts: error TS2593: Cannot find name
'describe' / 'it' / 'before'.
   ```

## Fix

- Call `yargs(process.argv.slice(2))` first in both scripts (same fix
#1981 applied to `writeIpynbWrapper.ts`).
- Add `"mocha"` to the `types` array (mirrors how
`src/test/e2e/tsconfig.json` declares its test-framework types).

## Verification

- `yarn run build` — 0 errors
- `tsc --noEmit --project tsconfig.json` — 0 errors
- `ts-node ./scripts/setArchInPackage.ts …` — runs (was exit 1)
- `Cluster.integ.ts` — `describe`/`it`/`before` resolve
- `yarn fix` — clean

## Follow-up

Once merged, the **v2.12.2** release PR (#1990, currently in draft) will
be re-cut so its e2e run can actually execute. Tracked in DECO-27584.
@rugpanov rugpanov temporarily deployed to test-trigger-is July 8, 2026 11:26 — with GitHub Actions Inactive
@rugpanov rugpanov marked this pull request as ready for review July 8, 2026 11:26
@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Merged main (with the TS6 fix #1991) into this branch — now at 6a0068f. Re-running e2e against the updated branch.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

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: 1990
  • Commit SHA: 6a0068fab407e81c7939f3230442a2a87323258b

Checks will be approved automatically on success.

@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🧪 e2e re-run against 6a0068f (with the TS6 fix): https://github.com/databricks-eng/eng-dev-ecosystem/actions/runs/28938998447 — internal link, Databricks engineers only. Will judge specs against the known-flaky baseline.

@rugpanov

rugpanov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

✅ e2e re-run against 6a0068f: 32/34 pass (was 0/34 before the TS6 fix). The 2 remaining failures are both Windows-only terraform initregistry.terraform.io network flakes (refresh_resource_explorer_on_yml_change, run_dbconnect) — known-flaky, per the release SOP Windows-only terraform failures are OK to proceed. No new or product-related failures. Ready to merge.

@rugpanov rugpanov requested review from misha-db and removed request for ilia-db July 8, 2026 12:43
@rugpanov rugpanov merged commit 795d6b9 into main Jul 8, 2026
6 of 8 checks passed
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