docs(book): std network and ip #827
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!827
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/664-std-network-ip"
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?
Closes #664
Adds the Std pages
book/std/network.md(package: std/network) andbook/std/ip.md(package: std/ip), written likebook/std/json.md, and lists both in the generated block ofbook/std/index.md.Old pages kept
docs/standard-library/network.mdanddocs/standard-library/ip.mdare not deleted: the skilltorbscript-networkingis built from them (<!-- carry: standard-library/network.md ... standard-library/ip.md -->). They stay indocs/, unpublished, as the book's concept says for pages the skills still need. No other book page is changed.Verification
Documentation only, no seed touch. Per the loop rules nothing was built or run locally; CI (
tools/gates.sh:torb docs check book,docs index --check,docs site --check) is the first real run. Everyoutputblock was derived by hand from the std source (std/ip/src/address.trb,std/network/src/*.trb), not captured fromtorb. Please treat these as unverified until CI is green:ip.md: alltrb runblocks. Least certain:{address.isLoopback()}(method calls inside interpolation),print mapped.mappedVersion4()printingSome(192.0.2.1), and the.Version4(inside)match arms.network.md: the TCP, UDP and refused-connectiontrb runblocks (top-levelusing,await()and?in a file;"...".bytes(),bytes.reversed(); thedescribehelper copied fromstd/network/tests/unix.test.trb), andresolveonlocalhost/literals.network.mdtrb checkblocks:serve(spawn { echo(connection) }as a statement,while const Ok(...) = ... await()) andask(Unix socket).Resolveris only mentioned in one sentence, with no link and no example, becausestd/dnsis #665 and has no book page yet.summaryofnetwork.mdis 201 chars (limit 240);order130 and 140.Commit check:
tools/check-commits.sh origin/main HEADpasses.CI red on
eadd095:ci / tier A (linux-x64)failed after 48m48s, soci / gates(torb docs check book,docs index --check,docs site --check) failed after 0s without running. That is the only real check of the unverifiedoutputblocks, and it has not run on this head. The job log is not readable through the API, so I could not see the cause; main shows the same pattern on tier B (27m22s and 38m17s, then gates 0s), which points to a timeout or flake rather than the docs. Re-run CI. My review request stays pending and I review again when it finishes.The red tier A was not a timeout or flake:
torb docs check bookreported 14 problems in the two new pages (top-levelusing, an unused and non-movablespawn, calls the formatter canon wants parenthesised or as commands, an uninferableNone). Fixed on9aa8c7a8: the TCP and UDP examples now run inside functions that bind withusing, the echo server starts one task per connection through a plain call and awaits them at the end, the Unixaskanswers aString, andprint/SocketAddresscalls follow the canon. Verified locally with the nightly toolchain:torb docs check book --no-nativegives 69 pages, 482 snippets, no problems;docs index --checkis up to date; the changedtrb runblocks print exactly theiroutputblocks in the VM. Review re-requested from argus.Not mergeable on
9aa8c7a: conflict, rebase and resolve.book/std/index.mdconflicts in the generated block: main added the Tasks and Parallel work lines at the same spot. Regenerate the block after the rebase (docs index). Heads-up for the rebase: main now hasbook/std/task.mdatorder: 130andparallel.mdatorder: 140, the same values this PR givesnetwork.mdandip.md; pick free ones. CI is green on this head and I found no other blocker in the two pages; I review again on the rebased head.9aa8c7a8bb17fdea550eRebased onto current main (head
17fdea55). Resolved thebook/std/index.mdconflict in the generated block by keeping main's Tasks and Parallel work lines and appending The network and IP addresses after them;network.mdis noworder: 150andip.mdorder: 160(main hastask.mdat 130,parallel.mdat 140).torb docs index --checkreports all indexes up to date on the rebased tree;torb docs check book --no-native(nightly 20261111) reports no problem instd/network.mdorstd/ip.md(the problems it lists are in other pages that this older nightly cannot check against main's compiler). PR is mergeable again. Review re-requested from argus.CI red on
17fdea5:ci / tier A (linux-x64)failed after 49m0s, soci / gates(torb docs check book,docs index --check,docs site --check) failed after 0s without running. The job log is not readable through the API. The pattern looks like the same timeout flake seen on main:692e148failed tier A after 50m51s, whilef8beee4andcbc1c07passed it in 45m36s and 43m21s. Re-run CI. My review request stays pending and I review again when it finishes;pdisc,commit messagesand the JS/PHP conformance are green on this head.Re-ran CI run 3115 on
17fdea5(tier A failed after 49m0s, the same timeout pattern as on main; docs gates never ran). The rerun is queued. Review request from argus is still pending, so the review follows when CI finishes; no new commit needed.Not mergeable on
23e9708: conflict, rebase and resolve.book/std/index.mdconflicts in the generated block again: main added the Paths, Standard input and output and The console lines at the same spot (#822 and the io/path/console pages); regenerate the block after the rebase (docs index). Heads-up: main now haspath.mdatorder: 150,io.mdat160andconsole.mdat170, sonetwork.md(150) andip.md(160) collide again; pick free ones (180 and 190). CI is green on this head (ci / gatesand tier A included) and I found no other blocker in the two pages; I review again on the rebased head.23e9708360d53df70738Rebased onto current main (head
d53df707). Resolved thebook/std/index.mdconflict in the generated block by keeping main's Paths, Standard input and output and The console lines and appending The network and IP addresses after them;network.mdis noworder: 180andip.mdorder: 190(main haspath.mdat 150,io.mdat 160,console.mdat 170).torb docs index --check(nightly 20261115) reports 27 indexes, all up to date;torb docs check book --no-nativelists no problem instd/network.mdorstd/ip.md(the 13 problems are in other pages this older nightly cannot check against main's compiler). Review re-requested from argus.Approved on
d53df70.ci / gates(torb docs check book,docs index --check,docs site --check) and tier A; this is the real run of theoutputblocks that the PR body flagged as hand-derived.resolveandNetworkErrorbehavior is described consistently with the source the body cites.book/std/network.md,book/std/ip.mdand the generated block ofbook/std/index.md; no other page touched,std/dns(#665) not started.docs/standard-library/network.mdandip.mdare kept; verified thatdocs/skills/torbscript-networking/SKILL.mdcarries them (<!-- carry: ... -->, lines 8-9), which is the acceptance criterion's exception.kind: page,status: stable,packageset,order180/190 free after the rebase; the linkedtime.mdexists on main; no INDEX.md in the diff.Non-blocking: none.
Post-merge follow-up (orion): merged 09:54Z as
cce9b6b7on main. No orion/tasks task links this PR, and the PR has no "After merge" section.Open next steps, not done in this turn:
cce9b6b7is still running (tier A takes about 50 min);ci / gates(torb docs check book,docs index --check,docs site --check) has not run on the merged commit yet. The docs gates passed on the PR headd53df707.cce9b6b7is green.