Skip to content

[ExecaError: Command failed with exit code 1: 'yarn storybook --port 6006 --ci'](https://app.circleci.com/pipelines/github/storybookjs/storybook/112966/workflows/eacdcc92-7c73-48f4-9db6-14e3bb293d66/jobs/1011360/parallel-runs/0/steps/0-106) #33650

@ndelangen

Description

@ndelangen

Sometimes when we run e2e tests for dev, the part where we run the e2e "decided" to try and re-run storybook dev.

But because it's already running, the port is taken, and it errors out.

I believe there to be some race-condition.

I've tried adding an explicit wait-on step in Ci waiting for both dev to be available.

I looked into why the task system determines if dev is already running, but I couldn't find a bug.

const port = getDevPort(key);
return (await detectFreePort(port)) !== port;

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions