From b74359e97643be0f43034c3aeab533a2389a939f Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 18:21:16 +0000 Subject: enstate: submissions waiting for the next switch --migrate first takes the submissions in STATE/incoming, in the order of their names: planned against the schema, stored if accepted (their views follow with the rest), removed, and moved to STATE/refused if refused, which refuses the migration. A dry run (the check before a switch) does so on a copy of the snapshots, changing nothing. --stage leaves a marker, STATE/migrate-due, for the next switch to migrate even if the schema doesn't change; --migrate removes it. Scratch directories are cleaned up without following the symbolic links in them. --- tests/common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/common') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 6f80d65..3af1c88 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -124,7 +124,7 @@ impl Host { pub fn migrate(&self, schema: &(Schema, Vec), dry_run: bool) -> Migration { let store = self.store(); let _lock = store.lock().unwrap(); - enstate::migrate::migrate(&schema.0, &store, dry_run, &self.systemctl()).unwrap() + enstate::migrate::migrate(&schema.0, &schema.1, &store, dry_run, &self.systemctl()).unwrap() } /// Stages a submission for the generation of `schema`, before switching to it. -- cgit v1.3.1