Skip to content

Epic: tests give faster feedback with less redundant work #1849

Closed
89 of 89 issues completed
Closed

Description

@schlessera

Outcome

Offline CI and local tests provide the same meaningful product, security and compatibility evidence with less elapsed time and repeated work. Each guarantee is tested at the lowest sufficient level, with representative integration proof connecting detailed lower-level coverage to the real application. Environment lifetimes match test intent and safely amortize setup through sharing, private cloning or complete reset. Scenario matrices are justified by independent failure modes; theme parity is covered centrally in Storybook rather than multiplying unrelated runtime scenarios. Fast feedback, expensive final confirmation and endurance have separate execution controls; endurance can run alongside ordinary proof.

Why now

The maintainer requested a full duration catalog, then selected separating connection recovery from light/dark parity and asked for an optimization epic with scoped issues, without implementing changes yet. The offline local profile at 5cf1d548f7bd3a314eb36394dc5db0268db97da6 measured a recording-cap test at 602.65 seconds and four equivalent ten-disconnect scenarios at 92.86–94.57 seconds each. Successful exhaustive CI run 38549344893 took 27m40s across selected jobs and about 157.6 runner-minutes. Individual test-body time, setup/build time, job wall time and aggregate critical path are distinct measurements.

Current state — 2026-11-08

The earlier optimization and test-value implementation children are closed. Delivered recovery paths, centralized Storybook theme parity, the recording correctness/endurance split, invocation-level builds and attributed wait/weight work retain the evidence and limits recorded on their children and in the dated comments here. All 15 test-value children are closed through merged #3164 (e09ae24b9cdc6322586f75a13493212e7ac22cdb). These are separately attributed deliveries; this tracker reconciliation supplies no controlled whole-CI benchmark.

#2763 delivered the 2026-11-02 acceptance audit, including source/runner identities, uncontrolled before/after figures, the coverage map and per-bullet verdicts. The maintainer's same-day ruling selected Q1 C (browser/layout/visual theme-loop classification belongs to standalone #3331) and Q2 B (the later waits must be re-censused and classified under #3332 before this epic closes). The proposed standing attribution guard was not selected.

The integration batch #3517, merge 7253b93ddb0e092fb3824b726ca83c2f0ac20c0f, and the runtime theme reduction #3345, squash 0b02f10f25ac50c3477920e481809b2e25b13fb8, are both ancestors of inspected main 35217d283b849b5ef81700d5d4c2ec7486405d12. #2550 and #3329 are closed as completed. The contributor recipe now requires a successful attributed attempt with every configured shard fresh and successful (CONTRIBUTING.md:290-297; PROOF_SHARDS, scripts/proof-shards.ts:3; refreshBrowserCosts, scripts/refresh-browser-costs.ts:15-34). The two remaining Cartesian runtime families use paired cells with central consumer-story theme coverage. #3332's selected re-census/replacement outcome is now delivered through #3719 (5de219acf); its measurement limits and separately filed production follow-up #3716 remain distinct.

The two formerly open delivery children have completed: #3238 through #3336 (37123c8e5), and #3332 through #3719 (5de219acf), both ancestors of inspected main. Their completion receipts keep exact candidate/source/measurement attribution; the estimated serial whole-run figure in #3238 is not a measured comparable full base total. No standing attribution guard (Q2 option C) is approved.

Native membership is reconciled to the intended #3436 shared-host cleanup investigation (confirmed no prior parent). With that attachment, the list has 90 direct children and one open: #3436, whose original two failures and case-independence attribution remain needs: repro. No new natural failure or whole-epic performance result is claimed.

The audit's numerical comparisons retain their original source/runner identities and uncontrolled status. Its historical unmet verdicts identify the state at that audit; later delivery above resolves only the named outputs. Final closure still needs every native outcome, retained assertion mappings and the complete definition of done, including selected proof on the delivered source. This triage supplies no new runtime, hosted qualification or performance measurement.

Shared context

