site serve and view: the by-hand checks that need a spare VM and a browser #243
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/tools#243
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finish the by-hand checks of
allod site serveandallod site viewthat need a spare VM and a browser, so that every row of the documentation's table is something seen and not something expected.Primary goals:
viewreturns by itself when the VM shuts down or the link drops, and how long that takes is written down.viewwithout--vmand without--port, finding both from the inventory.What is already seen
The commands landed in allod/tools#242 for allod/tools#240. In the VM, against real Nix and systemd:
tests/site-preview-by-hand.shpasses 9 of 9, and the zola, plain HTML and Vite examples each serve, are found again, and stop.From the hypervisor, run by the owner against a stand-in site served in
allod-devunder the idallod/tools:allod site view --vm allod-dev --port 18520 allod/toolshttp://127.0.0.1:18520and held the terminal until Ctrl-Css -ltn | grep 18520, after Ctrl-Cssh -- allod-dev systemctl --user is-active allod-preview-allod-tools, after Ctrl-Cactive: the server kept runningallod site serve --stop --vm allod-dev allod/toolsallod-preview-allod-tools is not runningEarlier, also from the hypervisor:
systemctl --userworks in a non-interactivessh <vm> <command>, andallodis on the path of such a command.What is left
Each is one observation. A result that contradicts
docs/allod-site-preview.mdchanges the document, or becomes a bug report of its own.allod site view <site>, open the printed addressallod site view --vm <vm> --port <n> <id>for a repository whose flake has nopreviewapp and no preview runningapps.<system>.preview;viewexits 1 and forwards nothingviewfinds the VM and the port itselfpreview_portand which one machine invm-specs.jsonlists:allod site view <site>--vmand--portviewrunning, shut the VM downviewreturns by itself; note after how many secondsviewrunning, cut the VM's network without shutting it downviewreturns within about 15 seconds (ServerAliveInterval=5,ServerAliveCountMax=3); the server is unaffectedsshis killed outrightkill -9thesshthatviewbecameviewrunsallod site servestarts it againssh -- <vm> systemd-run --user --collect --quiet --unit allod-preview-q2 -- sleep 600, wait a minute,ssh -- <vm> systemctl --user is-active allod-preview-q2activemeans a preview started from the hypervisor survives;inactivemeans it goes with the session, and the help text says so. Lingering is not turned on to hide itA stand-in is enough for every row but the fourth: any directory in the VM that is a git repository with a
site.tomland the plain HTML flake fromdocs/allod-site-preview.md, served withallod site serve --port <n>from inside it.Scope
In scope: running the checks above, correcting
docs/allod-site-preview.mdand the help text where a result differs, and replacing the "not measured" sentence.Not in scope: a change to how either command behaves. A check that fails is reported as a bug and fixed under its own issue.
Trigger: a VM is free to be shut down and logged out of. With two dev VMs in use and a third not fitting on the hypervisor, that is when one of the two is idle.