Repository navigation
perf(ui-test): reuse IDEs for notebook scenarios - #96
Merged
Merged
Conversation
4 tasks
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
force-pushed
the
perf/ui-test-speed
branch
from
November 6, 2026 21:05
cb9f12c to
3f8a978
Compare
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.
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
git diff --checkpassed.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
Test harness only; fixture testing guide updated.docs/is updated where behaviour changed,docs/status.mdespecially.Third-party material keeps its notice and is listed inNo third-party material added.NOTICE.md.