From 42117997296573e7358342d9039c36d2236686c1 Mon Sep 17 00:00:00 2001 From: KadenaFriend <241389759+kdafriend@users.noreply.github.com> Date: Sun, 4 Jan 2026 13:07:31 +0000 Subject: [PATCH 1/3] Disable Nix tests --- .github/workflows/nix.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index c3806a0afc..bc59c39e1a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -2,10 +2,11 @@ name: Build and cache with Nix on: workflow_dispatch: - push: - paths: - - '**' - # - '!.github/**' + +## For now disable NIX (until is maintained again) +# push: +# paths: +# - '**' jobs: build-and-cache: From 2c4c89a168b78b17b253f64a61939fd0842326dc Mon Sep 17 00:00:00 2001 From: KadenaFriend <241389759+kdafriend@users.noreply.github.com> Date: Sun, 4 Jan 2026 13:08:03 +0000 Subject: [PATCH 2/3] Clean threads after multi-nodes tests --- test/lib/Chainweb/Test/MultiNode.hs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/test/lib/Chainweb/Test/MultiNode.hs b/test/lib/Chainweb/Test/MultiNode.hs index 5c77e78034..f23b4e427f 100644 --- a/test/lib/Chainweb/Test/MultiNode.hs +++ b/test/lib/Chainweb/Test/MultiNode.hs @@ -87,8 +87,7 @@ import System.Directory (createDirectoryIfMissing) import System.FilePath import System.IO.Temp import System.LogLevel -import System.Timeout - +import GHC.Conc (listThreads) import Test.Tasty.HUnit import PropertyMatchers qualified as P @@ -331,8 +330,18 @@ runNodesForSeconds -> (forall logger. NodeId -> StartedChainweb logger -> IO ()) -> IO () runNodesForSeconds loglevel write v confBuilders (Seconds seconds) rdb pactDbDir inner = do - void $ timeout (int seconds * 1_000_000) - $ runNodes loglevel write v confBuilders rdb pactDbDir inner + + intialThreads <- Set.fromList <$> listThreads + + void $ race (threadDelay (int seconds * 1_000_000)) (runNodes loglevel write v confBuilders rdb pactDbDir inner) + + -- Give threads 2 seconds to stop properly + threadDelay 2_000_000 + + -- And kill those created during the test + survivingThreads <- filter (flip Set.notMember intialThreads) <$> listThreads + write $ T.pack $ "Killing " ++ (show $ length survivingThreads) ++ " garbage threads" + forM_ survivingThreads killThread -- | Ensure that we can compact a live node(s). -- From 31042f808fefec33957005618d01c4081fe9da16 Mon Sep 17 00:00:00 2001 From: KadenaFriend <241389759+kdafriend@users.noreply.github.com> Date: Sun, 4 Jan 2026 13:08:20 +0000 Subject: [PATCH 3/3] Increase multi-node test timeout --- .github/workflows/applications.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/applications.yml b/.github/workflows/applications.yml index 3497be786f..67f828156d 100644 --- a/.github/workflows/applications.yml +++ b/.github/workflows/applications.yml @@ -499,7 +499,7 @@ jobs: ghc: ${{ matrix.ghc }} use-freeze-file: ${{ matrix.use-freeze-file }} - name: Run multi-node-network-tests - timeout-minutes: 10 + timeout-minutes: 20 run: | ulimit -n 10000 multi-node-network-tests