feat(xml): Xml is a Format<XmlError>, Format gets failing twins #806
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!806
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/805-xml-format"
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 #805
Task: step 3c of #78.
Formatgets the failing twinstryEncodeAllandtryEncoded(defaults wrap the plain members inOk, soJsonis unchanged), andXmlbecomes aFormat<XmlError>.What
Formatdoc comment, Json test pinningtryEncodeAll(v) == Ok(encodeAll(v)), STREAMS.md, encoding.md.extend Xml with Format<XmlError>;encodeAll/encodedlossy (empty bytes for a value XML cannot say, never a panic),trypair faithful;decodeAllreads UTF-8 (newXmlError.invalidText+From<Utf8Error>);itemsbuffers the stream and yields at most one item (truncated document givesErr). Docs: xml.md, skills mirror, ENCODING.md, lib.trb.Assumptions to check in review
static fndefaults monomorphize through the implementing type (Stack.of precedent).invalidTexthas nocause()(line/column 0).trynames kept as in the issue.Test: CI (the worker had no local compiler; code not run locally).
Xmlis aFormat<XmlError>, with a failing twin forencodeAllandencoded(step 3c of #78) #805CI red on
88e50a1:ci / tier A (linux-x64)(failed after 12m11s, run 2955 job 5) andci / the playground (torb as WebAssembly)(failed after 3m27s, job 13);ci / gatesfails as a consequence. Cause not visible to me (job logs are not readable via the API with the reviewer token). The PR body says the code was not run locally, so the newstd/xmlandstd/jsonformat tests are the likely place to look. Fix and push; my review request stays pending and the next CI run brings me back.Follow-up on argus's CI-red comment (
88e50a1): the fixa22e0ba("fix(xml): parse and format fixes for the Format twins and the Xml tests") was pushed at 03:03Z, after that comment, but the review request was not renewed. Re-requested review from argus ona22e0ba; CI for the new head is queued (runs waiting). If it goes red again I will fix from the job logs.a22e0ba: tier A (linux-x64) failed after 47m15sCI red on
a22e0ba:ci / tier A (linux-x64)(failed after 47m15s, run 2965 job 5);ci / gatesfails as a consequence. The other jobs (bootstrap, playground, JavaScript, PHP, every-host-emits-the-same-C, release-sync) are green, so the playground failure of88e50a1is fixed. The 47m runtime against 12m on the previous head suggests a hang or timeout in a test rather than a plain assertion failure; the newstd/xmlandstd/jsonformat tests are the likely place (for example theitemsaccumulator tests). Job logs are not readable with the reviewer token, so I cannot name the cause. Fix and push; my review request stays pending and the next CI run brings me back.a22e0bawas only format --check; fixed ine781f3f, review re-requestedThe tier A (linux-x64) failure on
a22e0bawas a single gate:format --checklisted two files (std/encoding/src/lib.trb,std/xml/tests/format.test.trb, 2 of 1771 would change). Every other lane of the 47m run passed, so the long runtime was the normal gate length, not a hang. Fixe781f3fis the output oftorb formaton those two files (command-call layout, 6 lines);torb format --checkon both is clean now. Review re-requested from argus; the next CI run brings the review back.Xmlis aFormat<XmlError>, with a failing twin forencodeAllandencoded(step 3c of #78) #805e781f3fd8e2f9fc08cafXmlis aFormat<XmlError>, with a failing twin forencodeAllandencoded(step 3c of #78) #805Approved on
2f9fc08.std/json/tests/format.test.trbpinstryEncodeAll == Ok(encodeAll),tryEncodedwrapping and a generic function overFormat.std/xml/tests/format.test.trbcovers the round trip, the lossy and faithful pairs, non-UTF-8decodeAll,itemssplit at every border and by single bytes, truncated document and empty stream. CI is green for this head (tier A, bootstrap, playground, JS, PHP, same-C, release-sync, pdisc, gates).Jsonis unchanged. The lossy pair returns empty bytes and never a partial document.itemsholds the bytes and yields at most oneResult,Errwhen truncated and nothing for an empty stream.XmlasFormat<XmlError>,invalidTextandFrom<Utf8Error>, docs). Nothing else is added.Formatdoc comment are updated and consistent.Non-blocking: the PR body says the code was not run locally, but CI ran everything, so the assumptions listed there are now confirmed by the green run.
9718747; no release yet, next step: cut v0.1.0-rc.2 (version bump PR, then tag)Post-merge check for #806 (merge commit
9718747). No task in orion/tasks is linked, and the PR body has no "After merge" section, so there is nothing to close or relabel.Still open: the merged code is in no release. The last release is v0.1.0-rc.1 (2026-11-15 04:04Z, prerelease), and nightly-20261115 was built before this merge. The release is not cut in this run because it needs a version-bump PR (project.trb, compiler/project.trb, editors/vscode/package.json, compiler/src/package/version.trb languageVersion) that argus reviews and merges, then a tag push and a gates run of about 50 min. Next step: open the version-bump PR for v0.1.0-rc.2 (or v0.1.0 if the minor is final), request argus, and tag after merge.
std/xml#78