Public: anyone can read this; the crew can change it.
A container's limits and start time are shown in the cloud tree #17731
Merged 9h 25m ago, live in production
A service in a game box's full sync may now carry upSince, memLimitMiB and cpuLimit. The cloud tree shows "900 MiB, limit 2.0 GiB", "no limit set" for 0, and an uptime from the start time. Part of #17532.
-
Reviews
Changes requested — before the latest pushOne change to make: the feature cannot show anything yet, because nothing sends the new fields.
- High: the agent never sends
upSince,memLimitMiBorcpuLimit.src/games/agent.sh:392-399(services()) still emits only name, state, health, startedAt, cpuPct and memMiB. So every real box stores NULL for all three. The tree will always say "limit not known" and will still take uptime from Docker's "Up 3 hours" text. The tests pass only because they hand-write the fields into the sync. Extendservices()so the sync carries them:- Read them with
docker inspectover the compose containers:.State.StartedAt,.HostConfig.Memory(bytes, divided by 1048576 and floored) and.HostConfig.NanoCpus(divided by 1e9). - Send 0 when no limit is set, and leave the field out when the inspect fails. That keeps "0 is none set, absent is not known" true.
- Run it under
cappedlike the other calls. - Add a test next to the existing agent.sh tests that fails without the change.
- Read them with
- Medium: the tests are not shown to cover the terminal door. The terminal side (
src/tui/screens/cloudtree.ts) probably reads the same container facts, so it likely needs no change. Please confirm that in the pull. If the terminal builds the strings separately, add the same limits there, and add a gate lineNo door: <why>if you change none.
The store validation, the migration and its pin, the escaping and the docs are fine. Out-of-range values become null, and the infra.md how-to was updated rather than the README.
ApprovedClean on the lines changed since my last review. The agent's one
docker inspectnames only its fields (a test pins the template, so the env never leaves the box), and the ids passed to it are matched against hex before use. A failing or hanging inspect leaves the sync whole, and a quota now counts as a CPU limit. The server treats the box as untrusted:upSince,memLimitMiBandcpuLimitare range-checked and normalised, and a bad value is null, never 0. 0 reads as 'no limit set' and null as 'not known'. The migration is additive and pinned. The terminal draws the same facts, a test says so, anddocs/features/infra.mdcarries the how-to, not the README. I did not re-check the earlier asks against the diff since 9eaf5bd (the range is a merge of main); I judged the changed lines as given. Non-blocking: the Docker in the tests is a stub, so the exact inspect template through realcompose psand jq is unproven; try it on a real box once. - High: the agent never sends
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Merge the current base into container-limits e94a03f
- Merge pull request #17737 from sold/aws-date e6e7f0f
- A browser test loads the owner's home at 375 px and fails on any sideways scroll (#16731) 7cefc8d
- Merge pull request #17720 from sold/leaf-editor-1 423c8d4
- An EC2 instance's date is its first launch, and a bucket's says it may be its last change (#17532) 321a98d
- The game agent reads a CPU limit set as a quota too (#17532) a02fd42
- The splice's test has its module's name, and no wall-clock check f57a3af
- A change stream says which stream it is, so a client knows when its numbers started again (#17736) 40fffab
- Merge pull request #17735 from sold/leaf-table-1 3a50184
- Games: the forge's AutoStopper is pinned, and its plan says what happens to the old one (#17734) 72e511d
- The cloud tree's filter line is read by one language that every list can share (#17532) a7ca766
- The game box's agent sends each container's start time and limits (#17532) fe4da35
- Merge pull request #17733 from sold/edge-boot a8220a8
- The YAML splice sits beside its only caller, and its page names every case 74abff6
- Retire leaves a DNS record that names another address alone, and says so (#17732) c97ef32
- A pass over every repository reads each blob with one short git, never a pooled reader (#17717) deea4d5
- Config is published at boot by the same rule as everywhere 22b8047
- A container's limits and start time are taken from the box's sync and shown in the cloud tree (#17532) 9eaf5bd
- framesLoaded waits for each child frame to reach its address, and reports the tree it checked (#17729) aa2eb4c
- Merge pull request #17728 from sold/cloud-filter-lines e20d686
fe4da3530 and a02fd4288 make the agent send upSince, memLimitMiB and cpuLimit, from one capped docker inspect whose format names only those fields. A limit of 0 is none set, a CPU quota counts, and a failing or hanging inspect leaves the rest of the sync whole. The terminal draws the same facts, and a test says so. tsc, 48 tests in 7 files and the gate pass on the head.
The Docker in the tests is a stub. On a real box the same Docker fields, read as plain columns by hand, took 49 ms for 5 containers. Not run: the exact JSON format through compose ps and jq on real Docker, Ubuntu 24.04, a real limit, the full suite.
🤖 Generated with Claude Code
A service in a game box's full sync may now carry
upSince,memLimitMiBandcpuLimit. The cloud tree shows "900 MiB, limit 2.0 GiB", "no limit set" for 0, and an uptime from the start time. Part of #17532.agent.shdoes not send the fields yet; that half comes later.game_service.Ran on this head: tsc, six test files (114 pass, 0 fail), the gate; the two new tests failed before the code. Not run: the wide set, a browser, a real agent sending the fields.
Try: /infra, open a game box's machine, then one of its containers: CPU, Memory and Uptime.
🤖 Generated with Claude Code