Skip to content

feat: add oracle durability, priority queue tests, e2e tests, and geo…#903

Open
Prz-droid wants to merge 1 commit into
crackedstudio:masterfrom
Prz-droid:feature/oracle-durability-and-config
Open

feat: add oracle durability, priority queue tests, e2e tests, and geo…#903
Prz-droid wants to merge 1 commit into
crackedstudio:masterfrom
Prz-droid:feature/oracle-durability-and-config

Conversation

@Prz-droid

Copy link
Copy Markdown
Contributor

close #786
close #781
close #807
close #806

…-blocking config

Task 1: Oracle Job State Durability
- Add oracle_jobs table migration with durable job state tracking
- Create OracleJobsService for persistent job state via Supabase
- Add automatic recovery of IN_PROGRESS jobs on oracle startup
- Jobs survive process crashes and rolling deploys

Task 2: Priority Queue Integration Tests
- Add priority-queue.integration.spec.ts with concurrent job submission tests
- Verify HIGH priority jobs processed before MEDIUM/LOW
- Validate FIFO ordering within same priority tier
- Test high-volume concurrent submissions (50 jobs)

Task 3: E2E Buy Ticket Test
- Add buy-ticket.spec.ts covering full happy path
- Navigate home → click raffle → view details → connect wallet → purchase
- Verify ticket price and count displayed
- Assert success toast appears on purchase completion
- Test wallet connection flow and error handling

Task 4: Geo-Blocking Configuration
- Move BLOCKED_COUNTRIES to GEO_BLOCK_COUNTRIES env var
- Parse and validate in env.config.ts with parseBlockedCountries helper
- Inject ConfigService into GeoBlockingMiddleware (no longer uses env directly)
- Update .env.example with documentation
- Update middleware tests to use ConfigService mocks
- Enables changing blocked countries via env var without redeploying code
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the otaiki1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Otaiki1

Otaiki1 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Please fix all conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants