yams/tests/unit
Trevon 7076e4b283
feat(daemon): shutdown hardening + test helper linkage fixes (#44)
* perf(daemon): coalesce metadata writes

* refactor(metadata): split repository ops

* fix(metadata): harden repository invariants

* feat: test coverage and continued refactor work in metadata code

* fix(graph): handle path-like explore queries

- prefer file path symbol lookup for graph explore\n- sanitize alias FTS queries before MATCH

* fix(daemon): quiesce shutdown background work

- Interrupt pending DB acquires before worker shutdown
- Wait for tracked background coroutines and timers to drain

* fix(daemon): cancel repair work on shutdown

Blocked embed and post-ingest queues could keep salvage and\nstuck-doc repair alive during shutdown. Consume cancellation in\nrepair retry loops and lock the integrated ServiceManager path\nwith regressions so shutdown fails fast instead of drifting.

* perf(metadata): reduce sqlite lock contention

* perf(metadata): flatten batch content retries

* fix(daemon): align shutdown wait budgets

A low shutdown timeout override could expire before ServiceManager\nfinished its 5s+30s WorkCoordinator join path. Share the join\nbudget constants, clamp graceful lifecycle waits to that floor,\nand lock the behavior with a daemon regression.

* perf(metadata): bound feedback write waits

* perf(metadata): prep batch content before tx

* fix(daemon): honor no-embeddings tasks

Post-ingest queue tasks dropped the per-task noEmbeddings flag,\nso focused extraction tests still emitted embed jobs and Windows\nCI exercised extra async paths. Preserve the flag through the bus,\nskip embed dispatch when requested, and wake the extraction poller\nimmediately after successful queueing.

* perf(daemon): batch fallback metadata writes

* feat(perf,docs): optimizations for metadata writes, prompt updates and test improvements

* perf(metadata): flatten insert retries

* fix(metadata): clear CI portability blockers

Use the shared portable ScopedEnvVar in metadata search-query helper tests, add mutators for test reuse, and normalize Statement::bindAll integral dispatch so long long arguments bind consistently across platforms. Add focused regression coverage for the bindAll long long path.

* perf(metadata): batch writes and steady bench

* fix(daemon): skip inactive post-ingest pollers

* perf(metadata): tighten tag and path caches

* perf(metadata): cache small batch upserts

* fix(daemon): harden embedded host teardown

* feat(docs): updating docs policies and language

* perf(metadata): tune doc update retries

* perf(metadata): bound download retries

* perf(metadata): bound download metadata waits

* bench(metadata): scope post-ingest content path

* fix(daemon): export embedded test hooks

* fix(daemon): harden test helper linkage

* fix(build): add missing standard includes
2026-06-08 16:29:44 -04:00
..
api Search/grep UX, runtime hardening, and CI stabilization (#39) 2026-05-27 12:15:17 -04:00
app/services feat(daemon): shutdown hardening + test helper linkage fixes (#44) 2026-06-08 16:29:44 -04:00
chunking Remediate Fold SAST findings 2026-05-27 22:41:44 -04:00
cli Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
common Remediate Fold SAST findings 2026-05-27 22:41:44 -04:00
compression fix(security): harden fold-flagged guards 2026-05-17 23:50:32 -04:00
content Remediate Fold SAST findings 2026-05-27 22:41:44 -04:00
core fix(cli): improve graph-guided grep 2026-06-04 22:46:10 -04:00
crypto feat: optimizations based on profile runs in hashing and work coordinator. test updates and correctness fixes 2026-02-24 21:06:43 -05:00
daemon feat(daemon): shutdown hardening + test helper linkage fixes (#44) 2026-06-08 16:29:44 -04:00
detection feat(linter): running linter on codebase 2026-04-20 16:13:30 -04:00
downloader fix: download logic improvements and ci test fixes. Stagging download fixes seperate from search features 2026-05-04 13:29:17 -04:00
extraction fix(ci): stabilize remaining test lanes 2026-05-18 20:25:19 -04:00
ingest plugin improvements. continued gtest -> catch2 test migration 2025-12-19 22:27:31 -05:00
integrity Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
manifest feat: optimizations based on profile runs in hashing and work coordinator. test updates and correctness fixes 2026-02-24 21:06:43 -05:00
mcp fix(ci): stabilize test matrix 2026-05-18 16:36:21 -04:00
metadata feat(daemon): shutdown hardening + test helper linkage fixes (#44) 2026-06-08 16:29:44 -04:00
plugins security: expanding opengrep suite and addressing issues 2026-05-02 21:33:22 -04:00
repair fix(daemon): WAL flush on shutdown, corrupt-DB salvage, test hardening, ASAN fix (#27) 2026-05-09 23:03:23 -04:00
resolve feat: cleaning up request path and fixing checkpoint logic underload 2026-04-24 18:42:00 -04:00
search Search/grep UX, runtime hardening, and CI stabilization (#39) 2026-05-27 12:15:17 -04:00
storage feat(daemon): shutdown hardening + test helper linkage fixes (#44) 2026-06-08 16:29:44 -04:00
topology test: expand storage-readiness coverage — 48.1%→59.8% broad, 74.3% narrow (#38) 2026-05-25 22:58:15 -04:00
vector Assertion hardening, metadata correctness, & daemon lifecycle fixes (#41) 2026-06-04 12:53:42 -04:00
wal fix: testing improvements and bug fixes in daemon logic for lifecycle management 2026-02-17 15:55:29 -05:00
meson.build test: expand coverage and harden ci 2026-05-20 10:37:54 -04:00