-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Fix Storybook on CI #29162
chore: Fix Storybook on CI #29162
Conversation
Size Change: 0 B Total Size: 9.72 MB ℹ️ View Unchanged
|
037d456
to
7e0449e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, yes, thank you! However any way to not have 1128 changed files :eyes_shaking: :D
0df1613
to
44317f1
Compare
@mariusandra Oh yeah, it's better now, that was just me banging my head at the wall at 2 AM last night, it's better now |
@mariusandra Well, that didn't work, now no files have been committed... I will ping you once this is actually working |
e091d9c
to
1cd800b
Compare
1cd800b
to
9ce1f96
Compare
📸 UI snapshots have been updated71 snapshot changes in total. 0 added, 71 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
@mariusandra Working now, will merge it and let teams know about the regressions that this PR found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR fixes Storybook in CI by improving snapshot handling and server reliability.
- Added absolute path resolution for snapshots in
common/storybook/.storybook/test-runner.ts
usingpath.resolve()
to ensure consistent snapshot locations - Refactored snapshot functions into
takeSnapshotWithTheme
anddoTakeSnapshotWithTheme
for better code organization - Reduced wait timeout between snapshots from 2000ms to 100ms for faster test execution
- Implemented robust server startup process in
.github/workflows/storybook-chromatic.yml
with retry logic and health checks - Added detailed server diagnostics for troubleshooting failed CI runs
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, some don't look good at all, so that's why I'll tag teams in #tell-posthog-anything once this is finally merged, just getting it to stop to flap
06831ab
to
209c676
Compare
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
cf035d2
to
2029dcb
Compare
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated19 snapshot changes in total. 0 added, 19 modified, 0 deleted:
Triggered by this commit. |
Our paths were all messed up, let's fix that. I've also added some better debugging tooling to the job which should hopefully make debugging this easier in the future
68ba9ed
to
fb29904
Compare
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Problem
Storybook is broken
Changes
Fix it