-
Notifications
You must be signed in to change notification settings - Fork 848
Stack's 'ubuntu-latest' CI takes 3x longer than 'macos-13' CI #6720
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
Stack's online documentation for its Docker integration states:
and
As snapshots are in the Stack root, I've always assumed that caching the Stack root is sufficient. |
After adding log dumping on success too: case ec of
ExitSuccess -> do
logInfo "Success! Dumping log\n\n"
withSourceFile logfp $ \src ->
runConduit $ src .| stderrC
logInfo $ "\n\nEnd of log for " <> fromString name
_ -> do
logError "Failure, dumping log\n\n"
withSourceFile logfp $ \src ->
runConduit $ src .| stderrC
logError $ "\n\nEnd of log for " <> fromString name it seems that 'macos-13' (40 s) and 'ubuntu-latest' (588 s) are reporting exactly the same steps for integration test 4783, albeit in a different order. |
It seems to be something to do with linking. There are four places in integration test 4783 where linking occurs: (a) Stack's Setup shim for local
The linking delays at (a), (c) and (d) are accounting for almost all of the additional duration of 'ubuntu-latest'. |
@benz0li, as described above, linking during integration tests seems to be much slower (4 mins v 4 secs) in the Linux/x86_64 Docker container than on macOS/x86_64. Would you happen to know why? I queried ChatGPT-4o and it offered up this summary:
|
Cross references: |
IMHO |
– https://gitlab.haskell.org/ghc/ghc/-/issues/25093#note_579337 |
If you want to use |
@benz0li, thanks! For future reference:
(a):
(b):
|
This was fixed by:
The results were dramatic:
|
Also makes other minor changes for consistency of terminology.
Currently, GitHub workflow
integration-tests.yml
has very different performance on one runner compared to the others:and, on AArch64:
'ubuntu-latest' v 'macos-13' has some stark contrasts, the worst example being:
4783-doctest-deps
548 seconds v 39 secondsCould something be going wrong with caching?
The text was updated successfully, but these errors were encountered: