Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Docs: the itch save test pushes to a separate test page, not the public page (#2218)

Eyal Golan5d20a9d2389f
diff --git a/docs/m3-release.md b/docs/m3-release.md
index 502a48730..c491b3df0 100644
--- a/docs/m3-release.md
+++ b/docs/m3-release.md
@@ -358,8 +358,10 @@ Published at: (owner fills in)
- The template sets `autoSyncPersistentDataPath: true`, so closing the file persists it to IndexedDB.
- IndexedDB is per origin, so saves survive re-uploads to the same project and stay separate per browser profile.
- The local checks above passed: reload, tab close, browser restart, and a second directory on the same origin.
-- **Automated test:** `uv run tools/nightly.py savetest --tag <published nightly>` runs this plan against the public
- itch page and records its result in the job's evidence file. It pushes to the public page twice, so only the owner starts it.
+- **Automated test:** `uv run tools/nightly.py savetest --tag <published nightly>` runs this plan against a separate
+ itch test page (`savetest_itch_target` and `savetest_itch_page_url` in the job's `config.json`) and records its result
+ in the job's evidence file. It pushes to the test page twice, never to the public page, and refuses to run without
+ those two keys or if they name the public page. Only the owner starts it.
- **Test plan (after the first two uploads):**
1. Use one browser profile throughout, without clearing site data or using private mode. Record browser/version, OS,
project page URL and the actual game-frame URL/origin (not only the outer itch.io page). Upload A as above. Play two
diff --git a/tools/README.md b/tools/README.md
index 873643f8b..4f8bf88a3 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -220,9 +220,11 @@ and what is public are in `docs/RELEASING.md`, "Nightly builds". It runs on the
`launchd.log` and `no-mcp-server`. A corrupt `config.json` or `state.json` refuses the night; it never counts as a
first night.
- itch.io pushes stay off (`itch_enabled` is false) until the save test passes: set `itch_page_url` in `config.json`
- to the itch page, then, from the clone and after the first PUBLISHED night,
- `uv run tools/nightly.py savetest --tag <that nightly's tag>`. It pushes to the public itch page twice and, on a
- pass, turns `itch_enabled` on in `config.json`. `INCONCLUSIVE` and `FAIL` leave itch off.
+ to the itch page, and `savetest_itch_target` (`user/project:channel`) and `savetest_itch_page_url` to a separate
+ test page, then, from the clone and after the first PUBLISHED night,
+ `uv run tools/nightly.py savetest --tag <that nightly's tag>`. It pushes to the test page twice, never to the public
+ page, and refuses to run without those two keys or if they name the public page. On a pass, it turns `itch_enabled`
+ on in `config.json`. `INCONCLUSIVE` and `FAIL` leave itch off.
- The boot-time baseline is the median headless boot of the first 5 PUBLISHED nights; later nights must stay within
the spread of those 5. To measure it again (a new machine, a new Chrome), delete `boot_baseline` from `state.json`;
the next 5 published nights record it.