Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(scripts): check:changed on Windows no longer spends minutes walking node_modules (2,500 s → 5.0 s) #32023

MergedPyseph(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/32023/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 84 additions and 14 deletions.

x
0 of 2 viewed, 2 left
42 additions and 2 deletionsscripts/check-changed.test.tsModified
View file
@@ -20,6 +20,7 @@
defaultConcurrency,
docReaderTests,
gitLines,
+ ignoredCheckInputs,
runSteps,
splitTests,
type Step,
@@ -297,16 +298,17 @@
​
-const compare = (root: string, ref: Option.Option<string>) =>
+const inFixture = <A, E>(effect: Effect.Effect<A, E, ChildProcessSpawner.ChildProcessSpawner>) =>
Effect.gen(function* () {
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
- return yield* comparisonBase(root, ref).pipe(
+ return yield* effect.pipe(
Effect.provideService(
ChildProcessSpawner.ChildProcessSpawner,
ChildProcessSpawner.make((command) => spawner.spawn(ChildProcess.setEnv(command, env))),
}).pipe(Effect.provide(NodeServices.layer), Effect.runPromise);
+const compare = (root: string, ref: Option.Option<string>) => inFixture(comparisonBase(root, ref));
​
it.each(["upstream", "team/upstream"])(
"compares against %s/main when the fork's origin/main lags it",