Skip to content

Make tsconfig move lifetime test deterministic - #64081

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:fix-project-lifetime-config-race
Aug 28, 2026
Merged

Make tsconfig move lifetime test deterministic#64081
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:fix-project-lifetime-config-race

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This test is racy:

https://github.com/microsoft/TypeScript/actions/runs/33124839650/job/98700352742

=== Failed
=== FAIL: internal/project TestProjectLifetime/tsconfig_move_from_subdirectory_to_parent_via_didChangeWatchedFiles (0.44s)
    projectlifetime_test.go:406: assertion failed: 2 (int) != 1 (int)

=== FAIL: internal/project TestProjectLifetime (0.00s)

This is because we defer inferred cleanup until later, so we could observe it both ways. Make the test happier with this situation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Makes the project-lifetime test deterministic by explicitly waiting for background updates and validating deferred inferred-project cleanup.

Changes:

  • Adds a second source file to trigger cleanup.
  • Verifies project routing before and after deferred cleanup.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Aug 28, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Aug 28, 2026
Merged via the queue into microsoft:main with commit 8d8bdf9 Aug 28, 2026
25 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the fix-project-lifetime-config-race branch August 28, 2026 19:35
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants