Skip to content

perf(ui-test): reuse IDEs for notebook scenarios - #96

Merged
BartvHelvert merged 1 commit into
masterfrom
perf/ui-test-speed
Nov 6, 2026
Merged

BartvHelvert merged 1 commit into
masterfrom
perf/ui-test-speed

Conversation

@BartvHelvert

Copy link
Copy Markdown
Owner

What this changes

Notebook UI tests repeatedly start a backend and client with identical installations and settings. Reuse one pair for the class, reducing the original twelve pair startups to one while preserving separate JUnit cases. Each scenario closes editors, uses a fresh notebook URI, resets fixture state and execution order, and discards the pair after failure.

Keep log checks scoped to each scenario with per-file backend log offsets, including logs created later. Set Starter's working directory to the checkout root so its outputs match existing CI cache and artifact paths.

For two matching notebook scenarios, observed wall time fell from 96.64 s to 68.27 s (29.4%); recorded JUnit time fell from 84.303 s to 38.754 s. These are individual experimental runs, not a measured full-suite speedup. Candidate wall time includes source synchronization and recompilation; baseline called Gradle directly against an existing Linux copy. JUnit time excludes final class teardown, while wall time includes it.

Fixes #95

How it was tested

  • All UI launches ran in Ubuntu-24.04 under Xvfb at 1920x1080; none ran on the Windows host.
  • All 41 UI tests passed across resumed batches, including a new regression that executes a cell and verifies fresh notebook contents and execution state in the next scenario.
  • Final notebook class: 13 tests passed, 157.497 s recorded JUnit time, 180.17 s wall time.
  • Added and passed a backend-log regression covering multiple files, newly created logs, and nested frontend exclusions. Reran notebook undo after the final log change.
  • Full unit/integration suite ran once: 1,475 tests, zero failures/errors, nine skips. Eight skips are Windows-only; one socket LSP fixture lacked npm dependencies.
  • git diff --check passed.

WSL memory contention interrupted earlier UI batches, so verification combines saved passes rather than claiming one uninterrupted full run. An initial interrupted run logged an IntelliJ Java-plugin SDK initialization exception without a finalized JUnit failure; subsequent verification of the affected cases passed.

Checklist

  • Nothing is special-cased for one extension.
  • A new feature has a UI test.
  • No internal, override-only, obsolete or deprecated platform API.
  • docs/ is updated where behaviour changed, docs/status.md especially. Test harness only; fixture testing guide updated.
  • Third-party material keeps its notice and is listed in NOTICE.md. No third-party material added.

Repeated backend and client startup dominates notebook UI test time.
Share a pair across compatible scenarios, isolate notebook URIs and probe
state, and discard the session after failure. Preserve per-scenario log
checks with offsets for each backend log.

Run Starter from the checkout root so its cache and logs match CI paths.
Add notebook isolation and backend-log snapshot regression coverage.

Refs #95
@BartvHelvert
BartvHelvert merged commit a4f7b06 into master Nov 6, 2026
6 of 8 checks passed
@BartvHelvert
BartvHelvert deleted the perf/ui-test-speed branch November 6, 2026 21:07
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.

Reduce notebook UI test startup overhead

1 participant