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.
This commit is contained in:
parent
c56e04cdf8
commit
e04b0c76b0
1 changed files with 12 additions and 0 deletions
|
|
@ -525,6 +525,18 @@ async fn run_booted(
|
||||||
async fn fafb_boot_run_save_restore() {
|
async fn fafb_boot_run_save_restore() {
|
||||||
let Some(rom_path) = rom_path() else { return };
|
let Some(rom_path) = rom_path() else { return };
|
||||||
let Some(dataset) = fafb() 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
|
// 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 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,...`).
|
// (TASK-01 review B1). `FLY_TASK01_BOOT_SOURCES` picks others (`name=path,...`).
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue