fix(alerts): cache the integration test's sqlx queries

The offline cache was regenerated without test targets, so the
sqlx::query! calls in jobs_waiting_alerts had no entries and any build
under SQLX_OFFLINE failed on them.
This commit is contained in:
Ruben Fiszel
2026-07-20 10:44:48 +00:00
parent 4332c9a354
commit 08cdc7493b
5 changed files with 77 additions and 0 deletions
@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO global_settings (name, value) VALUES ('alert_job_queue_waiting', $1)\n ON CONFLICT (name) DO UPDATE SET value = EXCLUDED.value",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Jsonb"
]
},
"nullable": []
},
"hash": "60fd41168e43e3d283ec8d3f7f6702368037d470924bd5b221d53884926bbd10"
}
@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE v2_job_queue SET canceled_by = 'canceller'\n WHERE tag = $1 AND canceled_by IS NULL",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "95e7660c83e6f0d7b1807684ac26682d411e7a3daf8f832e0aa811a2d8265f9c"
}
@@ -0,0 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO v2_job_queue (id, workspace_id, tag, running, scheduled_for,\n concurrency_gated_at, concurrency_gate_id)\n VALUES ($1, 'test-workspace', $2, false, NOW() - INTERVAL '5 minutes',\n CASE WHEN $3::bigint IS NULL THEN NULL\n ELSE NOW() - INTERVAL '1 second' * $3::bigint END,\n $4)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Varchar",
"Int8",
"Varchar"
]
},
"nullable": []
},
"hash": "ad143b4b7b6a716326e900d30d8f05f515a2c1bda560368bf5517ba5d18292f3"
}
@@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO concurrency_locks (id, last_locked_at) VALUES ('jobs_waiting_alerts_lock', NOW() - INTERVAL '1 hour')\n ON CONFLICT (id) DO UPDATE SET last_locked_at = EXCLUDED.last_locked_at",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "cf6debb665298ed840190d33b64bc3bc5d4b8cb77f755c08dc3581d6592f78f6"
}
@@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "SELECT message FROM alerts WHERE alert_type = 'critical_error'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "message",
"type_info": "Text"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "d56b8a720df0e226d3b0bf50172d8aeef8fe71079d2fd2729cde1db37c7be4b2"
}