Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
67f6c8a
Cache match explanations per viewer and candidate pair (R18)
SURYANSH-RAI Oct 18, 2026
bec5ce7
Add connection abuse controls and profile visibility (R19 part 1)
SURYANSH-RAI Oct 18, 2026
b81b1e5
Record sensitive actions and enforce data retention (R19 part 2)
SURYANSH-RAI Oct 18, 2026
3a8a501
Coalesce search retrieval across replicas with complete cache keys (R20)
SURYANSH-RAI Oct 19, 2026
aaf5f9a
Make background matching durable and revision-aware (R21 part 1)
SURYANSH-RAI Oct 19, 2026
1b041c3
Refresh affected participants and add failed-job tooling (R21 part 2)
SURYANSH-RAI Oct 19, 2026
74149e2
Put embedding and rerank calls behind a model gateway (R22 part 1)
SURYANSH-RAI Oct 19, 2026
b9fc8ee
Test the model gateway and add a usage report (R22 part 2)
SURYANSH-RAI Oct 19, 2026
0bb9a41
Version stored embeddings by model and never mix spaces (R22 part 3)
SURYANSH-RAI Oct 19, 2026
74c31db
Deliver intro notifications through a durable outbox (R23 part 1)
SURYANSH-RAI Oct 19, 2026
0a9deda
Add "where are you?" location requests with voluntary replies (R23 pa…
SURYANSH-RAI Oct 19, 2026
15c2277
Fail CI when integration suites would skip (R24 part 1)
SURYANSH-RAI Oct 19, 2026
ed05d92
bug fixx-rerank-order-on-cache-hit
SURYANSH-RAI Oct 19, 2026
48c08ca
Test the background matching journey end to end (R24 part 2)
SURYANSH-RAI Oct 19, 2026
00d0e4e
bug fixx-crossing-intro-requests
SURYANSH-RAI Oct 19, 2026
dca6e70
Test races on intros, replies, locations and imports (R24 part 3)
SURYANSH-RAI Oct 19, 2026
c0f80eb
Test event isolation in one suite (R24 part 4)
SURYANSH-RAI Oct 19, 2026
727fd17
Document required test services in the README (R24 part 5)
SURYANSH-RAI Oct 19, 2026
e9f8db6
Add the browser acceptance suite and run it in CI (R24 part 6)
SURYANSH-RAI Oct 19, 2026
d9453db
Rotate the session secret without signing anyone out (R25 part 1)
SURYANSH-RAI Oct 19, 2026
6385efa
Alarm on the matching and notification pipeline (R25 part 2)
SURYANSH-RAI Oct 19, 2026
5f89529
bug fixx-match-save-deadlock
SURYANSH-RAI Oct 19, 2026
fed3772
bug fixx-retrieval-intent-starvation
SURYANSH-RAI Oct 19, 2026
d510446
Measure capacity and latency against agreed budgets (R25 part 3)
SURYANSH-RAI Oct 19, 2026
96377bb
Rehearse restores and keep rollbacks safe (R25 part 4)
SURYANSH-RAI Oct 19, 2026
46da091
bug fixx-deploy-role-worker-repo
SURYANSH-RAI Oct 19, 2026
9f2cfb2
Add a staging target and promotion of tested images (R25 part 5)
SURYANSH-RAI Oct 19, 2026
4e5e5c4
Write the operations runbook (R25 part 6)
SURYANSH-RAI Oct 19, 2026
460b61a
bug fixx-tsconfig-baseurl-deprecation
SURYANSH-RAI Oct 19, 2026
5f075a2
Merge pull request #28 from LucknowAI/feature/operations-readiness
SURYANSH-RAI Nov 13, 2026
0c518c0
Merge pull request #27 from LucknowAI/feature/browser-acceptance-suite
SURYANSH-RAI Nov 13, 2026
e91605d
Merge pull request #26 from LucknowAI/feature/ci-acceptance-coverage
SURYANSH-RAI Nov 13, 2026
75b4948
Merge pull request #25 from LucknowAI/feature/notifications-location-…
SURYANSH-RAI Nov 13, 2026
4fdb5b5
Merge pull request #24 from LucknowAI/feature/model-gateway
SURYANSH-RAI Nov 13, 2026
422583b
Merge pull request #23 from LucknowAI/feature/durable-matching-jobs
SURYANSH-RAI Nov 13, 2026
191813a
Merge pull request #22 from LucknowAI/feature/shared-search-retrieval
SURYANSH-RAI Nov 13, 2026
961e83a
Merge pull request #21 from LucknowAI/feature/privacy-abuse-controls
SURYANSH-RAI Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ DEFAULT_EVENT_SLUG=demo
# Encrypts the session cookie. REQUIRED, min 32 chars.
# openssl rand -base64 48
SESSION_SECRET=
# While rotating: the old secret(s), comma-separated, still accepted for
# reading cookies for one session lifetime so nobody is signed out.
# SESSION_SECRET_PREVIOUS=
# Hashes login codes. Defaults to SESSION_SECRET; set it separately in
# production so rotating the session secret leaves codes in flight working.
# OTP_PEPPER=

# ── Postgres ──────────────────────────────────────────────────
POSTGRES_USER=matchmaker
Expand Down Expand Up @@ -76,6 +82,10 @@ OTP_TTL_SECONDS=600
OTP_MAX_PER_WINDOW=5
OTP_RATE_WINDOW_SECONDS=900

# Seconds the worker waits before refreshing other people's matches after a
# profile change, so bursts of changes coalesce (default 120).
# MATCH_REFRESH_DELAY_SECONDS=120

# Proxies in front of the web app that append to X-Forwarded-For (1 behind
# the AWS ALB). 0 trusts no header, so per-IP login limits are skipped locally.
TRUSTED_PROXY_HOPS=0
Expand Down
128 changes: 112 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# The migration gate compares with the base commit.
fetch-depth: 0

- uses: actions/setup-node@v4
with:
Expand All @@ -47,29 +50,31 @@ jobs:
- name: Unit tests
run: npx vitest run tests/unit

# Migrations run before the new code starts, and a rollback runs the
# previous image on the migrated schema: released migrations never
# change and new ones only expand.
- name: Migrations are safe to roll back from
run: npx tsx tools/check-migrations.ts "${{ github.event.pull_request.base.sha || github.event.before }}"

integration:
name: Integration tests
runs-on: ubuntu-latest

services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: matchmaker
POSTGRES_PASSWORD: matchmaker
POSTGRES_DB: matchmaker
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U matchmaker"
--health-interval 5s
--health-timeout 5s
--health-retries 20

# The same Postgres (with the Keycloak database) and Keycloak (with the
# realm import and theme) that docker compose runs locally.
env:
DATABASE_URL: postgres://matchmaker:matchmaker@localhost:5432/matchmaker
DATABASE_SSL: disable
SESSION_SECRET: ci-session-secret-long-enough-for-validation-x
KEYCLOAK_ISSUER: http://localhost:8080/realms/match-maker
KEYCLOAK_PUBLIC_URL: http://localhost:8080
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_CLIENT_ID: match-maker-web
KEYCLOAK_CLIENT_SECRET: ci-client-secret
APP_BASE_URL: http://localhost:3000
# Suites skip themselves without these services; here that is a failure.
REQUIRE_SERVICES: db,keycloak

steps:
- uses: actions/checkout@v4
Expand All @@ -81,13 +86,104 @@ jobs:

- run: npm ci

- name: Start Postgres and Keycloak
run: docker compose up -d --wait postgres keycloak

# The suite calls migrate() itself, so this only proves the runner works
# standalone — the way the deploy pipeline invokes it.
- name: Apply migrations
run: npm run db:migrate

- name: Configure Keycloak
run: |
npm run keycloak:wait
npm run keycloak:sync

- name: Integration tests
run: npx vitest run tests/integration
run: npx vitest run tests/integration --reporter=default --reporter=json --outputFile=vitest-report.json

# A suite that skipped itself would otherwise count as a pass.
- name: Every integration test ran
run: npx tsx tools/check-test-report.ts vitest-report.json

- name: Service logs
if: failure()
run: docker compose logs --no-color postgres keycloak | tail -n 300

browser:
name: Browser acceptance
runs-on: ubuntu-latest
needs: [quality]

# The built app and the worker against the compose Postgres and Keycloak.
# Login codes are logged instead of e-mailed and read from the app's log.
env:
DATABASE_URL: postgres://matchmaker:matchmaker@localhost:5432/matchmaker
DATABASE_SSL: disable
SESSION_SECRET: ci-session-secret-long-enough-for-validation-x
KEYCLOAK_ISSUER: http://localhost:8080/realms/match-maker
KEYCLOAK_PUBLIC_URL: http://localhost:8080
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_CLIENT_ID: match-maker-web
KEYCLOAK_CLIENT_SECRET: ci-client-secret
APP_BASE_URL: http://localhost:3000
EMAIL_DEV_FALLBACK: "true"
MATCH_REFRESH_DELAY_SECONDS: "3"
E2E_BASE_URL: http://localhost:3000
E2E_WEB_LOG: ${{ github.workspace }}/e2e-web.log

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm

- run: npm ci

- name: Start Postgres and Keycloak
run: docker compose up -d --wait postgres keycloak

- name: Migrate, seed and configure Keycloak
run: |
npm run db:migrate
npm run db:seed
npm run keycloak:wait
npm run keycloak:sync

- name: Build
run: npm run build

- name: Install Chromium
run: npx playwright install --with-deps chromium

- name: Start app and worker
run: |
(cd apps/web && nohup npx next start -p 3000 > "$E2E_WEB_LOG" 2>&1 &)
nohup npm run worker > e2e-worker.log 2>&1 &
for i in $(seq 1 60); do
curl -fsS http://localhost:3000/api/health/ready && exit 0
sleep 2
done
cat "$E2E_WEB_LOG"
exit 1

- name: Browser tests
run: npm run test:e2e

- name: Keep report and logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: browser-acceptance
path: |
playwright-report/
test-results/
e2e-web.log
e2e-worker.log
retention-days: 7

build:
name: Build images
Expand Down
Loading
Loading