Constraints and non-goals

Preserve unique behavioral assertions, justified responsive/pointer/auth/backend cases, offline guards, native browser proof, lifecycle cleanup, production limits, contract envelopes, pinned images, default discovery and required proof gates. Remove redundant parameter combinations only with an assertion-to-coverage mapping. Any change to a currently required endurance obligation or decision record must explicitly reconcile that obligation, not silently skip it. Do not add a blanket passing-test cache, shorten product deadlines, increase concurrency or shard counts without evidence, or make provider calls. Paid opt-in image-provider tests remain cataloged as unmeasured.

Breakdown

The native sub-issue list is the plan and progress record. #3238 and #3332 have delivered their selected outputs; #3436 owns the remaining shared-host cleanup/attribution investigation described above. #2550's recipe and #3329's runtime theme reductions are delivered on main; #2763's acceptance audit and the maintainer's Q1/Q2 ruling remain the acceptance baseline. The audit's browser/layout/visual theme-loop follow-up #3331 stays outside this epic. Any further unmet definition-of-done bullet needs an explicit owner rather than an inferred completion claim.

Definition of done

  • Every native child is complete and its assertion mapping explains what was retained, moved or deduplicated. Remaining genuine theme-specific checks state a concrete reason.
  • Shared/cloned/reset environments have measured benefit and proven case independence, dirty/failure cleanup and resource ownership. Tests whose intent is startup, isolation or teardown retain the required fresh lifecycle.
  • Detailed variants use unit/component/small integration proof where sufficient; a documented guarantee/boundary map explains how representative E2E coverage completes the proof. No unique guarantee disappears through sampling or weaker doubles.
  • Storybook owns reusable light/dark layout and interaction parity, with meaningful failing-first/mutation evidence and accessibility checks in both themes.
  • Runtime suites preserve independent failure-mode coverage without an automatic Cartesian theme multiplier.
  • Every deliberate wall-clock wait has a named temporal assertion, minimum justified duration and reason controlled time/completion signals cannot provide equivalent proof; expensive real-time confirmation follows the explicit tier policy.
  • Recording limit correctness has fast proof; any remaining real-time endurance coverage has an explicit purpose and reviewed execution policy.
  • Intermediate pushes use the fast tier; expensive final confirmation proves the exact candidate. Endurance is independently discoverable/scheduled, runs alongside other proof under measured resource bounds, and does not distort ordinary sharding.
  • Comparable before/after results record source, runtime, resources, individual durations, setup, total runner consumption and CI critical path. Report savings and remaining bottlenecks without treating historical different-SHA runs as a controlled benchmark.
  • All required selected checks pass on the delivered source. Closed children alone do not establish performance improvement or retained coverage.

Unscheduled tracking work; no release milestone is selected.

2026-10-24: rewrote the body to the current outcome and remaining obligations; added #2763 to own the coverage/performance acceptance audit that no child owned; the dated reconciliations that were in the body are preserved in a comment.

2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Refreshed moved current-source pointers by inspecting their named anchors. Historical receipts retain their source identities; scope, rulings, priorities and outstanding prerequisites are preserved. No runtime result or readiness is inferred from this navigation repair.

2026-10-26: reconciled the 15 native test-value follow-ups from the 2026-10-25 review. Earlier implementation receipts remain historical evidence; current open work and final acceptance are distinguished. No source/test behavior or measured CI result changed in this tracker update.

2026-10-29 triage at main cb5db6e901e9d3d312bd3a125e03be6140faf98f: Verified the current named source anchors and repaired navigation; historical receipts and unresolved prerequisites retain their source identities. No runtime qualification or epic completion is inferred.

2026-11-02 triage at main a84d9bfbcb4e608b504aa0a9feb1144ad9a0b77e: Reconciled the 15 test-value closures with merged #3164 and the remaining native #3238 scope, and refreshed moved current-source anchors. Historical receipts, proof limits and the full definition of done remain; no new runtime or aggregate speedup is claimed.

