From e04b0c76b01fb6b889953dc38b66626de06ad58f Mon Sep 17 00:00:00 2001 From: acamilo Date: Wed, 30 Sep 2026 04:11:06 +0000 Subject: [PATCH] session_trace: boot parity accepts the adapter migrations v0.6.7 deploys with The live checkpoints the boot parity starts from are pokered-unique8-v7 files; since row 68 (v8) a boot takes them only with FLY_ACCEPT_ADAPTERS, as the v0.6.7 deploy sets it. The test sets the adapter's own MIGRATES_FROM when the environment names none; both runtimes read the same list. --- .../crates/fly-legacy-session/tests/session_trace.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/flysim/crates/fly-legacy-session/tests/session_trace.rs b/services/flysim/crates/fly-legacy-session/tests/session_trace.rs index 7eb09bf..cee9fc6 100644 --- a/services/flysim/crates/fly-legacy-session/tests/session_trace.rs +++ b/services/flysim/crates/fly-legacy-session/tests/session_trace.rs @@ -525,6 +525,18 @@ async fn run_booted( async fn fafb_boot_run_save_restore() { let Some(rom_path) = rom_path() else { return }; let Some(dataset) = fafb() else { return }; + // The live fly's checkpoints predate `pokered-unique8-v8` (row 68, v0.6.7), and a boot takes + // an older adapter's file only when the operator asks for its migration, as the v0.6.7 + // deploy does. Both runtimes read the same list, so the comparison is unchanged. + if std::env::var_os("FLY_ACCEPT_ADAPTERS").is_none() { + // SAFETY: set before any runtime or thread of this test reads the environment. + unsafe { + std::env::set_var( + "FLY_ACCEPT_ADAPTERS", + flybrain_gb::pokemon_red::MIGRATES_FROM.join(","), + ); + } + } // The rollback file (a ratchet rollback on the first boundary), and the live fly's largest // task ledgers: row 64 (42 KB) and the row 65 yard (46 KB), past the 32 KiB TypedValue bound // (TASK-01 review B1). `FLY_TASK01_BOOT_SOURCES` picks others (`name=path,...`).