Skip to content

fix(billing): let a slow ledger read finish instead of blocking execution at the singleflight default #32564

fix(billing): let a slow ledger read finish instead of blocking execution at the singleflight default

fix(billing): let a slow ledger read finish instead of blocking execution at the singleflight default #32564

Triggered via pull request September 22, 2026 18:27
Status Failure
Total duration 5m 49s
Artifacts –

ci.yml

on: pull_request
Detect Version
Detect Version
Detect Desktop Changes
Detect Desktop Changes
Prepare Trigger.dev
Prepare Trigger.dev
Matrix: Build AMD64
Matrix: Build Dev ECR
Matrix: Build ARM64 (GHCR Only)
Matrix: Test and Build / oauth-postgres
Matrix: Test and Build / test-shard
Test and Build  /  Lint and Test
4m 56s
Test and Build / Lint and Test
Test and Build  /  Build App
3m 24s
Test and Build / Build App
Check Docs Changes
Check Docs Changes
Migrate Dev DB  /  Apply Database Migrations
Migrate Dev DB / Apply Database Migrations
Check Desktop Signing Secrets
Check Desktop Signing Secrets
Migrate DB  /  Apply Database Migrations
Migrate DB / Apply Database Migrations
Create Desktop Prerelease
Create Desktop Prerelease
Promote Images
0s
Promote Images
Desktop Prerelease Build  /  Build, Sign, Notarize
Desktop Prerelease Build / Build, Sign, Notarize
Matrix: Create GHCR Manifests
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Promote Trigger.dev
0s
Promote Trigger.dev
Publish Desktop Prerelease
0s
Publish Desktop Prerelease
Resolve Attestation Subjects
0s
Resolve Attestation Subjects
Prune Desktop Prereleases
0s
Prune Desktop Prereleases
Matrix: Attest Images
Create GitHub Release
Create GitHub Release
Desktop Release  /  Build, Sign, Notarize
Desktop Release / Build, Sign, Notarize
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 9 warnings
Test and Build / Lint and Test
Process completed with exit code 1.
lib/knowledge/documents/document-indexing-usage.test.ts: apps/sim/lib/billing/core/usage-gate-cache.ts#L33
Error: [vitest] No "USAGE_LEDGER_STATEMENT_TIMEOUT_MS" export is defined on the "@/lib/billing/core/usage-log" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@/lib/billing/core/usage-log"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ lib/billing/core/usage-gate-cache.ts:33:45 ❯ lib/knowledge/documents/document-indexing-usage.test.ts:68:1
Test and Build / Lint and Test
@sim/app#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
Test and Build / Lint and Test
Process completed with exit code 1.
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps