From 05bbfa5d1a803162cd92539a9884699e43f8e924 Mon Sep 17 00:00:00 2001 From: plebhash Date: Wed, 29 Jan 2025 13:30:44 -0300 Subject: [PATCH] remove translation-proxy-broke-pool MG test --- .github/workflows/mg.yaml | 10 -- .../translation-proxy-broke-pool.json | 108 ------------------ .../translation-proxy-broke-pool.sh | 9 -- 3 files changed, 127 deletions(-) delete mode 100644 test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.json delete mode 100755 test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh diff --git a/.github/workflows/mg.yaml b/.github/workflows/mg.yaml index 484c7d4fca..5ada23a190 100644 --- a/.github/workflows/mg.yaml +++ b/.github/workflows/mg.yaml @@ -123,14 +123,6 @@ jobs: - name: Run sv1-test run: sh ./test/message-generator/test/sv1-test/sv1-test.sh - translation-proxy-broke-pool: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Run translation-proxy-broke-pool - run: sh ./test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh - translation-proxy-old-share: runs-on: ubuntu-latest steps: @@ -157,7 +149,6 @@ jobs: pool-sri-test-extended_1, pool-sri-test-reject-auth, sv1-test, - translation-proxy-broke-pool, translation-proxy-old-share ] steps: @@ -176,7 +167,6 @@ jobs: [ "${{ needs.pool-sri-test-extended_1.result }}" != "success" ] || [ "${{ needs.pool-sri-test-reject-auth.result }}" != "success" ] || [ "${{ needs.sv1-test.result }}" != "success" ] || - [ "${{ needs.translation-proxy-broke-pool.result }}" != "success" ] || [ "${{ needs.translation-proxy-old-share.result }}" != "success" ]; then echo "One or more jobs failed." exit 1 diff --git a/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.json b/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.json deleted file mode 100644 index caa1330b0f..0000000000 --- a/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "version": "2", - "doc": [ - "This test runs a tproxy and a mock pool. The mock pool responds with SetupConnectionSuccess", - "And then a OpenExtendedMiningChannelSuccess but this message has a bad extranonce size which is way too big.", - "This will cause the tproxy to exit with a good message. This test just validates that the tproxy closes", - "the communication channel with the pool." - ], - "common_messages": [ - ], - "mining_messages": [ - ], - "frame_builders": [ - { - "type": "automatic", - "message_id": "test/message-generator/messages/common_messages.json::setup_connection_success_tproxy" - }, - { - "type": "automatic", - "message_id": "test/message-generator/messages/mining_messages.json::openEMC_success_tproxy_bad_extranonce" - } - ], - "actions": [ - { - "message_ids": [], - "role": "server", - "results": [ - { - "type": "match_message_type", - "value": "0x00" - } - ], - "actiondoc": "This action checks that a Setupconnection message is received" - }, - { - "message_ids": ["setup_connection_success_tproxy"], - "role": "server", - "results": [ - ] - }, - { - "message_ids": [], - "role": "server", - "results": [ - { - "type": "match_message_type", - "value": "0x13" - } - ], - "actiondoc": "Checks that OpenExtendedMiningChannel is received" - }, - { - "message_ids": ["openEMC_success_tproxy_bad_extranonce"], - "role": "server", - "results": [ - { - "type": "close_connection" - } - ], - "actiondoc": "Checks that the bad extranonce OEMC.Success fails" - } - ], - "setup_commands": [ - { - "command": "cargo", - "args": [ - "run", - "-p", - "translator_sv2", - "--", - "-c", - "../test/config/tproxy-config-no-jd-sv1-cpu-md.toml" - - ], - "conditions": { - "WithConditions": { - "conditions": [ - { - "output_string": "2mtranslator_sv2", - "output_location": "StdOut", - "late_condition": false, - "condition": true - } - ], - "timer_secs": 260, - "warn_no_panic": false - } - } - } - ], - "execution_commands": [ - ], - "cleanup_commands": [ - { - "command": "pkill", - "args": ["-f", "translator_sv2", "-SIGINT"], - "conditions": "None" - } - - ], - "role": "server", - "upstream": { - "ip": "127.0.0.1", - "port": 34254, - "pub_key": "9auqWEzQDVyd2oe1JVGFLMLHZtCo2FFqZwtKA5gd9xbuEu7PH72", - "secret_key": "mkDLTBBRxdBv998612qipDYoTK3YUrqLe8uWw7gu3iXbSrn2n" - } -} diff --git a/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh b/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh deleted file mode 100755 index a2a9077c4f..0000000000 --- a/test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh +++ /dev/null @@ -1,9 +0,0 @@ -cd roles -cargo build -p translator_sv2 - -cd ../utils/message-generator/ -cargo build - -RUST_LOG=debug cargo run ../../test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.json || { echo 'mg test failed' ; exit 1; } - -sleep 10