Repository navigation
feat(scripts): live-test upgrade runs the head build on Base's home - #653
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… base before deleting Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… so at once guest acts on the upgraded server after upgrade. restart and status say plainly that the server runs on Base's upgraded home. A start whose server exits under node --watch returns with the log up to the exit instead of waiting out its budget, and a start that another command stopped says so. Children run with experimental warnings silenced, and test homes turn provider update checks off so no update toast covers the page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reached
This review includes 5 billable files and costs up to $1.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 10 minutes for your next included review. View limit details
Comment |
7 of 8 tasks
This branch was successfully deployed
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.
Problem
The live-test skill's "Migrations" row asks for a rehearsal, but the rig had no way to run one:
--base <ref>gives two servers on two homes, so the head build never opens a home the base build wrote. In the people-and-access round (#638) testers did it by hand, by stopping Base, copying its home and moving the base checkout to the head commit, which the skill forbids.What changed
node scripts/j5/setup-agent-live-test.ts upgrade, in a--base <ref>build only (shape approved by Jackson on 2026-10-18):T3CODE_PORT_OFFSETplus an explicit--portand--dev-url, so it takes exactly those and never searches for free ones. Before starting, the script refuses if either port has a listener, or if the port is the live one (5773) or the inherited one..j5code/live-test/upgrade/. It is classified and signalled like every other server: pid, start time, cwd.upgrade/home-beforewhile everything is stopped, then records the upgrade in the manifest. Each laterupgradestops the server, puts that copy back and upgrades again.status,restart,stop,guestand a bare--base <ref>start act on the upgraded server.guestuses the base's test project and this worktree's code. The base build never starts again, because it would be opening a home a newer build migrated.rebuildstops everything and removes the base checkout and the root, as before. Onlyupgradeprints "UPGRADED";statusandrestartsay "RUNNING", with a line saying the server runs on Base's home upgraded to .rebuildnow asks git whether the base checkout has edits before deleting the base's.j5code. Before, it deleted that home and then reported "Nothing else was deleted" when git refused. Withupgradethat would have lost the upgraded home.node --watch(for example, on a failed migration), the start prints the log up to the exit and how to stop it, instead of waiting out its budget. A start that another command stops while it waits says so, instead of reporting an unverified process group. That happened in testing: the leader had exited whilestopended the group.--disable-warning=ExperimentalWarningadded toNODE_OPTIONS, so SQLite's warning no longer buries the output. No other warnings are silenced.enableProviderUpdateChecks: false). The "Updates Available" toast covered the People page's top-right controls.upgradesets the same thing in Base's home, since a base generator from before this change leaves the checks on. The kept copy is left as Base wrote it.--basebuild or Base never started. It does not refuse an old base: one too old for the head's migrations is a real upgrade path.upgrade.Live testing
Run by the author (Claude Opus 5.5) on this host at
7b09506fbc, with the cache-line, rebuild-check and test changes since verified live too. The flags were--base origin/j5/main(747aa79), with a throwaway migration 063, since dropped, that creates and fills a probe table.guest, signed in in a second tab. Live.upgrade: took 11 s. The listeners on Base's ports run from the head worktree. Base's home reached migration 63 with one probe row, and the kept copy stayed at 62. Live, checked in the database.upgradeagain: the database came back from the copy (one probe row with a new timestamp, and the post-upgrade turn gone from the database). Live.t3code:connection-runtime), with a cursor ahead of the restored home. Deleting that database and reloading keeps the sign-in and shows the right state. The repeat's "Next" line says so, and so does the skill.restart,stop,status(running and stopped), bare--basestart,guestrefusal: live.rebuildwith an edited base file refuses before deleting anything, and the upgraded home stays. A cleanrebuildremoves the base worktree registration andupgrade/.upgradeon a default build refuses. Live.upgrade), and GPT-6.1 Sol (a probe migration that fails on old data, which it found and fixed). All passed. Reports:test-reports/j5code-test-upgrade-big-jump.md,j5code-test-upgrade-probe-a.md,j5code-test-upgrade-probe-c.md.8715cbffa9, author live run with--base origin/j5/main(3a55dfe) and the probe migration applied uncommitted: live.--basesetup printed 89 lines with no ExperimentalWarning.upgradeonto the failing migration returned in 5 s with the migration error and the stop command.stopthen ended it cleanly.stoprun while a waitingupgradewas starting: theupgradeprinted "The dev server was stopped by another command while this one waited for it to start."upgrade, thengueston the upgraded server. The People page listed both guests as "added by Test owner", with no update toast.restartprinted RUNNING and the "Runs … Base's home, upgraded to …" line.settings.jsonboth haveenableProviderUpdateChecks: false.8715cbffa9covers each of the five changes made after the scenario testers, so no further peer run.Checklist
rebuildcheck guards the stateupgradecreates.upgradeTarget,upgradeRunner(against the real dev runner's--dry-run),formatUpgrade, path guards, parsingscripts/j5/and.agents/skills/j5-live-test/are J5-owned)upgradeagain starts over andrebuildends itBuilt by Claude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code