Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky simple-multi-def-test on windows #4270

Open
Tracked by #4193
soulomoon opened this issue May 29, 2024 · 1 comment
Open
Tracked by #4193

Flaky simple-multi-def-test on windows #4270

soulomoon opened this issue May 29, 2024 · 1 comment
Labels

Comments

@soulomoon
Copy link
Collaborator

soulomoon commented May 29, 2024

500 iterations successful in Macos
But the test case is fairy broken on windows, expecially if the load is high.
Only 6 iterations and I have the following error.

                             FAIL (50.62s)
        ghcide\test\exe\Config.hs:149:
        Expecting exactly one definition, got 0
@soulomoon soulomoon changed the title simple-multi-def-test Flaky simple-multi-def-test May 29, 2024
@soulomoon soulomoon changed the title Flaky simple-multi-def-test Flaky simple-multi-def-test on windows May 29, 2024
@soulomoon
Copy link
Collaborator Author

soulomoon commented May 30, 2024

Also sometime there is

FAIL (51.08s)
        ghcide\test\exe\CradleTests.hs:190:
        Got unexpected diagnostics for Uri {getUri = "file:///C:/Users/ares/AppData/Local/Temp/hls-test-root/extra-dir-855397965153/a/A.hs"} got [Diagnostic {_range = Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 1, _character = 0}}, _severity = Just DiagnosticSeverity_Error, _code = Nothing, _codeDescription = Nothing, _source = Just "compiler", _message = "C:\\Users\\ares\\AppData\\Local\\Temp\\hls-test-root\\.cache\\ghcide\\a-1.0.0-inplace-31dd3c0e3611799597711e4d9677c41f678e7865\\ext2B3D: renameFile:renamePath:MoveFileEx \"\\\\\\\\?\\\\C:\\\\Users\\\\ares\\\\AppData\\\\Local\\\\Temp\\\\hls-test-root\\\\.cache\\\\ghcide\\\\a-1.0.0-inplace-31dd3c0e3611799597711e4d9677c41f678e7865\\\\ext2B3D\" Just \"\\\\\\\\?\\\\C:\\\\Users\\\\ares\\\\AppData\\\\Local\\\\Temp\\\\hls-test-root\\\\.cache\\\\ghcide\\\\a-1.0.0-inplace-31dd3c0e3611799597711e4d9677c41f678e7865\\\\A.hie\": permission denied (Access is denied.)", _tags = Nothing, _relatedInformation = Just [DiagnosticRelatedInformation {_location = Location {_uri = Uri {getUri = "file:///C:/Users/ares/AppData/Local/Temp/hls-test-root/extra-dir-855397965153/a/A.hs"}, _range = Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 1, _character = 0}}}, _message = "GetModIfaceFromDisk"}], _data_ = Nothing}]

maybe related to dhall-lang/dhall-haskell#1904 haskell/directory#109
code in our code base

(write tempFilePath >>= \x -> renameFile tempFilePath targetPath >> atomically (resetInterfaceStore se (toNormalizedFilePath' targetPath)) >> pure x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant