Repository navigation
Add a browser journey harness and an isolated review stack - #344
Merged
Merged
Conversation
A vanilla server has no mods directory, so ListMods returns 400 and the RPC interceptor toasts "this server type does not support mods" on a tab that already says the same thing in its empty state.
Reviewing the console by hand does not scale and leaves no evidence. scripts/review/journey.mjs drives a real Chromium through a JSON plan, asserts what a person would assert, settles animations before each screenshot, and writes a Markdown report plus one image per step. It also records failed HTTP responses and console errors, which is how a 400 on a tab that looks fine gets noticed at all. devstack.sh starts an isolated panel: its own port, data directory and installation id, its own admin, node and starter server. Reviewing against a shared instance means another person's click can land in your report.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Reviewing the console by hand does not scale and leaves no evidence.
scripts/review/journey.mjsdrives a real Chromium through a JSON plan: log in (or bootstrap the first admin), click through the app, assert what a person would assert, and write a Markdown report plus one screenshot per named step.It is deliberately not an end-to-end suite. It exists for the things a unit test cannot see.
What it found in one afternoon
Invalid Dateon the audit log, the backup list and the new lifecycle journal — protobuf-es v2 timestamps have notoDate(). Fixed in Expose the lifecycle journal over RPC and in the console #342.ListModsreturnsinvalid_argument: this server type does not support mods, and the RPC interceptor turns every unmapped error into a toast — so the tab showed a correct "Mod loader incompatible" empty state and a red error toast at the same time. Fixed here by not making the call.server.propertiesin a uid-1000 data directory. Fixed in Hand panel-written server files to the game container's user #343.Details
FAILED-<name>.png.scripts/review/devstack.shstarts an isolated review panel: its own port (first free from 8099), its own data directory and installation id, its own admin, local Docker node and starter server, and it publishes the chosen port.That last part is not optional. While reviewing against the shared dev instance, another agent's
adminsession deleted both of its servers mid-journey; the report then described their action, not my change. The review stack has its own installation id, so the panel correctly ignores another installation's containers ("Ignoring server container … it belongs to another Carbon Panel installation").Verification
bun run check0 errors,bun run test69 passplan-console.jsonagainst the isolated stack: PASS, no failed requests, no console errorsplan-lifecycle.json: PASS — started a real vanilla server, waited for "Server healthy and processing ticks", saw the journal record the start and the live console reachDone (5.898s)!, then stopped it cleanlyRefs OSS-247, OSS-245