Skip to content
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

Build: Add parallelism count check to CI #23839

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Aug 15, 2023

Closes #

What I did

Whenever we add sandboxes, we keep forgetting to update the parallelism count in circle CI config, which sucks.

I added a script that reads config.yml values and checks for that and makes CI fail early, so we never get into a situation where we merge work with incorrect parallelism again.

I also renamed the "script-unit-tests" job to "script-checks" to make it have a more generic purpose, and I know we'll end up adding more things to it as well later.

To test this out, you can run yarn get-template --check yourself while playing with the parallelism values in config.yml or playing with the sandboxes in sandbox-templates.ts and get feedback locally:

image

Or see an actual CI failure by clicking here
image

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli/src/sandbox-templates.ts
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "build", "documentation", "maintenance", "dependencies", "other"]

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

@yannbf yannbf added the build Internal-facing build tooling & test updates label Aug 15, 2023
@yannbf yannbf force-pushed the yann/add-parallelism-count-check branch from 6e05cb2 to b28e54f Compare August 15, 2023 12:30
@yannbf yannbf force-pushed the yann/add-parallelism-count-check branch from 6a3116a to 51c9088 Compare August 15, 2023 13:07
@yannbf yannbf force-pushed the yann/add-parallelism-count-check branch from 51c9088 to c6be00e Compare August 15, 2023 13:15
@yannbf
Copy link
Member Author

yannbf commented Aug 15, 2023

CI for this PR will be hanging because ci/circleci: script-unit-tests is expected, the reason is because I renamed the job to script-checks but the Github required check contains script-unit-tests. This would need to be changed after this PR gets merged.

Copy link
Contributor

@kasperpeulen kasperpeulen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yannbf yannbf merged commit f495b35 into next Aug 16, 2023
@yannbf yannbf deleted the yann/add-parallelism-count-check branch August 16, 2023 09:09
@yannbf yannbf added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Aug 16, 2023
storybook-bot pushed a commit that referenced this pull request Aug 16, 2023
…-check

Build: Add parallelism count check to CI
(cherry picked from commit f495b35)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates ci:normal patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants