Skip to content

Commit eec17f1

Browse files
authored
Revert recent changes (#134)
1 parent d448409 commit eec17f1

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/checkGithubRepos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const [,, entrypoint, oldTsNpmVersion, newTsNpmVersion, repoListPath, workerCoun
1212

1313
mainAsync({
1414
testType: "github",
15-
tmpfs: false,
15+
tmpfs: true,
1616
entrypoint: entrypoint as TsEntrypoint,
1717
diagnosticOutput: diagnosticOutput.toLowerCase() === "true",
1818
buildWithNewWhenOldFails: false,

src/checkUserTestRepos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const [,, entrypoint, oldTsRepoUrl, oldHeadRef, prNumber, buildWithNewWhenOldFai
1212

1313
mainAsync({
1414
testType: "user",
15-
tmpfs: false,
15+
tmpfs: true,
1616
entrypoint: entrypoint as TsEntrypoint,
1717
oldTsRepoUrl,
1818
oldHeadRef,

src/main.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,6 @@ export async function getTscRepoResult(
518518

519519
const buildStart = performance.now();
520520
try {
521-
// Force add all of the ignored files we just installed so we can git clean to go back to this state later.
522-
console.log("Staging installed files");
523-
await execAsync(repoDir, "git add --force .");
524-
525521
console.log(`Building with ${oldTscPath} (old)`);
526522
const oldErrors = await ge.buildAndGetErrors(repoDir, monorepoPackages, isUserTestRepo, oldTscPath, executionTimeout, /*skipLibCheck*/ true);
527523

@@ -562,10 +558,6 @@ export async function getTscRepoResult(
562558
summary += `**${oldFailuresMessage}**\n`;
563559
}
564560

565-
console.log("Restoring repo to post-install state");
566-
await execAsync(repoDir, "git restore .");
567-
await execAsync(repoDir, "git clean -xdff");
568-
569561
console.log(`Building with ${newTscPath} (new)`);
570562
const newErrors = await ge.buildAndGetErrors(repoDir, monorepoPackages, isUserTestRepo, newTscPath, executionTimeout, /*skipLibCheck*/ true);
571563

@@ -675,11 +667,6 @@ export async function getTscRepoResult(
675667
return { status: "Unknown failure" };
676668
}
677669
finally {
678-
console.log("Unstaging installed files");
679-
await execAsync(repoDir, "git restore .");
680-
await execAsync(repoDir, "git clean -xdff");
681-
await execAsync(repoDir, "git restore --staged .");
682-
683670
logStepTime(diagnosticOutput, repo, "build", buildStart);
684671
}
685672

0 commit comments

Comments
 (0)