diff --git a/README.md b/README.md index 05f19ec..58a692c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A Paper plugin that runs smoke tests when the server boots, before players can join. Other plugins can add their own tests. -**Status:** early, version 0.3.0. It needs Minecraft 26.1 or newer and Java 25; 1.21 isn't supported. It has passed clean runs, lockdown, plugin disable, shutdown and broken-plugin report tests on throwaway Paper 26.1.2, 26.2 and 26.3 servers, using a protocol bot for logins. It's Paper-only, so it won't load on Spigot. The upgrade tool passed live checks, apply and restore on made-up servers on the same three versions. A real plugin stack hasn't been tested. +**Status:** early, version 0.3.1. It needs Minecraft 26.1 or newer and Java 25; 1.21 isn't supported. It has passed clean runs, lockdown, plugin disable, shutdown and broken-plugin report tests on throwaway Paper 26.1.2, 26.2 and 26.3 servers, using a protocol bot for logins. It's Paper-only, so it won't load on Spigot. The upgrade tool passed live checks, apply and restore on made-up servers on the same three versions. A real plugin stack hasn't been tested. ## What it does @@ -16,7 +16,7 @@ Built-in tests check that every installed plugin enabled and that every plugin j ## Install -Download `Preflight-0.3.0.jar` from [Releases](https://github.com/ExtantApe/Preflight/releases), put it in your server's `plugins/` folder and restart. Paper 26.1 or newer and Java 25 are required. +Download `Preflight-0.3.1.jar` from [Releases](https://github.com/ExtantApe/Preflight/releases), put it in your server's `plugins/` folder and restart. Paper 26.1 or newer and Java 25 are required. ## Build @@ -101,10 +101,10 @@ The report also lists every plugin with its state, jar file, dependencies, faile ## Upgrade to a new Minecraft version -`preflight-upgrade-0.3.0.jar`, on the same release page, is a command-line tool for a version upgrade. It boots a throwaway copy of your server on the new Paper jar with Preflight, then lists the plugins that won't start there and everything that needs them. With your yes, it switches them off on the real server, which must be stopped, after a restore point. It can switch each one back on later. It never deletes a jar: it renames it to `.jar.disabled`. +`preflight-upgrade-0.3.1.jar`, on the same release page, is a command-line tool for a version upgrade. It boots a throwaway copy of your server on the new Paper jar with Preflight, then lists the plugins that won't start there and everything that needs them. With your yes, it switches them off on the real server, which must be stopped, after a restore point. It can switch each one back on later. It never deletes a jar: it renames it to `.jar.disabled`. ```bash -java -jar preflight-upgrade-0.3.0.jar check --server /path/to/server --paper paper-26.3-244.jar +java -jar preflight-upgrade-0.3.1.jar check --server /path/to/server --paper paper-26.3-244.jar ``` You don't need Preflight installed on the server to use it. Some details: diff --git a/build.gradle.kts b/build.gradle.kts index 6eb2058..6020464 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ subprojects { apply(plugin = "java") group = "com.extantape" - version = "0.3.0" + version = "0.3.1" repositories { mavenCentral() diff --git a/docs/test-audit.md b/docs/test-audit.md index b940f9e..4509055 100644 --- a/docs/test-audit.md +++ b/docs/test-audit.md @@ -2,6 +2,11 @@ Kept by this repo's owning session (Minecraft: Plugins Lead), per `~/Code/CLAUDE.md`, "Test self-audits". Newest first. +## 2026-11-23: the server app's new folder name (0.3.1) +- Promises: a check's copy leaves out the server app's own folder, so the copy never carries the app's state or claims its backups. The app is being renamed, so both folder names are skipped. +- Covered: FlowTest's copy test now creates `.leafjuice/` and `.gilamonster/` with a file in each and checks neither is copied, next to the existing logs, session.lock, restore-point and exclude checks. +- Gaps skipped (and why): no live rerun; the change is one entry in a fixed skip list, and the copy test runs the same code path as a live check. + ## 2026-11-11: preflight-upgrade's live checks, in the repo The first upgrade live checks ran from a scratch folder that's gone, so nobody could rerun them. `test/live/upgrade.mjs` replaces them. It runs the released CLI jar against a made-up server folder that a real Paper jar booted once to make its worlds, and lets the tool boot its own copies. Everything lives in a fresh temp folder, which an exit handler deletes, pass or fail. Four test-only plugins, built from `test/live/upgrade-fixtures`, fail in different ways: `PfBadApi` (api-version 99.0), `PfNoMain` (a main class the jar lacks), `PfNeedsBad` (`depend` on PfBadApi) and `PfChainEnd` (`paper-plugin.yml`, requires PfNeedsBad). `test/live/HoldLock.java` holds a world's `session.lock` the way a running server does. diff --git a/docs/upgrade.md b/docs/upgrade.md index c6f1f41..63f6d2e 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -9,7 +9,7 @@ A Preflight pass means a plugin starts, not that it works. Try the important one ## Check ```bash -java -jar preflight-upgrade-0.3.0.jar check --server /path/to/server --paper /path/to/paper-26.3-244.jar +java -jar preflight-upgrade-0.3.1.jar check --server /path/to/server --paper /path/to/paper-26.3-244.jar ``` 1. Copies the server to a folder next to it, named `.preflight-check-