From beabaf3b7c219962bba184d904551c9fd1a44c48 Mon Sep 17 00:00:00 2001 From: kan Date: Thu, 3 Dec 2026 05:09:07 +0400 Subject: [PATCH 1/2] solution: update tailscale/github-action to v4 v2 runs `sudo -E tailscale up` and needs TS_EXPERIMENT_OAUTH_AUTHKEY passed through sudo, but the sudo on the ubuntu-26.04 runners (ubuntu-latest since Nov 2026) ignores -E, so Tailscale rejected the OAuth key and every test job failed at Connect Tailscale. v4 uses a current Tailscale that accepts OAuth keys without the flag. --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9ebf0bf..b715904 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -62,7 +62,7 @@ jobs: run: pnpm install - name: Connect Tailscale - uses: tailscale/github-action@v2 + uses: tailscale/github-action@v4 with: oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} From da17726c3a220c43543269a0181cbe8bfd9c429a Mon Sep 17 00:00:00 2001 From: kan Date: Thu, 3 Dec 2026 05:25:50 +0400 Subject: [PATCH 2/2] solution: fix integration tests failing on staging - the blockchain test sent two items with the same id 1, which the server now rejects as INVALID_ARGUMENT - the web market tests had a 5s timeout, shorter than the other web integration tests, and getRates can take longer on staging --- packages/node/src/__integration-tests__/blockchain.test.ts | 2 +- packages/web/src/__integration-tests__/market.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/src/__integration-tests__/blockchain.test.ts b/packages/node/src/__integration-tests__/blockchain.test.ts index 2765093..6f55bb4 100644 --- a/packages/node/src/__integration-tests__/blockchain.test.ts +++ b/packages/node/src/__integration-tests__/blockchain.test.ts @@ -102,7 +102,7 @@ describe('BlockchainClient', () => { payload: ['0x1', false], }, { - id: 1, + id: 2, method: 'eth_gasPrice', payload: [], }, diff --git a/packages/web/src/__integration-tests__/market.test.ts b/packages/web/src/__integration-tests__/market.test.ts index 52c5620..3cbe0e5 100644 --- a/packages/web/src/__integration-tests__/market.test.ts +++ b/packages/web/src/__integration-tests__/market.test.ts @@ -1,7 +1,7 @@ import { EmeraldApi } from "../EmeraldApi"; import { Blockchain } from "@emeraldpay/api"; -jest.setTimeout(5000); +jest.setTimeout(30000); describe("MarketClient", () => { let api: EmeraldApi;