From 61f33e1352a402f406b8f5b416490751f7695503 Mon Sep 17 00:00:00 2001 From: Gorka Date: Tue, 28 Jul 2026 12:13:47 -0300 Subject: [PATCH 1/2] .github/workflows: drop the redundant remote-only flag. Remote building is already the default; --local-only is the flag that changes it. --- .github/workflows/deploy-mainnet.yml | 4 ++-- .github/workflows/deploy-testnet.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-mainnet.yml b/.github/workflows/deploy-mainnet.yml index 50716c2..4e6901d 100644 --- a/.github/workflows/deploy-mainnet.yml +++ b/.github/workflows/deploy-mainnet.yml @@ -23,7 +23,7 @@ jobs: - name: Deploy to Fly.io run: | - if flyctl deploy --config fly.mainnet.toml --remote-only; then + if flyctl deploy --config fly.mainnet.toml; then echo "Deploy succeeded" else echo "Deploy failed — cleaning up unreachable machines..." @@ -35,7 +35,7 @@ jobs: done echo "Retrying deploy..." - flyctl deploy --config fly.mainnet.toml --remote-only + flyctl deploy --config fly.mainnet.toml fi env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index 788da08..6f9774c 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -22,7 +22,7 @@ jobs: - name: Deploy to Fly.io run: | - if flyctl deploy --config fly.testnet.toml --remote-only; then + if flyctl deploy --config fly.testnet.toml; then echo "Deploy succeeded" else echo "Deploy failed — cleaning up unreachable machines..." @@ -34,7 +34,7 @@ jobs: done echo "Retrying deploy..." - flyctl deploy --config fly.testnet.toml --remote-only + flyctl deploy --config fly.testnet.toml fi env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} From 942f8788efcfc1b5bd511da91d80842e3333b7bc Mon Sep 17 00:00:00 2001 From: Gorka Date: Tue, 28 Jul 2026 12:44:19 -0300 Subject: [PATCH 2/2] src/core/state/store_test.ts: pin the sparkline volume test to a fixed now. The test stamped its events from Date.now() but read the buckets with a second, later Date.now(), so a minute boundary crossing mid-test pushed the deposit into the previous bucket and the assertion saw 0.5 instead of 2. --- src/core/state/store_test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/state/store_test.ts b/src/core/state/store_test.ts index ce8a813..c856319 100644 --- a/src/core/state/store_test.ts +++ b/src/core/state/store_test.ts @@ -222,6 +222,7 @@ Deno.test("sparklines return 60 buckets, count events in the right bucket", () = Deno.test("sparklines volume sums deposit + settlement amounts in whole units", () => { const s = makeStore(); + const now = Date.now(); s.replaceTopology([ council("CA", [{ contractId: "CH1", assetContractId: "SAC1" }]), ]); @@ -239,7 +240,7 @@ Deno.test("sparklines volume sums deposit + settlement amounts in whole units", amount: "5000000", // 0.5 in whole units }, "CA"), ); - const sp = s.sparklines(); + const sp = s.sparklines(now); assertEquals(sp.volume[SPARKLINE_BUCKET_COUNT - 1], 2); });