Skip to content

Commit 1fbae81

Browse files
committed
test(recall): keep writer test sessions inside the retention window
The writer test fixtures stamp every invocation 2026-10-19 and ran retention maintenance with a 30-day window, so from 2026-11-18 the session pruned the rows the tests then read, and five writer tests failed on every branch. The test configuration now keeps a retention window the fixed timestamps never leave, so maintenance still runs and prunes nothing.
1 parent 41f8c1a commit 1fbae81

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎crates/sqlbuild-recall/src/writer/tests/helpers.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ pub(crate) fn chunked(writes: &[(OutputStream, Vec<u8>)]) -> Vec<[Option<RecallV
7777
.collect()
7878
}
7979

80+
/// A retention window the fixed fixture timestamps never age out of, so maintenance prunes nothing.
81+
const RETENTION_DAYS: u32 = 36_500;
82+
8083
/// A session configuration writing invocation `invocation_id` to `path`.
8184
pub(crate) fn config(path: PathBuf, invocation_id: &str) -> SessionConfig {
8285
SessionConfig {
@@ -87,7 +90,7 @@ pub(crate) fn config(path: PathBuf, invocation_id: &str) -> SessionConfig {
8790
pid: Some(42),
8891
..InvocationContext::default()
8992
},
90-
retention_days: 30,
93+
retention_days: RETENTION_DAYS,
9194
shutdown_timeout: Duration::from_secs(5),
9295
diagnostics_min_severity: "info".to_owned(),
9396
max_output_bytes: None,

0 commit comments

Comments
 (0)