#Chromatic build is failing with Bitbucket pipeline

15 messages · Page 1 of 1 (latest)

merry hornet
lone sleet
#

Can you build the Storybook locally? with yarn build-storybook?

merry hornet
#

I am running this command locally ....
Also, wanted to ask, is it normal to take kinda 10 mins to build the stories?

lone sleet
#

No it is not. we fixed a performance regression in 7.0.3, could you try upgrading to that and see if that improves it?

merry hornet
#

It is done,

info => Output directory: /Users/hazemalabiad/getir/getirjobs-corporate-web/storybook-static
✨  Done in 359.35s.
#

But in cloud it is still failing

#

Here is my pipeline code

- step: &chromatic
        name: Publish to Chromatic
        image: node:18.15.0-alpine
        script:
          - apk update && apk add --no-cache git
          - yarn install
          - yarn chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --zip --only-changed --exit-zero-on-changes
merry hornet
#

@lone sleet Any idea? Can you help out please?

lone sleet
#

Can you try building storybook directly in CI instead of using the chromatic CLI, and see if that fails too?

merry hornet
#

This actually failed in the cloud

#

With the log that is attached in the first message

lone sleet
#

But your initial log is from running chromatic, could you try running build-storybook and see if that fails in the same way?

merry hornet
#

I run yarn build-storybook it worked perfectly without any issue.

merry hornet
#

Further more, the same code works for Github Actions, but, it does not for BitBucket pipeline

lone sleet
#

Alright. If it's specifically the chromatic command that's failing, I suggest you use the support chat on chromatic.com instead, as you'll reach the experts there, and reference the learnings from this thread