ci: fix silently failing storybook build#12041
Conversation
7ccd255 to
055e744
Compare
Storybook tries to read stdin to when it fails (to get telemetry opt-in). If stdin is closed, it fails succesfully... Setting CI=true disable this behavior (and other similar ones), and it's a good practice to have it set anyway. Signed-off-by: Younes Khoudli <younes.khoudli@epita.fr>
055e744 to
3c73503
Compare
Synar
left a comment
There was a problem hiding this comment.
Nice find!
(I doubt generate licenses will fail any time soon, but I doubt giving it CI=true will cause any problem either ^^)
|
This sounds a bit fragile to me, setting Would (We should really report this as a storybook bug…) |
Well, this image is used in the CI, and is in fact the one used in production. (And I wouldn't expect most people to build it to dev on the frontend, this is what dev-front is for)
It would, but wouldn't catch other potential mishaps in other components. Maybe we should set both, wdyt?
We should indeed. I didn't dig deeper to see what the exact culprit was though. |
|
I'm working on a possible storybook side fix, but I'm unsure if it will be accepted |
|
See storybookjs/storybook#31781 There may be something deeper too. |
It's used by default when building OSRD.
We want the build to fail as expected outside of CI, too.
The logic to detect the |
This was merged, as soon as it gets released I'll open a bump pr |
Storybook tries to read stdin to when it fails (to get telemetry opt-in). If stdin is closed, it fails succesfully... Setting CI=true disable this behavior (and other similar ones), and it's a good practice to have it set anyway.
See https://github.com/OpenRailAssociation/osrd/actions/runs/15485923418/job/43600490309