Triage 2026-11-03 (main 3d3516a02): reconciled the current-state and breakdown paragraphs with #2763's delivered audit, the 2026-11-02 decision (#3329/#3332 attached, #3331 standalone) and the integration-branch state of #2550/#3329/#3332.

2026-11-05 triage at main 35217d283b849b5ef81700d5d4c2ec7486405d12: Folded the completed audit, recorded Q1/Q2 ruling and main-branch batch/theme deliveries into the current specification; reconciled all native children and refreshed the moved Storybook anchor. Historical measurements retain their attribution and limits. No new runtime proof, aggregate saving or epic completion is claimed.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Reconciled actual child closure/ancestry and intended native #3436 membership. Retained the full definition of done, uncontrolled timing limits and no epic readiness; closure is not inferred from child counts.

Activity

  1. added
    type: chore
    area: ui-react
    area: ui-kit
    area: ci
    epic
    on Oct 14, 2026
  2. 187 remaining items

  3. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Acceptance audit — 2026-11-02 (#2763)

    This comment is #2763's deliverable: before/after snapshots, comparisons, the coverage map and a verdict for each definition-of-done bullet. Evidence is archived at 1c377ca76ac98409937e9c97774f8a11377bc2c8 on archive/measurements (README, jobs, profiled tests). Every before/after figure below is uncontrolled. The two runs differ in source (19 days, about 3,900 more unit cases), runner image, Chrome and shard layout.

    1. Snapshots

    Baseline Comparison
    Source 5cf1d548f7bd3a314eb36394dc5db0268db97da6 8e9855e706ab43dc1bb5b822296f171431e2546d (main, contains #3164 e09ae24b9)
    CI run 38549344893 attempt 1, workflow_dispatch, exhaustive, success 41382713082 attempt 1, nightly schedule, exhaustive, success
    Runner image ubuntu-24.04 20261004.327.1 ubuntu-24.04 20261025.353.1
    Bun / Chrome 1.4.2 / 154.0.8037.97 1.4.2 / 156.0.8078.47
    Resources Runner label only; the run predates resource receipts 13 of 17 jobs record receipts: 4 logical CPUs and 15.6 GiB each

    The main tip c23a5811c has a green main-push run, 41490214079. It reused earlier proof and skipped every product job, so it is not a comparison snapshot. The epic's integration branch (3bee06dce, #2550) is not yet on main.

    2. Comparisons (hosted, uncontrolled)

    Category Baseline runner-min Comparison runner-min
    unit 83.58 (4 shards) 65.59 (4 shards, 2 workers each)
    layout 26.70 (2) 30.32 (2)
    browser 24.34 (2) 32.75 (3)
    endurance — (cap test was inside layout (2)) 12.42 (own job)
    runtime / runtime_host 9.15 2.65 + 10.23
    captures 9.35 7.90
    pack / verify / changeset / aggregate 2.68 / 1.10 / 0.47 / 0.27 2.83 / 1.15 / 0.68 / 0.27
    Total observed runner-minutes 157.63 (14 jobs) 166.78 (17 jobs)
    Setup steps (job setup, checkout, Bun, install, Chrome/namespace prerequisites) 4.85 5.50
    bun run build in pack 90 s 91 s
    Critical path (run start → aggregate end) 27.75 min: changeset → unit (2) 26.83 min → proof 18.42 min: changeset → unit (2) 17.32 min → aggregate

    Runtime-hook builds run inside each proof step and are not separately timed in either run.

    Originally profiled tests:

    Test Baseline (hosted run) Comparison (hosted run)
    Ten drop/reconnect continuity 4 cells, all in unit (1): 93.21, 92.88, 94.52, 94.88 s = 375.49 s 2 cells (#1851/#1905): 320 dark 37.05 s, 1280 light 25.18 s = 62.23 s
    Recording hard-cap the 10-minute-5-second fixture stops at the hard duration cap… 602.80 s inside layout (2); its file took 617.37 s for 41 cases Endurance ten-minute native endurance… 604.90 s in its own endurance job, ending at +13.20 min, off the critical path. Fast limit correctness in recording-limits.offline.tsx: 14 cases, 4.39 s. recordings.offline.tsx: 39 cases, 15.43 s.
    layout (2) job 19.62 min 13.55 min

    The original local profile (602.65 s; 92.86–94.57 s) was not re-measured. The only available host was shared with concurrent workers (load average 20–27 on 16 logical CPUs), and the original profile records no host or resource identity to match. The hosted figures above are the comparable pair. For a controlled comparison, run both SHAs back to back on one idle host.

    The critical path dropped from 27.75 to 18.42 min, mostly from unit workers (#2121) and moving endurance out of layout. Total runner-minutes rose by 9.15. Two new parallel jobs (endurance 12.42, runtime_host 10.23) and a third browser shard account for the rise, while unit inventory grew from about 13,195 to 17,055 cases. None of this is a controlled saving.

    Remaining bottlenecks at the comparison source:

    • unit (2) at 17.32 min sets the critical path, with layout (1) and unit (3) at 16.77 min.
    • Endurance takes 12.42 min, on a parallel path.
    • Theme-named browser cases: 4,609 of 10,713 hosted browser cases, 2,879 of 6,758 summed case-seconds (table). See ruling Q1.

    3–4. Coverage and completion verdicts

    Definition-of-done bullet Verdict Evidence / gap
    Every native child complete with an assertion mapping; remaining theme-specific checks state a reason Unmet 87 children: 82 completed, 2 closed not planned under maintainer rulings (#1912 2026-10-15, #2319 2026-10-22), and 3 open. #2550 is delivered on the epic branch and closes when the batch lands. #3238 is open. #2763 is this audit. Mappings: #1859 map, docs/process/theme-parity.md (continuity, replay, account/journal, artifact), #3164's owner/mutation table for the 15 test-value children. The theme gap in runtime suites is filed as #3329. The browser-project scope is ruling Q1.
    Shared/cloned/reset environments: measured benefit, independence, cleanup, ownership; lifecycle tests stay fresh Met #1856's lifecycle spike (keep per-file browser and fresh contexts; reject visible-store reset). #1857: immutable populated baseline; its main run failed on unrelated #1783, and later exhaustive runs pass. #1858: mean 43.11 → 32.97 s with fresh-mount/body/disposal mutations. #2458/#2320: build once per invocation.
    Detailed variants at the lowest sufficient level; guarantee/boundary map; no unique guarantee lost Met #1859 map → #1865. #3164 (e09ae24b9) gives every moved assertion a retained owner and a mutation receipt. #2977–#2981 deduplicated layout registrations or moved markup matrices to component tests while keeping native boundaries.
    Storybook owns light/dark parity with failing-first/mutation evidence and a11y in both themes Met #1850/#1861, #1871, #1873. In the comparison run, storybook and storybook-light each execute 1,011 cases under the preview a11y: "error" gate.
    Runtime suites keep failure-mode coverage without an automatic Cartesian theme multiplier Unmet → #3329 Continuity, journal live/replay/steering/conflict/memory and artifact families use paired cells. Two later families still run the full 320/1280 × dark/light matrix with no stated reason: answer-delivery-runtime.test.ts:337-340 (#1896) and turn-journal-runtime.test.ts:101 (#2214). That is 8 cases, 22.33 s (table).
    Every deliberate wall-clock wait has a named temporal assertion, minimum duration and reason; real-time confirmation follows the tier policy Met for the inventoried source; ruling Q2 for later source docs/process/test-waits.md and its inventory at 5dc2595c, with #1855, #2627–#2639 and #2647 (#1912 stopped by ruling). The same census expression matches 662 lines in 251 files at 5dc2595c and 1,310 lines in 443 files at the comparison source. 197 files match only at the comparison source, 183 of them newly added (list). These are unreviewed matches, not proven violations.
    Recording limits have fast proof; endurance has an explicit purpose and policy Met #1853/#1860/#1862. 14 fast limit cases take 4.39 s. Endurance (604.90 s) keeps sustained commits, full-length decode and cleanup in its own required job.
    Fast intermediate tier, exact-candidate confirmation, independently scheduled endurance within resource bounds, without distorting sharding Met #1854/#1862, #2111, #2118, #2363, #2400. At the comparison run, endurance ran alongside the other jobs: 12.42 min, sampled peak 3.5 of 15.6 GiB, finishing before the critical path. Operational note: the current controller incident #3321 cancels PR proof runs. That is an incident with its own owner, not a gap in this policy.
    Comparable before/after results with source, runtime, resources, individual durations, setup, runner consumption and critical path; savings and bottlenecks without a controlled claim from different-SHA runs Met Sections 1–2 above, all marked uncontrolled. The baseline's resource identity is limited to its runner label, and the local profile was not re-measured, for the reason given above.
    All required selected checks pass on the delivered source Unmet → #2550, #3238, #3329 The comparison source passes exhaustive proof. The delivered source is not yet complete on main: the epic batch (#2550) still has to land, along with #3238 and #3329. Closure needs a green exhaustive run on main containing them. Main was last red at c14846a66 (#3315); its tip c23a5811c is green by reused proof.

    Questions for the maintainer

    Q1 — Does the theme-reason bullet cover browser/layout/pointer/visual projects? 55 packages/ui-react/tests/browser/* files and 34 packages/ui-kit/tests/visual/* files loop over both themes. Theme-named cases are 4,609 of 10,713 hosted browser cases, and theme-parity.md gives reasons only for the families it maps.

    Q2 — Is the wait bullet a snapshot or a standing invariant?

    • A. Snapshot: met at the 5dc2595c inventory.
    • B. Re-census and classify the 197 later files at a current SHA as a new child under Epic: tests give faster feedback with less redundant work #1849, before closure.
    • C. B plus a standing guard that requires attribution for new real-time waits.
    • Recommendation: B. C adds a new policy and gate, so it needs its own ruling and issue.

    The epic closes after #2550, #3238 and #3329 land on main with a green exhaustive run, and after Q1/Q2 are ruled (B on Q2 adds one more child). #2763 makes no closure decision.

  4. added
    needs: decision
    on Nov 2, 2026
  5. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-02): Q1: option C. Theme loops in the browser, layout and visual projects are outside #1849; standalone issue #3331 tracks them. Q2: option B. The wait rule is standing, and child #3332 re-censuses the later waits before this epic closes.

  6. removed
    needs: decision
    on Nov 2, 2026
  7. added a commit that references this issue on Nov 4, 2026
  8. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-05 (inspected main 35217d283b849b5ef81700d5d4c2ec7486405d12)

    The acceptance audit #2763 and its Q1 C / Q2 B maintainer ruling are delivered. #2550 and #3329 are closed, and the #3517 batch and #3345 runtime theme reduction are verified ancestors of inspected main. The native list has 90 children, three open: #3238 (local unit-worker execution and required proof/timings), #3332 (remaining later-wait census work), and #3436 (parallel-session shared-host failure cleanup/attribution). Browser/layout/visual theme-loop classification #3331 stays outside this epic under the ruling.

    The historical before/after figures remain uncontrolled and attributed to their actual sources/runners. The complete definition of done and selected proof on the final delivered source still apply; this source/tracker reconciliation supplies no new runtime, aggregate saving or completion claim.

  9. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    2026-11-08: #3332 (the standing real-time wait census, ruling Q2 option B) closed with #3719 (5de219acf). The second re-census at a63e564f0 and its review are archived at e3b6a5063. Follow-ups: #3716 (production cancel gap) and the evidence added to #2855. A standing attribution guard (option C) is still unruled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: ui-kitarea: ui-reactepicpriority: p2type: chore

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions