Skip to content

Sandbox: Use npm to create Qwik sandboxes#26340

Merged
JReinhold merged 1 commit into
nextfrom
jeppe/fix-qwik-sandbox
Mar 8, 2024
Merged

Sandbox: Use npm to create Qwik sandboxes#26340
JReinhold merged 1 commit into
nextfrom
jeppe/fix-qwik-sandbox

Conversation

@JReinhold

@JReinhold JReinhold commented Mar 6, 2024

Copy link
Copy Markdown
Contributor

What I did

Changed the script to use npm instead of yarn 1 to generate the before-storybook directory with Qwik. Qwik 1.5 removed support for Yarn 1 in their CLI.

See https://github.com/storybookjs/storybook/actions/runs/8165928805/job/22323853208#step:11:240

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for 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:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 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>

@JReinhold JReinhold self-assigned this Mar 6, 2024
@JReinhold JReinhold added build Internal-facing build tooling & test updates ci:daily Run the CI jobs that normally run in the daily job. maintenance User-facing maintenance tasks labels Mar 6, 2024
@JReinhold JReinhold marked this pull request as ready for review March 6, 2024 08:27
@JReinhold JReinhold requested a review from yannbf March 6, 2024 08:28
@yannbf yannbf changed the title Sandbox: Use npm to create qwik sandbox Build: Use NPM to create Qwik sandboxes Mar 6, 2024
'qwik-vite/default-ts': {
name: 'Qwik CLI Latest (Vite | TypeScript)',
script: 'yarn create qwik basic {{beforeDir}}',
script: 'npm create qwik basic {{beforeDir}}',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this a safe change? I wonder if this will work given that it will end up generating npm lock files, and further down the sandbox pipeline things might not work. Can you trigger the sandbox generation for this branch?

I honestly don't remember why we use Yarn 1 in the sandboxes, might be worth experimenting switching the Yarn version as well, maybe

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

is this a safe change? I wonder if this will work given that it will end up generating npm lock files, and further down the sandbox pipeline things might not work. Can you trigger the sandbox generation for this branch?

Did a temporary run here, looks like it worked fine. https://github.com/storybookjs/storybook/actions/runs/8171749412/job/22340650305#step:11:221

I honestly don't remember why we use Yarn 1 in the sandboxes, might be worth experimenting switching the Yarn version as well, maybe

It was probably the easiest, but I think it's pretty bad now, especially because StackBlitz doesn't like it too much (our StackBlitz runs npm install && yarn storybook 🙃)

I think the right thing to do here is to migrate sandboxes to npm - we don't need to prescribe users a certain package manager so the default should be fine. I tried this some month ago but weren't successful in a small timebox, I wanna try again though.

@JReinhold JReinhold changed the title Build: Use NPM to create Qwik sandboxes Sandbox: Use npm to create Qwik sandboxes Mar 6, 2024
@JReinhold JReinhold removed the maintenance User-facing maintenance tasks label Mar 8, 2024
@JReinhold JReinhold merged commit fc222b9 into next Mar 8, 2024
@JReinhold JReinhold deleted the jeppe/fix-qwik-sandbox branch March 8, 2024 08:56
@github-actions github-actions Bot mentioned this pull request Mar 8, 2024
22 tasks
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:daily Run the CI jobs that normally run in the daily job. empathy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants