mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-03 00:52:32 +00:00
The plugin image has failed every build today (0 ok / 13 fail) on:
error: could not compile `cyclotron-core` (lib) due to 13 previous errors
and the log carried NOT ONE of those thirteen — turbo swallows cargo's stderr,
so CI reports a count and no cause. Reproduced locally: all thirteen are one
error, thirteen times.
`SQLX_OFFLINE=true` but there is no cached data for this query,
run `cargo sqlx prepare`
rust/.cargo/config.toml sets SQLX_OFFLINE unconditionally, so every build needs
rust/.sqlx, and rust/.sqlx did not exist — not ignored, not excluded, absent.
It was deleted in two steps and nobody noticed, because until today the plugin
build died EARLIER:
2026-06-16 203fdd70b strangle Redis onto Base-backed SQLite -39 entries
2026-08-01 e443a4dab rebase the tree onto upstream master -9 entries
2026-08-08 63effd63 .dockerignore re-includes two packages <- got the
build past the COPY it used to fail at, into the
compile that had been unreachable for eight weeks
So this is 63effd63 working, not breaking: it uncovered the next layer down.
Regenerated with sqlx-cli 0.8.6 (matching the sqlx the workspace pins) against
a throwaway Postgres 14 built from cyclotron-core's own five migrations — the
declared schema, not a borrowed one. Every query validated against it, which
also says the queries themselves are correct and only the cache was missing.
Scoped to cyclotron-core deliberately: common/types, cymbal and
personinsights-identity also use the macros, but their queries want schemas this
database does not have, and the plugin image compiles none of them.
offline, no DATABASE_URL, as CI builds it: cyclotron-core compiles
Co-authored-by: Hanzo Dev <[email protected]>
141 lines
3.4 KiB
JSON
141 lines
3.4 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\nWITH available AS (\n SELECT\n id,\n state\n FROM cyclotron_jobs\n WHERE\n state = 'available'::JobState\n AND queue_name = $1\n AND scheduled <= NOW()\n ORDER BY\n priority ASC,\n scheduled ASC\n LIMIT $2\n FOR UPDATE SKIP LOCKED\n)\nUPDATE cyclotron_jobs\nSET\n state = 'running'::JobState,\n lock_id = $3,\n last_heartbeat = NOW(),\n last_transition = NOW(),\n transition_count = transition_count + 1\nFROM available\nWHERE\n cyclotron_jobs.id = available.id\nRETURNING\n cyclotron_jobs.id,\n team_id,\n available.state as \"state: JobState\",\n queue_name,\n priority,\n function_id,\n created,\n last_transition,\n scheduled,\n transition_count,\n parent_run_id,\n vm_state,\n metadata,\n parameters,\n blob,\n lock_id,\n last_heartbeat,\n janitor_touch_count\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "team_id",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "state: JobState",
|
|
"type_info": {
|
|
"Custom": {
|
|
"name": "jobstate",
|
|
"kind": {
|
|
"Enum": [
|
|
"available",
|
|
"completed",
|
|
"failed",
|
|
"running",
|
|
"paused",
|
|
"canceled"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "queue_name",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "priority",
|
|
"type_info": "Int2"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "function_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "created",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "last_transition",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "scheduled",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "transition_count",
|
|
"type_info": "Int2"
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "parent_run_id",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "vm_state",
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "metadata",
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"ordinal": 13,
|
|
"name": "parameters",
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"ordinal": 14,
|
|
"name": "blob",
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"ordinal": 15,
|
|
"name": "lock_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 16,
|
|
"name": "last_heartbeat",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 17,
|
|
"name": "janitor_touch_count",
|
|
"type_info": "Int2"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Int8",
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
false
|
|
]
|
|
},
|
|
"hash": "4fe6a2cca90f9d4863cb26015716e35debc3041eddc1e81226967cd37a5c3227"
|
|
}
|