-
-
Notifications
You must be signed in to change notification settings - Fork 390
Multiple test failures in Gentoo's network sandbox #3126
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
Comments
Are these tests passing elsewhere? If so, can someone give me a link to where they are passing? |
They are passing in the Github CI. link |
Perhaps you want to test using the environment variables |
@wz1000, thanks for the hint about the environment variables. It looks like this has something to do with Gentoo's build sandboxing. All the tests pass when run outside the sandbox. I am seeing blocked network calls being logged. It looks like {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"message": "Error when calling cabal exec -v0 -- ghc --print-libdir\n\ndieVerbatim: user error (cabal: '/usr/bin/curl' exited with an error:\ncurl: (6) Could not resolve host: hackage.haskell.org\n)\n\n",
"range": {
"end": {
"character": 0,
"line": 1
},
"start": {
"character": 0,
"line": 0
}
},
"severity": 1,
"source": "cradle"
}
],
"uri": "file:///var/tmp/portage/dev-haskell/hls-eval-plugin-1.3.0.0/work/hls-eval-plugin-1.3.0.0/test/testdata/TLocalImport.hs",
"version": 0
}
} Full build log with |
It looks like I'm running into the same thing for {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"message": "Error when calling cabal exec -v0 -- ghc --print-libdir\n\ndieVerbatim: user error (cabal: '/usr/bin/curl' exited with an error:\ncurl: (6) Could not resolve host: hackage.haskell.org\n)\n\n",
"range": {
"end": {
"character": 0,
"line": 1
},
"start": {
"character": 0,
"line": 0
}
},
"severity": 1,
"source": "cradle"
}
],
"uri": "file:///var/tmp/portage/dev-haskell/hls-module-name-plugin-1.1.0.0/work/hls-module-name-plugin-1.1.0.0/test/testdata/canonicalize/Lib/A.hs",
"version": 0
}
}
This test passes outside of the sandbox. |
hls-eval-plugin
test failures on Gentoo Linux
There are more seemingly-related test failures, this time from
(Three tests fail regardless of the network-sandbox. See #3221.) Full build log (raw file is ~15MB) |
The problem is that Tasty runs test in parallel by default, and most HLS test suites do not handle this well. Set TASTY_NUM_THREADS to 1 |
Did you try Pepe's suggestion? did it help? |
Closing as old and quiet. |
Possibly related, I was unable to start HLS in emacs without being online:
then I connected (now in the terminal) and saw that it complained about cabal not being updated: $ haskell-language-server-wrapper
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 2.0.0.0 x86_64 ghc-9.2.8
Current directory: /home/me/foo
Operating system: linux
Arguments: []
Cradle directory: /home/me/foo
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.12.1.0
stack: 3.1.1
ghc: 9.2.8
Consulting the cradle to get project GHC version...
2025-03-29T08:24:48.403936Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
Failed to find the GHC version of this Cabal project.
Error when calling cabal exec -v0 -- ghc --print-libdir
Error: [Cabal-7160]
The package list for 'hackage.haskell.org' does not exist. Run 'cabal update' to download it. I don't understand why it needs to do that. Anyway, I did (Yes I should update HLS, I haven't found time to test on the newest, but hopefully this helps anyone looking for the same error message.) |
I am getting a lot of test failures from the
hls-eval-plugin
test suite using 55d9024:Full build log is here.
Your environment
GHC 9.0.2 on Gentoo Linux. All packages are installed through the system package manager.
I am building the following packages from 55d9024:
ghcide
haskell-language-server
hls-alternate-number-format-plugin
hls-change-type-signature-plugin
hls-code-range-plugin
hls-eval-plugin
hls-floskell-plugin
hls-fourmolu-plugin
hls-graph
hls-hlint-plugin
hls-plugin-api
hls-rename-plugin
hls-retrie-plugin
hls-test-utils
I am building the rest from Hackage with the following versions (let me know if you need more):
aeson-2.0.3.0
data-default-0.7.1.1
diff-0.4.0
dlist-1.0
extra-1.7.10
ghc-paths-0.1.0.12
hashable-1.4.0.2
lens-5.1.1
lsp-1.5.0.0
lsp-types-1.5.0.0
megaparsec-9.2.1
parser-combinators-1.3.0
pretty-simple-4.1.1.0
quickcheck-2.14.2
safe-exceptions-0.1.7.1
unliftio-0.2.18
unordered-containers-0.2.17.0
The text was updated successfully, but these errors were encountered: