From 7dea648c1456cc87d62777cdccfe311b12ad505b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 09:30:37 +0200 Subject: [PATCH 01/11] ci: upload coverage-reports as artifacts --- .github/workflows/tests.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e752252a..1a0afa2a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -55,6 +55,27 @@ jobs: - name: Tests run: npm run test + - name: Upload coverage + uses: actions/upload-artifact@v4 + with: + name: coverage-master + path: test/coverage/coverage-summary.json + + - name: Get master run ID + if: github.ref != 'refs/heads/master' + id: get-run-id + run: | + RUN_ID=$(gh run list --branch master --workflow tests.yaml --limit 1 --json databaseId --jq '.[0].databaseId') + echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT + + - name: Download master coverage + if: github.ref != 'refs/heads/master' + uses: actions/download-artifact@v4 + with: + name: coverage-master + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ steps.get-run-id.outputs.run-id }} + - name: Compare coverage if: github.ref != 'refs/heads/master' run: From ec18024aba279f57fd247e5239a688936dbdc0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Wed, 6 May 2026 10:31:28 +0200 Subject: [PATCH 02/11] ci: update deposit command --- .github/workflows/tests-rc.yaml | 10 +++++----- .github/workflows/tests.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests-rc.yaml b/.github/workflows/tests-rc.yaml index 83c8ddc2..47cb462d 100644 --- a/.github/workflows/tests-rc.yaml +++ b/.github/workflows/tests-rc.yaml @@ -58,11 +58,11 @@ jobs: - name: Deposit to chequebook run: | - swarm-cli cheque deposit 100000000000000000 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633 + swarm-cli cheque deposit 10 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:11633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:21633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:31633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:41633 - name: Print swarm-cli status continue-on-error: true diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1a0afa2a..6f3bfb95 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -42,11 +42,11 @@ jobs: - name: Deposit to chequebook run: | - swarm-cli cheque deposit 100000000000000000 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633 + swarm-cli cheque deposit 10 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:11633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:21633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:31633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:41633 - name: Print swarm-cli status continue-on-error: true From ef105f85ac59489c01165ab1e43906ec0dedbafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 10:01:20 +0200 Subject: [PATCH 03/11] ci: only upload for master, add gh token --- .github/workflows/tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6f3bfb95..47034889 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -56,6 +56,7 @@ jobs: run: npm run test - name: Upload coverage + if: github.ref == 'refs/heads/master' uses: actions/upload-artifact@v4 with: name: coverage-master @@ -64,6 +65,8 @@ jobs: - name: Get master run ID if: github.ref != 'refs/heads/master' id: get-run-id + env: + GH_TOKEN: ${{ github.token }} run: | RUN_ID=$(gh run list --branch master --workflow tests.yaml --limit 1 --json databaseId --jq '.[0].databaseId') echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT From 3c6b8b9f3b73797bb9b77689a3e4860b8e77798e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 10:41:17 +0200 Subject: [PATCH 04/11] ci: test with changed npxie --- .github/workflows/tests.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 47034889..1e1d06da 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -29,7 +29,7 @@ jobs: run: npm ci - name: Install global dependencies - run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie + run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli https://github.com/slapec93/npxie - name: Run bee-dev run: bee-dev --port 16337 & @@ -78,9 +78,10 @@ jobs: name: coverage-master github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ steps.get-run-id.outputs.run-id }} + path: coverage-master - name: Compare coverage if: github.ref != 'refs/heads/master' run: - npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}" + npxie coverage-comparison "${{ github.repository }}" "./coverage-master/coverage-summary.json" \ "test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}" From 6b3da393ac74212251b9492b76e218e971d9eadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 10:50:37 +0200 Subject: [PATCH 05/11] ci: temporarily allow fail on artifact download step --- .github/workflows/tests.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1e1d06da..cc2a461e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -65,6 +65,7 @@ jobs: - name: Get master run ID if: github.ref != 'refs/heads/master' id: get-run-id + continue-on-error: true env: GH_TOKEN: ${{ github.token }} run: | @@ -73,6 +74,8 @@ jobs: - name: Download master coverage if: github.ref != 'refs/heads/master' + id: download-coverage + continue-on-error: true uses: actions/download-artifact@v4 with: name: coverage-master @@ -81,7 +84,7 @@ jobs: path: coverage-master - name: Compare coverage - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/master' && steps.download-coverage.outcome == 'success' run: npxie coverage-comparison "${{ github.repository }}" "./coverage-master/coverage-summary.json" \ "test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}" From a0bf3808c05519f0cd2c11cca41f97e8d370e658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 11:09:38 +0200 Subject: [PATCH 06/11] ci: upload artifact for test --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cc2a461e..fc1475a9 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -56,7 +56,7 @@ jobs: run: npm run test - name: Upload coverage - if: github.ref == 'refs/heads/master' + # if: github.ref == 'refs/heads/master' uses: actions/upload-artifact@v4 with: name: coverage-master From f4ebb5949134a6a0d2c3333f7a5bae002d7b1ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 11:23:50 +0200 Subject: [PATCH 07/11] ci: temp override run id to one with artifact --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fc1475a9..b3971d11 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -56,7 +56,7 @@ jobs: run: npm run test - name: Upload coverage - # if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' uses: actions/upload-artifact@v4 with: name: coverage-master @@ -70,7 +70,7 @@ jobs: GH_TOKEN: ${{ github.token }} run: | RUN_ID=$(gh run list --branch master --workflow tests.yaml --limit 1 --json databaseId --jq '.[0].databaseId') - echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT + echo "run-id=25547283635" >> $GITHUB_OUTPUT - name: Download master coverage if: github.ref != 'refs/heads/master' From aae922b5723918df647b88eeb1602d6a82ffff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 14:53:58 +0200 Subject: [PATCH 08/11] ci: install npxie from working state --- .github/workflows/tests.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b3971d11..c8af93f3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -29,7 +29,15 @@ jobs: run: npm ci - name: Install global dependencies - run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli https://github.com/slapec93/npxie + run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli + + - name: Install npxie + run: | + git clone https://github.com/slapec93/npxie.git + cd npxie + npm run build + npm install -g . + cd .. - name: Run bee-dev run: bee-dev --port 16337 & From 258d280ac7a01636f09452e9660618694347e894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 15:28:06 +0200 Subject: [PATCH 09/11] fix: coverage missing --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c8af93f3..32fbcb4a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -61,7 +61,7 @@ jobs: run: swarm-cli status - name: Tests - run: npm run test + run: npm run test:coverage - name: Upload coverage if: github.ref == 'refs/heads/master' From 8ef60d37bf2d809cccfb8173f14b3c4c2ad50581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Fri, 8 May 2026 15:43:49 +0200 Subject: [PATCH 10/11] fix: whitespace issue --- .github/workflows/tests.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 32fbcb4a..e0a79c36 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -93,6 +93,5 @@ jobs: - name: Compare coverage if: github.ref != 'refs/heads/master' && steps.download-coverage.outcome == 'success' - run: - npxie coverage-comparison "${{ github.repository }}" "./coverage-master/coverage-summary.json" \ - "test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}" + run: | + npxie coverage-comparison "${{ github.repository }}" "./coverage-master/coverage-summary.json" "test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}" From ba9626af15d9c374d160344ee76ad200eb154530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20B=C3=A9k=C3=A9si?= Date: Mon, 11 May 2026 09:20:26 +0200 Subject: [PATCH 11/11] feat: undo temp changes --- .github/workflows/tests.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e0a79c36..24ca56ae 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -29,15 +29,7 @@ jobs: run: npm ci - name: Install global dependencies - run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli - - - name: Install npxie - run: | - git clone https://github.com/slapec93/npxie.git - cd npxie - npm run build - npm install -g . - cd .. + run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie - name: Run bee-dev run: bee-dev --port 16337 & @@ -78,7 +70,7 @@ jobs: GH_TOKEN: ${{ github.token }} run: | RUN_ID=$(gh run list --branch master --workflow tests.yaml --limit 1 --json databaseId --jq '.[0].databaseId') - echo "run-id=25547283635" >> $GITHUB_OUTPUT + echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT - name: Download master coverage if: github.ref != 'refs/heads/master'