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

chore(internal): setup turborepo #44

Closed
wants to merge 1 commit into from
Closed

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Oct 22, 2022

Things to explore

  • by how many minutes can we reduce C.I.?
  • improve DX of first-time contributors / how much of CONTRIBUTING.md can we automate?

Before:

After:

at the time of collecting these numbers, a lot of time is wasted due to excessive pnpm i runs due to the below linked issue.
Also, the setup-node action takes about 18-30s for every job, so if everything was instant, this step of each job would total to 8-10m -- combined with dependencies in general taking 10s, I'm not sure how much more room for improvement there is (aside from the bug getting fix (linked below))


after a pnpm install , can we have X "just work"?

  • pnpm start (watch mode all the things)
  • pnpm test (cli only, no server)

until the below issue is a fixed, a pnpm install is required after the initial pnpm install to re-sync pnpm.
Once done, the following is observed:

  • pnpm test
    • 21s initially
    • 236s subsequently
  • pnpm start - works, no turbo needed, because prepare ran after install

Things learned along the way:

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2022

@cloudflare-pages
Copy link

cloudflare-pages bot commented Oct 24, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9af1115
Status:🚫  Build failed.

View logs

@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2023

⚠️ No Changeset found

Latest commit: ae38789

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This is a squashed commit, for easier rebasing and conflict resolution.
Previous topics in now hidden commits:

chore(turbo): try suggestion from: vercel/turbo#2306 (comment) -- seems like resync finishes too early, and we need it to run specifically after the library build
chore(turbo, ci): setup turbo before pnpm install
chore(turbo): try cache-hit
chore(scripts): tidy up the start meta-script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant