From f79400e0cd0063a100a6aa1f48b72da374bd32dc Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:03:19 +0530 Subject: [PATCH 01/10] Correct status_url extraction in action.yml Fix the extraction of 'statuses_url' from the PR JSON response. --- set-pr-status/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index aed3440c..71f976e6 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -36,7 +36,7 @@ runs: --header "Authorization: token ${{inputs.github_token}}" \ --header "Content-Type: application/json" > pr.json - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print obj[\"statuses_url\"]") + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print (obj) rm -rf pr.json curl --silent --location --request POST "$status_url" \ From b69cafdce9cd0582d273d2572c515cf751dde26c Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:23:42 +0530 Subject: [PATCH 02/10] Fix status_url extraction from PR JSON response --- set-pr-status/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index 71f976e6..af825b02 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -36,7 +36,7 @@ runs: --header "Authorization: token ${{inputs.github_token}}" \ --header "Content-Type: application/json" > pr.json - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print (obj) + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj['statuses_url'])") rm -rf pr.json curl --silent --location --request POST "$status_url" \ From 4a50e8838c96ffeff56c7c203211876b6e7aabc7 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:35:03 +0530 Subject: [PATCH 03/10] update action.yml --- set-pr-status/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index af825b02..44c30756 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -36,7 +36,7 @@ runs: --header "Authorization: token ${{inputs.github_token}}" \ --header "Content-Type: application/json" > pr.json - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj['statuses_url'])") + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj)") rm -rf pr.json curl --silent --location --request POST "$status_url" \ From 7e713d4d499bc7554119879d4cfa8d8c49c9e694 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 18:14:53 +0530 Subject: [PATCH 04/10] Update action.yml --- set-pr-status/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index 44c30756..ca4eb42a 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -35,8 +35,9 @@ runs: --header "Accept: application/vnd.github.v3+json" \ --header "Authorization: token ${{inputs.github_token}}" \ --header "Content-Type: application/json" > pr.json - - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj)") + echo "Full PR JSON response:" + cat pr.json + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj['statuses_url'])") rm -rf pr.json curl --silent --location --request POST "$status_url" \ From f1d99a6d2b8d799e56def3775a4a98daf3e62a01 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 19:18:56 +0530 Subject: [PATCH 05/10] Update action.yml --- set-pr-status/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index ca4eb42a..ce54d15c 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -37,7 +37,7 @@ runs: --header "Content-Type: application/json" > pr.json echo "Full PR JSON response:" cat pr.json - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin); print(obj['statuses_url'])") + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print(obj.get('statuses_url', ''))") rm -rf pr.json curl --silent --location --request POST "$status_url" \ From c6ad082c35829df01816c7f77721b56577fa1a88 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Sun, 26 Oct 2025 19:47:27 +0530 Subject: [PATCH 06/10] Update action.yml --- set-pr-status/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-pr-status/action.yml b/set-pr-status/action.yml index ce54d15c..425e882f 100644 --- a/set-pr-status/action.yml +++ b/set-pr-status/action.yml @@ -37,7 +37,7 @@ runs: --header "Content-Type: application/json" > pr.json echo "Full PR JSON response:" cat pr.json - status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print(obj.get('statuses_url', ''))") + status_url=$(cat pr.json | python -c "import json,sys;obj=json.load(sys.stdin);print(obj.get(\"statuses_url\", \"\"))") rm -rf pr.json curl --silent --location --request POST "$status_url" \ From 2271593745908d07fcffd7f05844f28446317f28 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:15:32 +0530 Subject: [PATCH 07/10] Increase token amount in faucet commands to 1000 --- run-system-tests/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/run-system-tests/action.yml b/run-system-tests/action.yml index 8d73e429..60848663 100644 --- a/run-system-tests/action.yml +++ b/run-system-tests/action.yml @@ -703,13 +703,13 @@ runs: ####### CREATING ALLOCATION THAT SHOULD RECEIVE CHALLENGES ####### truncate -s 1000000 upload_test_file - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 3 --parity 3 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation1.txt echo "Allocation 1 hash: $(cat allocation1.txt)" ./zbox upload --allocation "$(cat allocation1.txt)" --localpath ./upload_test_file --remotepath /upload_test_file --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ####### CREATING ALLOCATION WITH UPLOAD AND DELETE THAT SHOULD NOT RECEIVE CHALLENGES ####### - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 3 --parity 3 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation2.txt echo "Allocation 2 hash: $(cat allocation2.txt)" ./zbox upload --allocation "$(cat allocation2.txt)" --localpath ./upload_test_file --remotepath /upload_test_file --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent @@ -717,12 +717,12 @@ runs: ./zbox delete --allocation "$(cat allocation2.txt)" --remotepath /upload_test_file --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ####### CREATING EMPTY ALLOCATION SHOULD NOT RECEIVE CHALLENGES ####### - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 3 --parity 3 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation3.txt echo "Allocation 3 hash: $(cat allocation3.txt)" ######## Updating allocation with add blobber and added blobber should receive challenges ####### - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 2 --parity 2 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation4.txt echo "Allocation 4 hash: $(cat allocation4.txt)" @@ -772,7 +772,7 @@ runs: echo "$add_blobber_id" >> challenge_blobbers.txt ######## Updating allocation with add and remove blobber and where added blobber should receive and removed blobber should not receive challenges ######## - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000--input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 2 --parity 2 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation5.txt echo "Allocation 5 hash: $(cat allocation5.txt)" @@ -838,7 +838,7 @@ runs: fi ####### CANCELLED ALLOCATION SHOULD NOT GET CHALLENGES ANYMORE ####### - ./zwallet faucet --methodName "pour" --tokens 10 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000--input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 3 --parity 3 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation6.txt echo "Allocation 6 hash: $(cat allocation6.txt)" ./zbox upload --allocation "$(cat allocation6.txt)" --localpath ./upload_test_file --remotepath /upload_test_file --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent From 71080dccfe822a6a937283466e8eb848946c9fbc Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Fri, 31 Oct 2025 00:53:54 +0530 Subject: [PATCH 08/10] Comment out condition for Challenge System Tests Comment out the conditional check for running challenge system tests. --- run-system-tests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-system-tests/action.yml b/run-system-tests/action.yml index 60848663..e6fefe0c 100644 --- a/run-system-tests/action.yml +++ b/run-system-tests/action.yml @@ -677,7 +677,7 @@ runs: - name: "Run Challenge System Tests" shell: 'script --return --quiet --command "bash {0}"' - if: ${{ always() && env.TESTS_READY && env.RUN_SUBSET_OF_TESTS == 'false' && env.RUN_CHALLENGE_SYSTEM_TESTS == 'true' }} + # if: ${{ always() && env.TESTS_READY && env.RUN_SUBSET_OF_TESTS == 'false' && env.RUN_CHALLENGE_SYSTEM_TESTS == 'true' }} run: | echo echo "======================================================" From 79968afa5f90d51e82bb734ad516058d579d8ed2 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Fri, 31 Oct 2025 00:59:02 +0530 Subject: [PATCH 09/10] Comment out sleep command in action.yml Commented out the sleep command in the action file. --- run-system-tests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-system-tests/action.yml b/run-system-tests/action.yml index e6fefe0c..698b13ca 100644 --- a/run-system-tests/action.yml +++ b/run-system-tests/action.yml @@ -870,7 +870,7 @@ runs: system_tests_exit_code=0 echo "Sleeping for 45 minutes..." - sleep 2700 + # sleep 2700 echo "Tests started..." ${GOPATH}/bin/gotestsum --jsonfile test-output.json --hide-summary=output --format testname ${{ env.SHOULD_RETRY_FAILURES }} --raw-command -- ../../CHALLENGE_TEST_RUNNER_COMMAND.sh || system_tests_exit_code=$? cat test-output.json | ${GOPATH}/bin/go-test-report --groupSize 1 --output ../../${{ env.BRANCH_DIR }}/${GITHUB_SHA}/challengetestscli/index.html --title "0Chain System test suite: Challenge tests [${{ env.BRANCH_DIR }}/${GITHUB_SHA:0:8}] ran against [${{ env.NETWORK_URL }}] at [${{ env.TEST_TIME }}]" From 94ce7233be773681a224489f3315436ea5f86ec4 Mon Sep 17 00:00:00 2001 From: tanmay958 <53569547+tanmay958@users.noreply.github.com> Date: Fri, 31 Oct 2025 02:00:24 +0530 Subject: [PATCH 10/10] Fix command syntax for zwallet faucet calls --- run-system-tests/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-system-tests/action.yml b/run-system-tests/action.yml index 698b13ca..9632abff 100644 --- a/run-system-tests/action.yml +++ b/run-system-tests/action.yml @@ -772,7 +772,7 @@ runs: echo "$add_blobber_id" >> challenge_blobbers.txt ######## Updating allocation with add and remove blobber and where added blobber should receive and removed blobber should not receive challenges ######## - ./zwallet faucet --methodName "pour" --tokens 1000--input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 2 --parity 2 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation5.txt echo "Allocation 5 hash: $(cat allocation5.txt)" @@ -838,7 +838,7 @@ runs: fi ####### CANCELLED ALLOCATION SHOULD NOT GET CHALLENGES ANYMORE ####### - ./zwallet faucet --methodName "pour" --tokens 1000--input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent + ./zwallet faucet --methodName "pour" --tokens 1000 --input "{}" --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent ./zbox newallocation --lock 0.2 --data 3 --parity 3 --size 1073741824 --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent | grep 'Allocation' | grep -o "[a-z0-9]\{64\}" > allocation6.txt echo "Allocation 6 hash: $(cat allocation6.txt)" ./zbox upload --allocation "$(cat allocation6.txt)" --localpath ./upload_test_file --remotepath /upload_test_file --configDir . --config ./config.yaml --wallet ./zs3wallet.json --silent