forked from NSPG13/agent-bounties
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-postgres.ps1
More file actions
71 lines (69 loc) · 3.14 KB
/
Copy pathcheck-postgres.ps1
File metadata and controls
71 lines (69 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
$env:Path = "$env:USERPROFILE\.cargo\bin;$env:Path"
. (Join-Path $PSScriptRoot "_shared\powershell.ps1")
Push-Location $repoRoot
try {
Start-AgentBountiesPostgres
$databaseUrl = Get-AgentBountiesDatabaseUrl
Invoke-Checked { cargo build -p api -p mcp-server }
$previousTestDatabaseUrl = $env:AGENT_BOUNTIES_TEST_DATABASE_URL
$env:AGENT_BOUNTIES_TEST_DATABASE_URL = $databaseUrl
try {
Invoke-Checked {
cargo test -p db tests::x402_relay_attempt_is_idempotent_and_lease_bounded -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::claim_funnel_counts_direct_and_atomic_sponsored_confirmations -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::opportunity_lifecycle_query_executes_against_migrated_postgres -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::site_analytics_round_trip_executes_against_migrated_postgres -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::platform_metrics_query_enforces_identity_payment_and_cohort_boundaries -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::opportunity_comment_round_trip_is_durable_and_idempotent -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::chatgpt_action_intent_replays_and_confirms_only_observed_transaction -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::social_mention_ingestion_round_trip_executes_against_migrated_postgres -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::objective_aggregate_compare_and_swap_is_durable -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p db tests::discovery_webhook_round_trip_executes_against_migrated_postgres -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p api tests::audience_audit_persists_idempotently_across_processes -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p api tests::github_issue_api_sync_postgres_rejects_stale_cross_process_activity -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p api tests::github_issue_api_sync_postgres_serializes_concurrent_initial_sync -- --ignored --exact --nocapture
}
Invoke-Checked {
cargo test -p api tests::neynar_webhook_persists_one_short_draft_and_one_reply_across_retries -- --ignored --exact --nocapture
}
}
finally {
$env:AGENT_BOUNTIES_TEST_DATABASE_URL = $previousTestDatabaseUrl
}
Invoke-Checked {
cargo run -p cli -- service-smoke-spawn `
--api-base-url http://127.0.0.1:18180 `
--mcp-base-url http://127.0.0.1:18190 `
--database-url $databaseUrl `
--verify-restart-persistence
}
}
finally {
Pop-Location
}