-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
🛠 Tooling: End-to-end migration test lint takes a long time on coverage-migrate/ files #1131
Closed
3 tasks done
Labels
area: tooling
Managing the repository's maintenance
status: accepting prs
Please, send a pull request to resolve this!
Comments
JoshuaKGoldberg
added
area: tooling
Managing the repository's maintenance
status: accepting prs
Please, send a pull request to resolve this!
labels
Dec 30, 2023
3 tasks
JoshuaKGoldberg
added a commit
that referenced
this issue
Dec 30, 2023
…t-migrate (#1132) ## PR Checklist - [x] Addresses an existing open issue: fixes #1131 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Keeps them running on `./coverage`, then swaps that to `./coverage-*` later in the workflow. Comparing the performance of the two end-to-end test types from `main` (c06c62c): | Test | Baseline | Update | Δ | | ------------ | -------- | -------- | ---------------------- | | `initialize` | `1m 25s` | `1m 21s` | ~0% (near zero change) | | `migrate` | `2m 45s` | `30s` | 81% faster | Seems like this mostly improves migration. I guess initialization didn't have this bottleneck as badlly, and still runs the initialize script twice.
🎉 This is included in version v1.50.1 🎉 The release is available on: Cheers! 📦🚀 |
Regression: this is still happening. |
Ehh I'll file a new issue. The modifying of |
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: tooling
Managing the repository's maintenance
status: accepting prs
Please, send a pull request to resolve this!
Bug Report Checklist
main
branch of the repository.Overview
I noticed while tinkering with #1048 that
pnpm run test:migrate
spends a lot of time locally in "Cleaning up files". That log wraps around two commands:create-typescript-app/src/migrate/migrateWithOptions.ts
Lines 63 to 66 in c06c62c
I tried running
pnpm lint
locally... and it reported quite a few issues:Wow. It features lovely lines like this:
...along with roughly 73,000 more errors.
This explains the slowness! Because the migration script runs
pnpm lint --fix
when it's done, and the migration script puts coverage reports incoverage-migrate
... there's now a whole bunch of linting being done.Additional Info
Splitting this performance improvement task out of #860.
I'm not sure exactly what the right fix is here...
The text was updated successfully, but these errors were encountered: