Skip to content

Conversation

jakebailey
Copy link
Member

I believe that this should fix most of the weirdness seen in PR runs; we were running tsc twice, but the second run was different because it had the results of the first tsc run. Some repos have tsconfigs we heuristically choose to run which place files in weird places that affect other runs, so it's more desirable to go back to the same state when running a second time.

src/main.ts Outdated
if (gitAddInstalled) {
// Force add all of the ignored files we just installed so we can git clean to go back to this state later.
console.log("Staging all installed files");
await execAsync(repoDir, "git add --force .");
Copy link
Member Author

Choose a reason for hiding this comment

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

On second thought, I should probably just move this out into the tsc runner.

@jakebailey jakebailey merged commit 5bb6f7f into microsoft:main Feb 21, 2024
@jakebailey jakebailey deleted the clean-after-first-run branch February 21, 2024 23:52
jakebailey added a commit to jakebailey/typescript-error-deltas that referenced this pull request Feb 24, 2024
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.

2 participants