fix(ci): pin the withdrawal test clock and group trpc bumps #198

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/renovate-ci in i main 2026-11-05 10:02:44 +00:00
Ägare

Every open Renovate PR fails CI. Two causes.

1. Date-dependent test (all PRs)

billing.test.ts > measures a withdrawal against the first purchase, never a renewal fails with charge_subscription_id_period_unique since 2026-11-01. paidOn(2026-10-01) checked out and paid on the real clock, so the first charge got period 2026-11, the same as the early renewal.

Fix: checkout() and pay() take an optional Deps, and paidOn runs both on a clock pinned to purchasedAt.

2. @trpc/server version skew (#197)

The root package.json and contract/package.json pin @trpc/server exactly, but Renovate bumped them in different groups. Two installed copies break the router types (TS2554, TS2344 ... AnyRouter in src/server.test.ts).

Fix: a packageRules entry groups @trpc/server as trpc, so one PR moves both manifests.

Verification

Typecheck clean, 800/800 tests, pnpm audit --prod --audit-level high clean.

After merge: #193 to #196 need a rebase. #197 needs Renovate to regenerate it without @trpc/server.

Every open Renovate PR fails CI. Two causes. ## 1. Date-dependent test (all PRs) `billing.test.ts > measures a withdrawal against the first purchase, never a renewal` fails with `charge_subscription_id_period_unique` since 2026-11-01. `paidOn(2026-10-01)` checked out and paid on the real clock, so the first charge got period `2026-11`, the same as the early renewal. Fix: `checkout()` and `pay()` take an optional `Deps`, and `paidOn` runs both on a clock pinned to `purchasedAt`. ## 2. `@trpc/server` version skew (#197) The root `package.json` and `contract/package.json` pin `@trpc/server` exactly, but Renovate bumped them in different groups. Two installed copies break the router types (`TS2554`, `TS2344 ... AnyRouter` in `src/server.test.ts`). Fix: a `packageRules` entry groups `@trpc/server` as `trpc`, so one PR moves both manifests. ## Verification Typecheck clean, 800/800 tests, `pnpm audit --prod --audit-level high` clean. After merge: #193 to #196 need a rebase. #197 needs Renovate to regenerate it without `@trpc/server`.
supernaut lade till 1 incheckning 2026-11-05 09:57:25 +00:00
fix(ci): pin the withdrawal test clock and group trpc bumps
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m37s
3be5b484b3
The "never a renewal" test paid at the real clock. From November the first
charge took period 2026-11, which the early renewal then collided with, so
every CI run failed. paidOn now buys at the purchase date.

Renovate bumped @trpc/server in the root and in contract/ through different
groups, which left two versions installed and broke the router types. One
group now moves both.
supernaut sammanfogade incheckning e48cce6272 till main 2026-11-05 10:02:44 +00:00
supernaut tog bort grenen fix/renovate-ci 2026-11-05 10:02:44 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment!198
Ingen beskrivning angiven.