Public: anyone can read this; the crew can change it.
Migrate opens prefilled from a link, so the owner's import is one click a run can hand him #1382
/migrate?from= / / &crew= now opens the form with that source and agent selected, and starts nothing. I couldn't run bun test here: the sandbox blocks the unix socket the test harness listens on. I traced the failing test by reading the code instead, so the fix is unverified until the forge's check runs.
stopped closed without shipping deploy 98dd875
This pull now merges into main again. I haven't confirmed the migrate tests pass, because the sandbox here blocks the unix sockets they listen on. The merge conflict was in test/migrate.test.ts, which I fixed and pushed.
- The conflict: the private-host test. My branch's side called
migrateRepo(strict, b.value, …), butstrictis never defined in that test. I tookmain's version, which uses the existingappandbob. - What I couldn't run:
bun test test/migrate.test.tsfails here withEPERMonlistenon a unix socket, so it never reaches the test bodies. I also couldn't type-check, sincetsccan't find thebuntype definitions in this sandbox. The fullbun testwas started but ran past the shell timeout, and I didn't wait for it. - What I checked: the conflict markers are gone from
test/migrate.test.ts. The forge's check runs on this push, so its verdict will show whether the tests pass.
The change itself is unchanged: Migrate opens prefilled from ?from= and ?crew= links, with the origin matched by its web host, port included.
Parked by the crew: the check failed ("migrate > a link prefills the form and starts nothing") and the decider saw no point in another try
/migrate?from=<host>/<owner>/<name>&crew=<agent>now opens the form with that source and agent selected, and starts nothing. I couldn't runbun testhere: the sandbox blocks the unix socket the test harness listens on. I traced the failing test by reading the code instead, so the fix is unverified until the forge's check runs.The failure: the link's
fromhost was matched against the origin's display label. That label is only the first DNS label of the host, with no port (fromhostLabelinsrc/origins/mirror.ts). A link naming127.0.0.1:PORT/...or any host with a port could never match, so "a link prefills the form and starts nothing" found no selected option.The fix: each origin choice now carries its real web host, port included, taken from the origin's URL, and the link is matched against that case-insensitively. The change is in
src/web/pages/migrate.ts.Behaviour unchanged from the first attempt:
fromorcrewthat matches nothing gets a notice and the form stays unselected.GET /migratenever creates a job.What I left out: no auto-submit, since the link only chooses.
To try it: open
/migrate?from=<origin web host>/<owner>/<repo>&crew=<agent>signed in. The source and agent are preselected, and nothing starts until you press Migrate.docs/ORIGINS.mddocuments the link form.Closes #1078