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

cabal-validate: Reorder cli-tests #10589

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions cabal-validate/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,17 @@ libSuiteExtras opts = forM_ (extraCompilers opts) $ \compiler' ->
cliTests :: Opts -> IO ()
cliTests opts = do
-- These are sorted in asc time used, quicker tests first.

-- Only single job, otherwise we fail with "Heap exhausted"
timedCabalBin
opts
"cabal-install"
"test:long-tests"
( jobsArgs opts
"test:mem-use-tests"
( ["--num-threads", "1"]
++ tastyArgs opts
)

-- This doesn't work in parallel either.
-- This test-suite doesn't like concurrency
timedCabalBin
opts
"cabal-install"
Expand All @@ -342,16 +344,15 @@ cliTests opts = do
++ tastyArgs opts
)

-- Only single job, otherwise we fail with "Heap exhausted"
timedCabalBin
opts
"cabal-install"
"test:mem-use-tests"
( ["--num-threads", "1"]
"test:long-tests"
( jobsArgs opts
++ tastyArgs opts
)

-- This test-suite doesn't like concurrency
-- This doesn't work in parallel either.
timedCabalBin
opts
"cabal-install"
Expand Down
Loading