Commit Graph

3 Commits

Author SHA1 Message Date
roboomp 506f57fbf2 fix(task): recorded subagent model performance
Shared the parent AgentStorage handle with isolated task settings while keeping setting overrides non-persistent.

Added regression coverage for task samples reaching the shared TPS/TTFT aggregate.

Fixes #8022
2026-08-08 15:59:27 +00:00
can1357 20c0a2e410 test(coding-agent): fixed storage tests for schema v6 and slow CI disks
- Compat tests assert the exported SCHEMA_VERSION instead of a stale
  hardcoded 5; the perf-sample change bumped agent.db to v6.
- Backfill cap fixture inserts its 300 rows in one transaction; per-row
  implicit transactions fsynced 300 times and timed out on CI runners.
2026-07-12 03:13:15 +02:00
can1357 41317cc231 test(perf): validated performance sample aggregation and backfill logic
- Verified throughput (TPS) and latency (TTFT) aggregation logic for multiple samples.
- Confirmed data sanitization by dropping invalid samples like NaN, zero duration, or missing values.
- Ensured backfilling correctly filters stale, errored, and empty turns from the stats database.
- Validated that backfill operations respect the maximum sample limit per model.
- Validated the async deferral behavior in recording perf samples.
2026-07-12 01:06:27 +02:00