hyperhive/hive-c0re/src/job_queue
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas a59ad5ce3f job_queue: test error truncation as the pure fn it is
error_is_truncated submitted a DAG, claimed its head, failed it with a
long string and read the error back out of a snapshot -- four moving
parts to observe one `&str -> String`. The DAG round-trip it depended on
is covered by its own tests either way.

Testing truncate_error directly also reaches the case the round-trip
never could: the cap is a byte length, so a multibyte char straddling it
would panic the slice. That boundary scan is the only non-obvious line
in the function and it had no coverage at all -- the old test used a
repeated ASCII 'x', where byte and char offsets coincide.

Also drops a stale claim from insert_job's doc: it has not recorded a
per-node node_rt since that map was deleted.
2026-08-02 22:00:34 +02:00
..
exec.rs job_queue: drop Claim, claim_ready and the completion wrappers 2026-08-02 22:00:34 +02:00
mod.rs job_queue: test error truncation as the pure fn it is 2026-08-02 22:00:34 +02:00
model.rs refactor(#2949): kill Declare — a running node declares onto its own builder 2026-08-02 22:00:34 +02:00
resource.rs job_queue: fix the boot sweep's lost declarations, drop the node wrapper 2026-08-02 16:29:06 +02:00
scheduler.rs jobq: complete is the completion, and failure grows nothing 2026-08-02 22:00:34 +02:00
submit.rs job_queue: fix the boot sweep's lost declarations, drop the node wrapper 2026-08-02 16:29:06 +02:00
templates.rs refactor(#2949): kill Declare — a running node declares onto its own builder 2026-08-02 22:00:34 +02:00
tests.rs job_queue: test error truncation as the pure fn it is 2026-08-02 22:00:34 +02:00