Skip to content

Commit 95b5b76

Browse files
fix(search): bound retrieval and avoid repeated turn admission (#7888)
* fix(search): bound retrieval and billing query cost * refactor(billing): remove unneeded synchronous cost projection * fix(billing): authorize continuations without repeating spend admission * fix(test): align session policy fixture with joined billing read
1 parent 000356f commit 95b5b76

37 files changed

Lines changed: 28863 additions & 150 deletions

‎.github/workflows/test-build.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
matrix:
1818
provision: [push, migrate]
1919
services:
20+
redis:
21+
image: redis:8.2-alpine
22+
ports:
23+
- 6379:6379
24+
options: >-
25+
--health-cmd "redis-cli ping"
26+
--health-interval 5s
27+
--health-timeout 5s
28+
--health-retries 10
2029
postgres:
2130
image: pgvector/pgvector:pg17
2231
env:
@@ -109,7 +118,8 @@ jobs:
109118
working-directory: apps/sim
110119
env:
111120
BILLING_USAGE_TEST_DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/sim_auth_scim
112-
run: bunx vitest run lib/billing/core/usage-log.postgres.test.ts lib/billing/core/organization-activity.postgres.test.ts
121+
BILLING_USAGE_TEST_REDIS_URL: redis://127.0.0.1:6379
122+
run: bunx vitest run lib/billing/core/usage-log.postgres.test.ts lib/billing/core/organization-activity.postgres.test.ts lib/billing/calculations/usage-reservation.test.ts
113123

114124
- name: Verify cumulative billing timeout recovery on PostgreSQL 16
115125
if: matrix.provision == 'push'

0 commit comments

Comments
 (0)