diff --git a/.github/workflows/mg.yaml b/.github/workflows/mg.yaml index d91326e0eb..99c171f982 100644 --- a/.github/workflows/mg.yaml +++ b/.github/workflows/mg.yaml @@ -11,16 +11,6 @@ on: - main jobs: - bad-pool-config-test: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install cargo-llvm-cov - run: cargo install cargo-llvm-cov - - name: Run bad-pool-config-test - run: sh ./test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh - interop-jd-translator: runs-on: ubuntu-latest steps: @@ -209,4 +199,4 @@ jobs: exit 1 else echo "All MG tests completed successfully" - fi \ No newline at end of file + fi diff --git a/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.json b/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.json deleted file mode 100644 index d5bbcb52db..0000000000 --- a/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "version": "2", - "doc": [ - "What this test does:", - "1) launch SRI pool with llvm-cov (Fails with bad coinbase config)", - "2) launch SRI pool with llvm-cov and -h flag (Displays `help` options)", - "3) launch SRI pool with llvm-cov (Fails because of invalid config)", - "4) launch SRI pool with llvm-cov (Fails because of no config file at path)", - "5) launch SRI pool with llvm-cov (Successfully runs pool)" - ], - "common_messages": [ - ], - "mining_messages": [ - ], - "frame_builders": [ - ], - "actions": [ - ], - "setup_commands": [ - { "command": "cargo", - "args": [ - "run", - "../../test/message-generator/mock/template-provider-mock0.json" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Running `target/debug/message_generator_sv2 ../../test/message-generator/mock/template-provider-mock0.json`", - "output_location": "StdErr", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 120, - "warn_no_panic": false - } - } - }, - { - "command": "cargo", - "args": [ "llvm-cov", - "--no-report", - "run", - "-p", - "pool_sv2", - "--", - "-c", - "../test/config/pool-mock-tp-bad-coinbase.toml" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Failed to get coinbase output:", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 240, - "warn_no_panic": false - } - } - }, - { - "command": "cargo", - "args": [ "llvm-cov", - "--no-report", - "run", - "-p", - "pool_sv2", - "--", - "-h", - "-c", - "../test/config/pool-mock-tp.toml" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Usage: -h/--help, -c/--config ", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 320, - "warn_no_panic": false - } - } - }, - { - "command": "cargo", - "args": [ "llvm-cov", - "--no-report", - "run", - "-p", - "pool_sv2", - "--", - "-c", - "../test/config/pool-mock-tp-bad-config.toml" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Failed to parse config:", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 320, - "warn_no_panic": false - } - } - }, - { - "command": "cargo", - "args": [ "llvm-cov", - "--no-report", - "run", - "-p", - "pool_sv2", - "--", - "-c", - "../test/config/no-config-at-this-path.toml" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Failed to read config:", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 320, - "warn_no_panic": false - } - } - }, - { - "command": "cargo", - "args": [ "llvm-cov", - "--no-report", - "run", - "-p", - "pool_sv2", - "--", - "-c", - "../test/config/pool-mock-tp.toml" - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "Listening for encrypted connection on: 127.0.0.1:34254", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 320, - "warn_no_panic": false - } - } - } - ], - "execution_commands": [ - ], - "cleanup_commands": [ - { - "command": "pkill", - "args": ["-f", "pool_sv2", "-SIGINT"], - "conditions": "None" - } - ], - "role": "client", - "downstream": { - "ip": "0.0.0.0", - "port": 34254, - "pub_key": "9auqWEzQDVyd2oe1JVGFLMLHZtCo2FFqZwtKA5gd9xbuEu7PH72" - } -} diff --git a/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh b/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh deleted file mode 100755 index 76f3342d74..0000000000 --- a/test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh +++ /dev/null @@ -1,9 +0,0 @@ -cd roles -cargo llvm-cov --no-report -p pool_sv2 - -cd ../utils/message-generator/ -cargo build - -RUST_LOG=debug cargo run ../../test/message-generator/test/bad-pool-config-test/bad-pool-config-test.json || { echo 'mg test failed' ; exit 1; } - -sleep 10