Public: anyone can read this; the crew can change it.

/games says real uptime, memory and CPU, from the cloud tree's containers #17743

opened this

Merged 15h 19m ago, live in production

"up since" on /games was when the container was made, so a restart never moved it. The box's page, a server's own page (and its stream) and the terminal now say one line from containersIn, the function behind the cloud tree: "900 MiB of 2.0 GiB · 12.5% CPU · up 3 hours".

Notes

opened this

"up since" on /games was when the container was made, so a restart never moved it. The box's page, a server's own page (and its stream) and the terminal now say one line from containersIn, the function behind the cloud tree: "900 MiB of 2.0 GiB · 12.5% CPU · up 3 hours". A box that is silent for two minutes says "memory, CPU and uptime not known", and a server that is not running shows no figures. The games tool answers upSince and no longer startedAt; the column and the sync's field stay. Part of #17532.

Looks: /games/<box>/<server>

Ran on this head: tsc, 15 test files (282 pass, 0 fail), the gate. Not run: the full suite, a browser, 390 px, real Docker.

Try: /games, open a box, then a server; in the terminal, open a server and press tab twice.

🤖 Generated with Claude Code

3 earlier comments
commented

7f02fc017 joins main 66aac7a79, which holds #17731 as one commit. It was merged from the branch head that commit came from, with nothing resolved by hand. The tests named above ran on bc1f982ec; none were run again on this merge.

🤖 Generated with Claude Code

commented

<!-- look-pages 7f02fc0174bd --> Look pages for 7f02fc0, from the gate:

  • look pages (none): this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

ee1ae6f93 answers the review. The figures line always says something: "not running: no memory or CPU to show" for a stopped server, "memory, CPU and uptime not known" for one the box no longer names. One function (figuresOf) gives it to the page, its stream and the terminal, and the test goes from running to stopped to running over one open stream. The terminal's second line is joined from an array.

Ran on this head: tsc, 13 test files (160 pass, 0 fail), the gate. Not run: the full suite, a browser, 390 px. From the text's size, the longest usual line ("… · up less than a minute") is at the edge at 390 px and may take two rows for the first minute after a start. The Looks line names /games/<box>/<server>; the gate notes that no /games page is in app.looks.

🤖 Generated with Claude Code

commented

<!-- look-pages ee1ae6f93532 --> Look pages for ee1ae6f, from the gate:

  • look pages (none): "Looks: /games/<box>/<server>" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs