← Back to Pull requests

[ZEPPELIN-6668] Add notebook route benchmark contract #5484

Closed
unknown closed this pull request without merging on Sep 27, 2026 08:34 UTC
View on GitHub
unknown unknown commented on Sep 14, 2026 14:51 UTC
Author

What is this PR for?


Add a reproducible benchmark contract for the notebook route, without committing baseline numbers (a follow-up records them).

Fixture: 100 paragraphs (80 TEXT, 10 TABLE, 10 collapsed), pinned by SHA-256
Ready condition: action bar visible, 100 paragraph containers, first Monaco editor attached
Runs: 10 cold (new context) and 10 warm (after one unrecorded prime), with raw samples, median, and p95
Bundles: raw and gzip sizes of the Angular entry chunks and React remoteEntry.js

Runtime metrics cover the Angular route only. The benchmark is excluded from the normal E2E run.

Most of the diff (3,319 of 3,957 added lines) is the fixture JSON. It is data, pinned by SHA-256 and checked for composition by validateFixture, so it does not need a line-by-line review. The code to review is about 590 lines under e2e/performance/, e2e/models/notebook-performance-page.ts, test/notebook-baseline.spec.ts and playwright.performance.config.js.

What type of PR is it?


Improvement

Todos


[x] Add a hash-pinned benchmark fixture
[x] Add the Playwright performance runner
[x] Validate the benchmark contract with unit tests

What is the Jira issue?


ZEPPELIN-6668

How should this be tested?


cd zeppelin-web-angular
npm run test:shell -- test/notebook-baseline.spec.ts
# against an isolated Zeppelin serving the `npm run build` output
PLAYWRIGHT_BASE_URL=http://localhost:8080 PERF_NOTEBOOK_DISPOSABLE=1 PERF_NOTEBOOK_DRY_RUN=1 npm run perf:notebook-baseline

A local dry run passes (1 cold + 1 warm, every summary field recorded). Use localhost: the server rejects a 127.0.0.1 WebSocket origin unless zeppelin.server.allowed.origins is set.

Screenshots (if appropriate)


N/A

Questions:


Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? Yes - e2e/performance/README.md

Diff: 242 lines (+181 / -61) across 3 files Reviewer: tbonelee Review duration: 18343m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 242 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.329
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5484"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 38.8% (MEDIUM) · Higher = larger blast radius
38.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.3% · Safe to merge
15.3%