From a74c37eea621a1b8004589d24740130c56deee63 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Thu, 4 Jul 2024 13:47:29 -0400 Subject: [PATCH 1/5] Fix Test crashes --- .github/workflows/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 458ff0e80a..e34ff5b335 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,25 +68,25 @@ jobs: if: matrix.os != 'ubuntu-latest' run: | dotnet sln neo.sln remove ./tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj - dotnet test --blame-hang --blame-crash + dotnet test --blame-hang --blame-crash -p:ParallelizeTestCollections=false - name: Test for coverall if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests - dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests - dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests - dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests - dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests -p:ParallelizeTestCollections=false # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests - dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests - dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests - dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests - dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests -p:ParallelizeTestCollections=false - name: Coveralls if: matrix.os == 'ubuntu-latest' From 5f621b91e2707003ed31e7f2db7884ce43887730 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Thu, 4 Jul 2024 13:54:38 -0400 Subject: [PATCH 2/5] disable Build servers --- .github/workflows/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e34ff5b335..a968f7ff24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,25 +68,25 @@ jobs: if: matrix.os != 'ubuntu-latest' run: | dotnet sln neo.sln remove ./tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj - dotnet test --blame-hang --blame-crash -p:ParallelizeTestCollections=false + dotnet test --blame-hang --blame-crash -p:ParallelizeTestCollections=false --disable-build-servers - name: Test for coverall if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests -p:ParallelizeTestCollections=false --disable-build-servers # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests -p:ParallelizeTestCollections=false - dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests -p:ParallelizeTestCollections=false + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests -p:ParallelizeTestCollections=false --disable-build-servers - name: Coveralls if: matrix.os == 'ubuntu-latest' From 3042d794eeac1e72500f2eafbf07e50393295e14 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Thu, 4 Jul 2024 14:01:44 -0400 Subject: [PATCH 3/5] Fixed Building problem with tests --- .github/workflows/main.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a968f7ff24..b0b4f81c31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,25 +68,27 @@ jobs: if: matrix.os != 'ubuntu-latest' run: | dotnet sln neo.sln remove ./tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj - dotnet test --blame-hang --blame-crash -p:ParallelizeTestCollections=false --disable-build-servers + dotnet build + dotnet test --blame-hang --blame-crash --disable-build-servers --no-build - name: Test for coverall if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev + dotnet build --output ./bin/tests/ - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests --disable-build-servers --no-build + dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests --disable-build-servers --no-build # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests -p:ParallelizeTestCollections=false --disable-build-servers - dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests -p:ParallelizeTestCollections=false --disable-build-servers + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests --disable-build-servers --no-build - name: Coveralls if: matrix.os == 'ubuntu-latest' From 08a2633ba09d7e58e1d696752d4d1936e5ebc7e3 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Thu, 4 Jul 2024 14:06:26 -0400 Subject: [PATCH 4/5] Fixed command line --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b0b4f81c31..ca29c8a249 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,7 +75,7 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet build --output ./bin/tests/ + dotnet build dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests --disable-build-servers --no-build dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests --disable-build-servers --no-build From 6ad061234506beec8db3cd1ad0db94afec8ad055 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Thu, 4 Jul 2024 14:10:05 -0400 Subject: [PATCH 5/5] Removed disable build servers --- .github/workflows/main.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca29c8a249..c5f315dd27 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,26 +69,25 @@ jobs: run: | dotnet sln neo.sln remove ./tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj dotnet build - dotnet test --blame-hang --blame-crash --disable-build-servers --no-build + dotnet test --blame-hang --blame-crash --no-build - name: Test for coverall if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet build - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests --disable-build-servers --no-build - dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests --disable-build-servers --no-build + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests + dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests + dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests + dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests + dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests --disable-build-servers --no-build - dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests --disable-build-servers --no-build + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests + dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests + dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests + dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests + dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests - name: Coveralls if: matrix.os == 'ubuntu-latest'