feat(php): lists, text slices and the manifest walk (slice 4B of #64) #839

Merged
argus merged 7 commits from loop/836-php-lists into main 2026-11-16 22:45:28 +00:00
Collaborator

Task: torbscript/language#836. Refs #64. Closes #836.

What

  • runtime/php/list.php (TorbList plus the torb_list_* functions, torb_text_slice and torb_text_byte_at), emitted only into a program that reaches a list (a program with no list has no list.php code). Panic texts follow the C runtime.
  • PHP back end (compiler/src/backend/php/*): list natives with release functions and locations; cli/build.trb passes list.php.
  • Manifest walk (compiler/tests/php-natives.test.trb): every manifest entry with no PHP form must be on tests/conformance/php.deferred (tags 4C, 5, 6, 8, 55, vm, unassigned); a stale line fails it.
  • tests/conformance/php-lists.trb (one set of expected files shared with the other legs), php-lists-panic.trb, php-lists-close.trb (set, replace and clear on a Buffer<Door>: the close order, last first), php-lists-range-panic.trb (a reversed replace range) and php-lists-text-panic.trb (sliceBytes ending inside é). php-lists-close.allocations is unbudgeted until --update-budgets runs on linux x86_64.
  • php.allow grows by those five programs. Nothing removed. buffer-list.trb could not be added (see below), so AC 3 is only partly met.
  • tools/php-memory.sh and tests/php-output/memory-*.trb (10^6 Int, 10^6 byte, 10^5 record elements), run on 5.6.40, 7.4.33 and 8.4 by conformance-php; PHP.md section 7 records the figures CI printed (bytes per element, C / 5.6.40 / 7.4.33 / 8.4: Int 8 / 144 / 33 / 16, byte 1 / 144 / 33 / 16, record of two Int 16 / 357 / 139 / 118).
  • PHP.md: row 4B done, new row 4C, "What slice 4B left out".

Moved to 4C

  • The MakeUnique item ("a copy shares the array until the first write") is not part of this slice and moves to slice 4C (PHP.md row 4C).

Left off php.allow

  • shared-top-level-const.trb: uses spawn (slice 6).
  • buffer-list.trb, bankers-queue.trb, cons-stack-persists.trb, collect-through-wrappers.trb, buffer-field-derived.trb: each also reaches a kernel native that belongs to slice 4C (torb_text_show_nested, torb_hash_i64/torb_hash_u64/torb_hash_combine, or torb_parse_i64); the PHP build refuses them by name. They are listed in the PHP.md "What slice 4B left out" paragraph for 4C.

Test

  • Local: torb format --check, php-natives.test.trb (12 tests), tools/check-commits.sh origin/main HEAD clean.
  • Forge CI only: sh tools/gates.sh a and conformance-php (5.6.40, 7.4.33, 8.4, guards, output, int vectors, dispatch, memory).
Task: torbscript/language#836. Refs #64. Closes #836. ## What - `runtime/php/list.php` (`TorbList` plus the `torb_list_*` functions, `torb_text_slice` and `torb_text_byte_at`), emitted only into a program that reaches a list (a program with no list has no `list.php` code). Panic texts follow the C runtime. - PHP back end (`compiler/src/backend/php/*`): list natives with release functions and locations; `cli/build.trb` passes `list.php`. - Manifest walk (`compiler/tests/php-natives.test.trb`): every manifest entry with no PHP form must be on `tests/conformance/php.deferred` (tags 4C, 5, 6, 8, 55, vm, unassigned); a stale line fails it. - `tests/conformance/php-lists.trb` (one set of expected files shared with the other legs), `php-lists-panic.trb`, `php-lists-close.trb` (`set`, `replace` and `clear` on a `Buffer<Door>`: the close order, last first), `php-lists-range-panic.trb` (a reversed `replace` range) and `php-lists-text-panic.trb` (`sliceBytes` ending inside `é`). `php-lists-close.allocations` is `unbudgeted` until `--update-budgets` runs on linux x86_64. - `php.allow` grows by those five programs. Nothing removed. `buffer-list.trb` could not be added (see below), so AC 3 is only partly met. - `tools/php-memory.sh` and `tests/php-output/memory-*.trb` (10^6 `Int`, 10^6 byte, 10^5 record elements), run on 5.6.40, 7.4.33 and 8.4 by `conformance-php`; PHP.md section 7 records the figures CI printed (bytes per element, C / 5.6.40 / 7.4.33 / 8.4: `Int` 8 / 144 / 33 / 16, byte 1 / 144 / 33 / 16, record of two `Int` 16 / 357 / 139 / 118). - PHP.md: row 4B done, new row 4C, "What slice 4B left out". ## Moved to 4C - The `MakeUnique` item ("a copy shares the array until the first write") is not part of this slice and moves to slice 4C (PHP.md row 4C). ## Left off php.allow - `shared-top-level-const.trb`: uses `spawn` (slice 6). - `buffer-list.trb`, `bankers-queue.trb`, `cons-stack-persists.trb`, `collect-through-wrappers.trb`, `buffer-field-derived.trb`: each also reaches a kernel native that belongs to slice 4C (`torb_text_show_nested`, `torb_hash_i64`/`torb_hash_u64`/`torb_hash_combine`, or `torb_parse_i64`); the PHP build refuses them by name. They are listed in the PHP.md "What slice 4B left out" paragraph for 4C. ## Test - Local: `torb format --check`, `php-natives.test.trb` (12 tests), `tools/check-commits.sh origin/main HEAD` clean. - Forge CI only: `sh tools/gates.sh a` and `conformance-php` (5.6.40, 7.4.33, 8.4, guards, output, int vectors, dispatch, memory).
test(php): measure list memory on all three interpreters at 10^6 and 10^5 elements
Some checks failed
ci / commit messages (pull_request) Successful in 6s
ci / what the change touches (pull_request) Successful in 7s
pdisc / pdisc (pull_request) Successful in 11s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 20s
ci / bootstrap (linux-x64) (pull_request) Successful in 4m45s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m56s
ci / every host emits the same C (pull_request) Successful in 10m4s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m11s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 4m45s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Failing after 8m21s
ci / gates (pull_request) Has been cancelled
ci / tier A (linux-x64) (pull_request) Has been cancelled
ci / tier B (linux-x64) (pull_request) Has been cancelled
ci / pack the seed (pull_request) Has been cancelled
ci / archives (pull_request) Has been cancelled
88dc777c40
orion requested review from argus 2026-11-16 13:58:46 +00:00
test(php): keep five list programs off php.allow until the kernel natives of 4C
All checks were successful
ci / commit messages (pull_request) Successful in 8s
ci / what the change touches (pull_request) Successful in 9s
pdisc / pdisc (pull_request) Successful in 16s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 17s
ci / bootstrap (linux-x64) (pull_request) Successful in 4m17s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m34s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 4m6s
ci / every host emits the same C (pull_request) Successful in 9m47s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 1m48s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 6m53s
ci / tier A (linux-x64) (pull_request) Successful in 45m3s
ci / tier B (linux-x64) (pull_request) Successful in 41m18s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
658f4650e0
argus requested changes 2026-11-16 17:04:40 +00:00
Dismissed
argus left a comment

Review of 658f465 (CI green on this head).

Checklist: CI ok; correctness ok (panic texts, argument order and check order of list.php match runtime/list.c, runtime/text.c and runtime/panic.c); scope ok (matches #836, no new automations); security/secrets ok; data n/a; docs: finding 1; tests: finding 2.

Findings

  1. [blocker] docs/design/PHP.md section 7, row "The memory of a record object, an Int list element and a byte-buffer element ...": the cell ends in the literal placeholder FIGURES. #836 AC 5 requires the figures recorded there and the statement marked pinned or amended. CI has now printed them on 5.6.40, 7.4.33 and 8.4: copy them from the conformance-php log (sh tools/php-memory.sh step) into the row, with the C sizes, and mark it pinned or amended. Do not merge a placeholder into the design record.
  2. [blocker] Missing tests for changed logic. The new dropsElements/releaseOfElements path (release function passed to torb_list_set, torb_list_replace, torb_list_clear) and the panics of the text and range natives have no program that reaches them. #836 "Files" lists them for php-lists.trb/php-lists-panic.trb: "a Close element dropped by set and clear", "a reversed range", "a slice inside a multi-byte character". Today php-lists.trb only closes Doors through scope end (the release function of the list), and php-lists-panic.trb only covers insert past the end. Add: (a) a Buffer<Door> with set, replace and clear that prints the close lines in the C order (last dropped first), and (b) panic programs (one panic per program) for a reversed slice/replace range and for sliceBytes inside é, each with the shared .stderr/.exit files, and join them to php.allow. A null release function passed where a Close element needs one would otherwise go unnoticed.
  3. [suggestion] AC 3 asks for at least buffer-list; the PR reaches it only partly and says why (torb_text_show_nested is a 4C native). With Closes #836 the issue closes with that AC unmet: amend the AC in #836 (or leave a comment there) so the record matches. Likewise the MakeUnique / "Copy shares the array until the first write" item of #836 "What" is dropped to 4C (PHP.md row 4C): say so in the PR body, not only in the design record.

Non-blocking: none beyond 3. Findings 1 and 2 are the only blockers; the rest of the diff looks right.

Review of 658f465 (CI green on this head). **Checklist:** CI ok; correctness ok (panic texts, argument order and check order of `list.php` match `runtime/list.c`, `runtime/text.c` and `runtime/panic.c`); scope ok (matches #836, no new automations); security/secrets ok; data n/a; docs: finding 1; tests: finding 2. **Findings** 1. [blocker] `docs/design/PHP.md` section 7, row "The memory of a record object, an `Int` list element and a byte-buffer element ...": the cell ends in the literal placeholder `FIGURES`. #836 AC 5 requires the figures recorded there and the statement marked pinned or amended. CI has now printed them on 5.6.40, 7.4.33 and 8.4: copy them from the `conformance-php` log (`sh tools/php-memory.sh` step) into the row, with the C sizes, and mark it pinned or amended. Do not merge a placeholder into the design record. 2. [blocker] Missing tests for changed logic. The new `dropsElements`/`releaseOfElements` path (release function passed to `torb_list_set`, `torb_list_replace`, `torb_list_clear`) and the panics of the text and range natives have no program that reaches them. #836 "Files" lists them for `php-lists.trb`/`php-lists-panic.trb`: "a `Close` element dropped by `set` and `clear`", "a reversed range", "a slice inside a multi-byte character". Today `php-lists.trb` only closes `Door`s through scope end (the release function of the list), and `php-lists-panic.trb` only covers `insert` past the end. Add: (a) a `Buffer<Door>` with `set`, `replace` and `clear` that prints the `close` lines in the C order (last dropped first), and (b) panic programs (one panic per program) for a reversed `slice`/`replace` range and for `sliceBytes` inside `é`, each with the shared `.stderr`/`.exit` files, and join them to `php.allow`. A `null` release function passed where a `Close` element needs one would otherwise go unnoticed. 3. [suggestion] AC 3 asks for at least `buffer-list`; the PR reaches it only partly and says why (`torb_text_show_nested` is a 4C native). With `Closes #836` the issue closes with that AC unmet: amend the AC in #836 (or leave a comment there) so the record matches. Likewise the `MakeUnique` / "Copy shares the array until the first write" item of #836 "What" is dropped to 4C (PHP.md row 4C): say so in the PR body, not only in the design record. Non-blocking: none beyond 3. Findings 1 and 2 are the only blockers; the rest of the diff looks right.
test(php): drop order of set, replace and clear and the panics of a reversed range and a cut inside a character
Some checks failed
ci / commit messages (pull_request) Failing after 7s
ci / what the change touches (pull_request) Successful in 7s
ci / gates (pull_request) Has been cancelled
ci / which runners exist (pull_request) Has been cancelled
ci / bootstrap (linux-x64) (pull_request) Has been cancelled
ci / tier A (linux-x64) (pull_request) Has been cancelled
ci / tier B (linux-x64) (pull_request) Has been cancelled
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been cancelled
ci / bootstrap and conformance (windows-x64) (pull_request) Has been cancelled
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been cancelled
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been cancelled
ci / every host emits the same C (pull_request) Has been cancelled
ci / the VS Code extension (editors/vscode) (pull_request) Has been cancelled
ci / the playground (torb as WebAssembly) (pull_request) Has been cancelled
ci / conformance (JavaScript under Node.js) (pull_request) Has been cancelled
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Has been cancelled
ci / pack the seed (pull_request) Has been cancelled
ci / archives (pull_request) Has been cancelled
pdisc / pdisc (pull_request) Has been cancelled
ab7393d117
Pins the memory figures of PHP.md section 7 from the conformance-php run.
orion force-pushed loop/836-php-lists from ab7393d117
Some checks failed
ci / commit messages (pull_request) Failing after 7s
ci / what the change touches (pull_request) Successful in 7s
ci / gates (pull_request) Has been cancelled
ci / which runners exist (pull_request) Has been cancelled
ci / bootstrap (linux-x64) (pull_request) Has been cancelled
ci / tier A (linux-x64) (pull_request) Has been cancelled
ci / tier B (linux-x64) (pull_request) Has been cancelled
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been cancelled
ci / bootstrap and conformance (windows-x64) (pull_request) Has been cancelled
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been cancelled
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been cancelled
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been cancelled
ci / every host emits the same C (pull_request) Has been cancelled
ci / the VS Code extension (editors/vscode) (pull_request) Has been cancelled
ci / the playground (torb as WebAssembly) (pull_request) Has been cancelled
ci / conformance (JavaScript under Node.js) (pull_request) Has been cancelled
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Has been cancelled
ci / pack the seed (pull_request) Has been cancelled
ci / archives (pull_request) Has been cancelled
pdisc / pdisc (pull_request) Has been cancelled
to cdf657619a
Some checks failed
pdisc / pdisc (pull_request) Successful in 14s
ci / commit messages (pull_request) Successful in 7s
ci / what the change touches (pull_request) Successful in 7s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 18s
ci / bootstrap (linux-x64) (pull_request) Successful in 4m36s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 5m54s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 5m41s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 1m58s
ci / every host emits the same C (pull_request) Successful in 10m47s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Failing after 6m36s
ci / tier B (linux-x64) (pull_request) Failing after 34m37s
ci / gates (pull_request) Has been cancelled
ci / tier A (linux-x64) (pull_request) Has been cancelled
ci / pack the seed (pull_request) Has been cancelled
ci / archives (pull_request) Has been cancelled
2026-11-16 17:13:00 +00:00
Compare
test(php): read the list after the last append in php-lists-close
Some checks failed
ci / commit messages (pull_request) Successful in 8s
ci / what the change touches (pull_request) Successful in 8s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 15s
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 22s
ci / bootstrap (linux-x64) (pull_request) Successful in 4m20s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m18s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m52s
ci / every host emits the same C (pull_request) Successful in 10m1s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m15s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 7m23s
ci / tier A (linux-x64) (pull_request) Failing after 44m8s
ci / tier B (linux-x64) (pull_request) Successful in 45m53s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
fc284b412d
The checker rejects a write to a local that is never read again, so the
program did not build on any leg. Guard the closing print on the length.
Author
Collaborator

Both red jobs of the CI run on cdf65761 (tier B (linux-x64) and conformance (PHP 5.6, 7.4 and 8.4)) failed on the same single program: tests/conformance/php-lists-close.trb did not build on any leg. The checker rejects row.append Door("e") as "This change has no effect: row is never read again" (line 32), because the last statement of rooms() wrote to the list and nothing read it afterwards. Every other program passed (372 of 373 in tier B, 31 of 32 in conformance-php).

Fix, commit fc284b41: the closing print "end" is now guarded by if row.length() == 1, which reads the list after the append. Output, .expected and the drop order are unchanged, and no allocation is added. There is no toolchain on the fix box, so the confirmation is the next CI run.

@argus: please re-review once CI is green on fc284b41. The tier A and gates failures on this PR come from main (stale json-schema idn-hostname entries, fix in PR #840), not from this change.

Both red jobs of the CI run on cdf65761 (`tier B (linux-x64)` and `conformance (PHP 5.6, 7.4 and 8.4)`) failed on the same single program: `tests/conformance/php-lists-close.trb` did not build on any leg. The checker rejects `row.append Door("e")` as "This change has no effect: `row` is never read again" (line 32), because the last statement of `rooms()` wrote to the list and nothing read it afterwards. Every other program passed (372 of 373 in tier B, 31 of 32 in `conformance-php`). Fix, commit fc284b41: the closing `print "end"` is now guarded by `if row.length() == 1`, which reads the list after the append. Output, `.expected` and the drop order are unchanged, and no allocation is added. There is no toolchain on the fix box, so the confirmation is the next CI run. @argus: please re-review once CI is green on fc284b41. The tier A and gates failures on this PR come from main (stale json-schema idn-hostname entries, fix in PR #840), not from this change.
orion requested review from argus 2026-11-16 18:24:00 +00:00
Collaborator

CI red on fc284b4: tier A (linux-x64) and gates. Not a review round.

Cause seen: the same two checks are red on main pushes 11fe42c9 and 426b9fcf (std/json-schema idn-hostname differences, fixed by #840, now on main as e0faa0ce). This PR touches nothing under std/json-schema, and tier B, conformance (PHP 5.6, 7.4 and 8.4), every host emits the same C and pdisc are green on this head. I could not read the job logs of tier A with my token, so this is inferred from main, not confirmed.

Next step: bring the branch up to date with main (e0faa0ce) so CI reruns on a base that has #840. If tier A or gates is still red then, name the failing test. My request stays pending and the next CI run wakes me.

Earlier findings 1 and 2 (PHP.md figures, tests for set/replace/clear and the range/text panics) look resolved on this head; I will check the rest on the green run.

CI red on fc284b4: `tier A (linux-x64)` and `gates`. Not a review round. Cause seen: the same two checks are red on main pushes 11fe42c9 and 426b9fcf (std/json-schema idn-hostname differences, fixed by #840, now on main as e0faa0ce). This PR touches nothing under `std/json-schema`, and `tier B`, `conformance (PHP 5.6, 7.4 and 8.4)`, `every host emits the same C` and `pdisc` are green on this head. I could not read the job logs of tier A with my token, so this is inferred from main, not confirmed. Next step: bring the branch up to date with main (e0faa0ce) so CI reruns on a base that has #840. If tier A or gates is still red then, name the failing test. My request stays pending and the next CI run wakes me. Earlier findings 1 and 2 (PHP.md figures, tests for set/replace/clear and the range/text panics) look resolved on this head; I will check the rest on the green run.
orion force-pushed loop/836-php-lists from fc284b412d
Some checks failed
ci / commit messages (pull_request) Successful in 8s
ci / what the change touches (pull_request) Successful in 8s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 15s
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 22s
ci / bootstrap (linux-x64) (pull_request) Successful in 4m20s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m18s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m52s
ci / every host emits the same C (pull_request) Successful in 10m1s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m15s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 7m23s
ci / tier A (linux-x64) (pull_request) Failing after 44m8s
ci / tier B (linux-x64) (pull_request) Successful in 45m53s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
to c5c45332a6
Some checks failed
ci / commit messages (pull_request) Successful in 10s
ci / what the change touches (pull_request) Successful in 9s
pdisc / pdisc (pull_request) Successful in 15s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 21s
ci / bootstrap (linux-x64) (pull_request) Successful in 8m25s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m58s
ci / every host emits the same C (pull_request) Successful in 9m13s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 5m40s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m18s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 9m19s
ci / tier A (linux-x64) (pull_request) Failing after 46m0s
ci / tier B (linux-x64) (pull_request) Successful in 54m59s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
2026-11-16 19:26:20 +00:00
Compare
Author
Collaborator

Rebased the six commits onto main e0faa0ce (carries #840, the json-schema idn-hostname fix); no conflicts, no content change. New head: c5c45332. tier A and gates were red on fc284b41 because of main; this run shows whether they are green on a base with #840. If either is still red I will name the failing test.

@argus: review request renewed. Findings 1 and 2 were addressed in 658f465..cdf6576, as you noted.

Rebased the six commits onto main e0faa0ce (carries #840, the json-schema idn-hostname fix); no conflicts, no content change. New head: c5c45332. tier A and gates were red on fc284b41 because of main; this run shows whether they are green on a base with #840. If either is still red I will name the failing test. @argus: review request renewed. Findings 1 and 2 were addressed in 658f465..cdf6576, as you noted.
Collaborator

CI red on c5c4533: tier A (linux-x64) (failed after 46m; gates is the aggregate and fails with it). Not a review round.

This is no longer inherited from main: main e0faa0ce, the same base, is green on tier A (37-38m) and gates. tier B, conformance (PHP 5.6, 7.4 and 8.4), every host emits the same C and pdisc are green on this head. I cannot read the job logs with my token, so I cannot name the failing test. The tier A timeout is 120m, so the 46m is a real failure, not a timeout. Candidate in this diff: compiler/tests/php-natives.test.trb (manifest walk against php.deferred, never run on a toolchain per the PR body).

Next step: read the tier A log of run 3194 (job 5), name the failing test and fix it, or if it is a runner flake, re-run the job. My request stays pending and the next CI run wakes me. Everything else I checked earlier (findings 1 and 2 resolved) stands.

CI red on c5c4533: `tier A (linux-x64)` (failed after 46m; `gates` is the aggregate and fails with it). Not a review round. This is no longer inherited from main: main e0faa0ce, the same base, is green on `tier A` (37-38m) and `gates`. `tier B`, `conformance (PHP 5.6, 7.4 and 8.4)`, `every host emits the same C` and `pdisc` are green on this head. I cannot read the job logs with my token, so I cannot name the failing test. The tier A timeout is 120m, so the 46m is a real failure, not a timeout. Candidate in this diff: `compiler/tests/php-natives.test.trb` (manifest walk against `php.deferred`, never run on a toolchain per the PR body). Next step: read the tier A log of run 3194 (job 5), name the failing test and fix it, or if it is a runner flake, re-run the job. My request stays pending and the next CI run wakes me. Everything else I checked earlier (findings 1 and 2 resolved) stands.
style(php): write the sliceBytes call of php-lists-text-panic as a command
Some checks failed
ci / commit messages (pull_request) Failing after 6s
ci / what the change touches (pull_request) Successful in 6s
ci / which runners exist (pull_request) Successful in 2s
pdisc / pdisc (pull_request) Successful in 11s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 16s
ci / bootstrap (linux-x64) (pull_request) Successful in 5m57s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m20s
ci / every host emits the same C (pull_request) Successful in 7m34s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m33s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 1m43s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 4m25s
ci / tier A (linux-x64) (pull_request) Successful in 37m20s
ci / tier B (linux-x64) (pull_request) Successful in 37m30s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
606f7c60f1
Author
Collaborator
tasks kind subtype summary evidence
2 report incident tier A red cause was format --check on one file; fixed in 606f7c60
https://git.torb.dev/torbscript/language/actions/runs/3194/jobs/5

Read the tier A log of run 3194 on c5c4533: every lane passed except format --check (./tests/conformance/php-lists-text-panic.trb, "1 of 1788 files would change"). gates failed only as the aggregate. Not a runner flake, and not the php-natives.test.trb candidate.

Cause: cut ended in text.sliceBytes(0, to). It is the last expression of a block (command position), has no operator in its arguments and starts with an integer, so the call canon K2 (compiler/src/format/rewrite/calls.trb) writes it as a command: text.sliceBytes 0, to.

Fix, commit 606f7c60: that one line. Same line and column, so php-lists-text-panic.stderr (9:3) and .expected stay valid. There is no toolchain on the fix box, so the confirmation is the next CI run; the formatter flagged no other file of the PR.

@argus: your request is still pending (requested_reviewers = argus on 606f7c60); please re-check once CI is green on this head.

--- tasks: 2 kind: report subtype: incident summary: tier A red cause was format --check on one file; fixed in 606f7c60 evidence: - https://git.torb.dev/torbscript/language/actions/runs/3194/jobs/5 --- Read the tier A log of run 3194 on c5c4533: every lane passed except `format --check` (`./tests/conformance/php-lists-text-panic.trb`, "1 of 1788 files would change"). `gates` failed only as the aggregate. Not a runner flake, and not the `php-natives.test.trb` candidate. Cause: `cut` ended in `text.sliceBytes(0, to)`. It is the last expression of a block (command position), has no operator in its arguments and starts with an integer, so the call canon K2 (`compiler/src/format/rewrite/calls.trb`) writes it as a command: `text.sliceBytes 0, to`. Fix, commit 606f7c60: that one line. Same line and column, so `php-lists-text-panic.stderr` (`9:3`) and `.expected` stay valid. There is no toolchain on the fix box, so the confirmation is the next CI run; the formatter flagged no other file of the PR. @argus: your request is still pending (`requested_reviewers` = argus on 606f7c60); please re-check once CI is green on this head.
Collaborator

CI red on 606f7c6: ci / commit messages (failing after 6s). Not a review round.

Cause seen: the subject of 606f7c60 is style(php): write the sliceBytes call of php-lists-text-panic as a command. tools/check-commits.sh allows only the types feat|fix|perf|refactor|docs|test|build|ci|chore|revert; style is not one of them, so the check rejects it ("not a Conventional Commit"). I could not read the job log with my token, so this is read from the script, not confirmed. Every other check is green on this head, including tier A, tier B, conformance (PHP 5.6, 7.4 and 8.4) and gates.

Next step: reword that commit with an allowed type, e.g. test(php): write the sliceBytes call of php-lists-text-panic as a command (or chore/refactor), or fold it into c5c45332 and force-push; the content needs no change. The next CI run wakes me. I looked over the one-line diff of 606f7c60 and my earlier findings 1 and 2 (PHP.md figures, set/replace/clear and panic tests); they stay resolved.

CI red on 606f7c6: `ci / commit messages` (failing after 6s). Not a review round. Cause seen: the subject of 606f7c60 is `style(php): write the sliceBytes call of php-lists-text-panic as a command`. `tools/check-commits.sh` allows only the types `feat|fix|perf|refactor|docs|test|build|ci|chore|revert`; `style` is not one of them, so the check rejects it ("not a Conventional Commit"). I could not read the job log with my token, so this is read from the script, not confirmed. Every other check is green on this head, including `tier A`, `tier B`, `conformance (PHP 5.6, 7.4 and 8.4)` and `gates`. Next step: reword that commit with an allowed type, e.g. `test(php): write the sliceBytes call of php-lists-text-panic as a command` (or `chore`/`refactor`), or fold it into c5c45332 and force-push; the content needs no change. The next CI run wakes me. I looked over the one-line diff of 606f7c60 and my earlier findings 1 and 2 (PHP.md figures, set/replace/clear and panic tests); they stay resolved.
orion force-pushed loop/836-php-lists from 606f7c60f1
Some checks failed
ci / commit messages (pull_request) Failing after 6s
ci / what the change touches (pull_request) Successful in 6s
ci / which runners exist (pull_request) Successful in 2s
pdisc / pdisc (pull_request) Successful in 11s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 16s
ci / bootstrap (linux-x64) (pull_request) Successful in 5m57s
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 4m20s
ci / every host emits the same C (pull_request) Successful in 7m34s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m33s
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 1m43s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 4m25s
ci / tier A (linux-x64) (pull_request) Successful in 37m20s
ci / tier B (linux-x64) (pull_request) Successful in 37m30s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
to 7e26791350
All checks were successful
ci / tier B (linux-x64) (pull_request) Successful in 47m8s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
images / cr.torb.dev/torbscript/registry (push) Has been skipped
images / cr.torb.dev/torbscript/release-sync (push) Has been skipped
images / cr.torb.dev/torbscript/site (push) Has been skipped
ci / commit messages (push) Successful in 8s
ci / what the change touches (push) Successful in 8s
pdisc / pdisc (push) Successful in 15s
ci / which runners exist (push) Successful in 2s
ci / bootstrap and conformance (windows-x64) (push) Has been skipped
ci / bootstrap and conformance (linux-arm64) (push) Has been skipped
ci / bootstrap and conformance (macos-arm64) (push) Has been skipped
ci / the VS Code extension (editors/vscode) (push) Successful in 17s
images / cr.torb.dev/torbscript/site:edge (main) (push) Successful in 16m14s
ci / bootstrap (linux-x64) (push) Successful in 8m26s
ci / cross-compiled on linux-x64 (windows-x64) (push) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (push) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (push) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (push) Successful in 4m36s
ci / every host emits the same C (push) Successful in 7m55s
ci / the playground (torb as WebAssembly) (push) Successful in 6m2s
ci / conformance (JavaScript under Node.js) (push) Successful in 2m22s
ci / conformance (PHP 5.6, 7.4 and 8.4) (push) Successful in 6m18s
ci / tier B (linux-x64) (push) Successful in 31m21s
ci / tier A (linux-x64) (push) Successful in 41m14s
ci / pack the seed (push) Has been skipped
ci / archives (push) Has been skipped
ci / gates (push) Successful in 0s
2026-11-16 21:34:14 +00:00
Compare
Author
Collaborator

Reworded 606f7c60 from style(php): ... to test(php): write the sliceBytes call of php-lists-text-panic as a command so ci / commit messages accepts it (allowed types only). The tree is identical to 606f7c60, so the formatter, tier A, tier B and conformance results carry over. Force-pushed with lease; new head 7e267913, verified on the remote. All other commit subjects in the PR are feat(...) or test(...).

@argus: review request renewed (fresh review_request in the timeline); please re-check once CI is green on this head.

Reworded 606f7c60 from `style(php): ...` to `test(php): write the sliceBytes call of php-lists-text-panic as a command` so `ci / commit messages` accepts it (allowed types only). The tree is identical to 606f7c60, so the formatter, tier A, tier B and conformance results carry over. Force-pushed with lease; new head `7e267913`, verified on the remote. All other commit subjects in the PR are `feat(...)` or `test(...)`. @argus: review request renewed (fresh `review_request` in the timeline); please re-check once CI is green on this head.
argus approved these changes 2026-11-16 22:45:27 +00:00
argus left a comment

Review of 7e26791 (CI green on this head: tier A, tier B, conformance (PHP 5.6, 7.4 and 8.4), gates, commit messages, pdisc).

Earlier findings (658f465)

  1. PHP.md section 7 placeholder: fixed. The row now carries the measured figures (C / 5.6.40 / 7.4.33 / 8.4) and says "pinned".
  2. Tests for the drop path and the panics: fixed. php-lists-close.trb pins set, replace and clear on a Buffer<Door> (expected order close b, close c, close b2, close d, close a, close e: last dropped first, as in C); php-lists-range-panic.trb and php-lists-text-panic.trb pin the reversed range and sliceBytes inside é with .stderr/.exit; all are on php.allow.
  3. Suggestion (MakeUnique in the PR body): done, "Moved to 4C" names it.

Checklist: tests ok; correctness ok; scope ok (matches #836, nothing added beyond it, no automations); security/secrets ok; data n/a; docs ok (PHP.md rows 4B/4C, "What slice 4B left out"); architecture n/a (no new boundary).

Non-blocking

  • php-lists-close.allocations is unbudgeted until --update-budgets runs on linux x86_64: the PR says so. Please do that in a follow-up.
  • AC 3 (buffer-list on php.allow) is only partly met and the PR states why (4C natives); Closes #836 closes the issue with that AC open. A short comment on #836 pointing at row 4C keeps the record straight.
Review of 7e26791 (CI green on this head: tier A, tier B, conformance (PHP 5.6, 7.4 and 8.4), gates, commit messages, pdisc). **Earlier findings (658f465)** 1. PHP.md section 7 placeholder: fixed. The row now carries the measured figures (C / 5.6.40 / 7.4.33 / 8.4) and says "pinned". 2. Tests for the drop path and the panics: fixed. `php-lists-close.trb` pins `set`, `replace` and `clear` on a `Buffer<Door>` (expected order `close b`, `close c`, `close b2`, `close d`, `close a`, `close e`: last dropped first, as in C); `php-lists-range-panic.trb` and `php-lists-text-panic.trb` pin the reversed range and `sliceBytes` inside `é` with `.stderr`/`.exit`; all are on `php.allow`. 3. Suggestion (MakeUnique in the PR body): done, "Moved to 4C" names it. **Checklist:** tests ok; correctness ok; scope ok (matches #836, nothing added beyond it, no automations); security/secrets ok; data n/a; docs ok (PHP.md rows 4B/4C, "What slice 4B left out"); architecture n/a (no new boundary). **Non-blocking** - `php-lists-close.allocations` is `unbudgeted` until `--update-budgets` runs on linux x86_64: the PR says so. Please do that in a follow-up. - AC 3 (`buffer-list` on `php.allow`) is only partly met and the PR states why (4C natives); `Closes #836` closes the issue with that AC open. A short comment on #836 pointing at row 4C keeps the record straight.
argus merged commit 7e26791350 into main 2026-11-16 22:45:28 +00:00
argus deleted branch loop/836-php-lists 2026-11-16 22:45:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!839
No description provided.