Repository navigation
Conversation
…directory Seven tests created their file in the system's temporary directory, which on macOS is under /var, a link to /private/var. IntelliJ resolves the link, and the test framework then failed the tests with 'File accessed outside allowed roots'. They passed on CI, but failed when run on a Mac. They now create the file in the test's own temporary directory, which the framework allows, and deletes.
Its download tasks look up an application service, so the test passed only after another platform test had started the application in the same JVM: run on its own, 16 of its tests failed. It now starts the test application itself.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1978 +/- ##
==========================================
+ Coverage 48.36% 48.42% +0.05%
==========================================
Files 810 810
Lines 32612 32612
Branches 5037 5037
==========================================
+ Hits 15774 15793 +19
+ Misses 14326 14315 -11
+ Partials 2512 2504 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two test problems that only show up locally: on a Mac, and when a test class runs on its own. CI passes either way, but a full local run on a Mac had 7 failures that could hide a real one.
Temporary files on macOS
Seven tests in
LSPIJUtils_applyWorkspaceEdit_{Go,TypeScript,Scala,Zig}TestandCommandExecutorTestcreated their file withFiles.createTempFile(null, …), in the system's temporary directory. On macOS that directory is under/var, a link to/private/var. IntelliJ resolves the link, and the test framework then failed the tests:They now create the file in the test's own temporary directory (
FileUtil.getTempDirectory()). The framework allows that directory, and deletes it after the test.InstallerTaskRegistryFileExistsTeston its ownIts download tasks look up an application service (
GitHubAssetFetcherManager), so the test passed only after another platform test had started the application in the same JVM. Run on its own, 16 of its 28 tests failed with aNullPointerExceptionfromApplicationManager.getApplication(). A@BeforeClassnow starts the test application, as a platform test's set-up does.How this was checked
mainand pass with this../gradlew test --tests '*InstallerTaskRegistryFileExistsTest'on its own: 16 of 28 fail onmain, and all 28 pass with this.