GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(storybook): skip app-chunk warm-up in story tests by Storypapst · Pull Request #1983 · OpenResilienceInitiative/ORISO-Frontend

Conversation

@Storypapst

@Storypapst Storypapst commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Problem

The consent stories in RegistrationFlowSurface.stories.tsx fail intermittently (CI run 41296768319, PR #1976). On the last step, Registration warms the authenticated app when the browser is idle. In story tests that evaluates hundreds of unbundled modules, which blocks the page for 0.7–2.7 s. A story's findByRole('region', { name: 'Datenschutz' }) or its 15 s timeout runs out during that block.

Change

  • Add .storybook/noChunkWarming.ts: a spy-mode vi.mock that replaces only warmAppChunks and warmClosingDestination. This mirrors src/test/noChunkWarming.ts.
  • Import it from .storybook/vitest.setup.ts, before any product module loads.
  • No story or product code changes, and no assertion is loosened.

Verification

  • Red: unchanged story file, 10 runs of npx vitest run --project storybook src/components/registration/RegistrationFlowSurface.stories.tsx → 4 failed. Instrumented runs showed 0.7–2.7 s main-thread blocks inside the region wait.
  • Green: the same command, 12 runs with the fix → 11 passed, 0 story failures. The other run lost its browser connection under machine load average 28 (VITEST_BROWSER_CONNECTION_CLOSED).
  • npx prettier --check on both changed files passed.
  • npx tsc --noEmit reported no errors in the changed files.

Closes #1982
Part of OpenResilienceInitiative/ORISO-Admin#1269.

https://claude.ai/code/session_012oHuLwgsF18sXNLUVhMCvk


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@claude
test(storybook): skip app-chunk warm-up in story tests
2aaa43b
The last registration step warms the authenticated app when the browser
is idle (warmAppChunks, Registration.tsx:410). In the story tests that
import()s hundreds of unbundled modules, including the
@mui/icons-material barrel, whose evaluation blocks the page for 1-3 s.
It runs once per document, so it lands in whichever later story is
active: the consent stories' findByRole('region', Datenschutz) runs past
its 1000 ms default, or the story hits the 15 s test timeout.

Mirror src/test/noChunkWarming.ts for the storybook project: a spy-mode
mock replaces only warmAppChunks and warmClosingDestination. Every other
export, including the lazy-screen loaders, stays real. No story
assertion changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oHuLwgsF18sXNLUVhMCvk
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 107 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: OpenResilienceInitiative/ORISO-Frontend
  • Branch: claude/obp-dev-blockers-ync2mf-consent-story
  • File: .coderabbit.yaml
  • Commit: 11d3ee8
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 6f7c5ae2-a83c-4d0b-98c9-375c145a6d5c
Commits

Reviewing files that changed from the base of the PR and between 2aaa43b and 11d3ee8.

Files ignored due to path filters: 1
  • vitest.config.mts is excluded by none and included by none
Files selected for processing: 1
  • src/test/noLottie.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 1, 2026
View reviewed changes
@Storypapst Storypapst mentioned this pull request Nov 1, 2026
OBP 2.1 dev-test fixes (handover, deletion log, safeguard window, legal texts) OpenResilienceInitiative/ORISO-Admin#1269
Closed
73 of 83 tasks
@claude
test(unit): stand in for lottie-react in every unit test file
11d3ee8
lottie-web's 100 ms readiness interval outlived short test files' jsdom
("document is not defined") and failed the unit job although every test
passed. Ported from #1978 (issue #1977) so this PR is not blocked on it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oHuLwgsF18sXNLUVhMCvk
@Storypapst
Storypapst dismissed coderabbitai[bot]’s stale review via 11d3ee8 November 1, 2026 14:16
@Storypapst Claude

Storypapst commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

CI note on 2aaa43b: the unit job, lint, type-check, build and test frontend, failed on an unhandled ReferenceError: document is not defined. It comes from lottie-web's readiness timer, the known issue #1977, and is not caused by this PR. All 15 244 tests passed.

The fix is #1978, which is not merged yet. I ported it here as 11d3ee836; once #1978 is on dev, the ported commit changes nothing.


Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 1, 2026
Settings: show e-mail notification switches only where the Admin permissions allow e-mail #1981
Merged
test: consent-region story in RegistrationFlowSurface fails intermittently #1982
Closed
Show the full contact link and allow digits in its name #1985
Merged
Storypapst pushed a commit that referenced this pull request Nov 1, 2026
@claude
test(storybook): port the consent-story stabilisation from #1983
249bdb7
Same four files as ORISO-Frontend#1983 (noChunkWarming, vitest.setup,
noLottie, vitest.config.mts), identical content, so the Storybook job of
this PR is not held red by the known flaky "Abschluss — Zustimmung, mobil"
story. Becomes a no-op once #1983 merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oHuLwgsF18sXNLUVhMCvk
This was referenced Nov 1, 2026
ci(storybook): eight shards and forced Chromium GC against random disconnects #1989
Merged
fix(sessions-list): an asker's list refreshes after registration instead of staying empty (OBP #3) #1991
Merged
fix(chat): delete in the Teamberatung panel; deleted messages show at once (#1965) #1966
Merged
shazia-k
shazia-k approved these changes Nov 2, 2026
View reviewed changes
@shazia-k
shazia-k merged commit f6ba991 into dev Nov 2, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shazia-k
shazia-k deleted the claude/obp-dev-blockers-ync2mf-consent-story branch November 2, 2026 06:13
@Hassan9215 Hassan9215 mentioned this pull request Nov 5, 2026
Release Frontend v2.0.15 #2064
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Storypapst @shazia-k @claude
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.