wai dev's test: the stand-in room service listens without a reverse lookup #661

Closed
dcharlot wants to merge 1 commit from fix/fake-stack-no-reverse-lookup into main
Owner

tests/cli_studio.rs failed on the macOS leg of cargo-class corpora (#640's run, job 84281) with "the room service's clock on the relay: not within 30 s". The same message was recorded on 31 October and put down to host load.

What the log shows. The test took 30.58 s against a 30 s wait, so the stand-in relay and everything before it took under 0.6 s. Only the stand-in room service stalled. Both are the same script.

What differs. The room service starts an HTTPServer, whose server_bind calls socket.getfqdn before the server listens. That reverse lookup waits on the system's resolver, and on the Studio it answers 1.0.0.127.in-addr.arpa, so it isn't served from /etc/hosts. Nothing in the fixture reads the name, so it no longer asks for it.

Tested, on the Framework:

Run Result
Unchanged fixture, socket.getfqdn planted to stall 40 s fails with the same message, at 30.18 s
This fixture, same plant passes in 0.30 s

Not shown. A lookup on the Studio took 1 to 10 ms when I measured it afterwards, so no stall has been observed directly. This is the one difference between the two processes, and it reproduces the failure, but it is not proof of what happened in that run. If the message comes back with this in, the cause is elsewhere.

Changes the test fixture only, so there is no changelog entry.

🤖 Generated with Claude Code


Closed: Replaced by #663: this commit's message states things later measured to be wrong.

`tests/cli_studio.rs` failed on the macOS leg of cargo-class corpora (#640's run, job 84281) with "the room service's clock on the relay: not within 30 s". The same message was recorded on 31 October and put down to host load. **What the log shows.** The test took 30.58 s against a 30 s wait, so the stand-in relay and everything before it took under 0.6 s. Only the stand-in room service stalled. Both are the same script. **What differs.** The room service starts an `HTTPServer`, whose `server_bind` calls `socket.getfqdn` before the server listens. That reverse lookup waits on the system's resolver, and on the Studio it answers `1.0.0.127.in-addr.arpa`, so it isn't served from `/etc/hosts`. Nothing in the fixture reads the name, so it no longer asks for it. **Tested, on the Framework:** | Run | Result | |---|---| | Unchanged fixture, `socket.getfqdn` planted to stall 40 s | fails with the same message, at 30.18 s | | This fixture, same plant | passes in 0.30 s | **Not shown.** A lookup on the Studio took 1 to 10 ms when I measured it afterwards, so no stall has been observed directly. This is the one difference between the two processes, and it reproduces the failure, but it is not proof of what happened in that run. If the message comes back with this in, the cause is elsewhere. Changes the test fixture only, so there is no changelog entry. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- **Closed:** Replaced by #663: this commit's message states things later measured to be wrong.
wai dev's test: the stand-in room service listens without a reverse lookup
Some checks failed
wai-ledger service / service · macos (pull_request) Successful in 1m12s
wai-pack / wai-pack · macos (pull_request) Successful in 3m50s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (pull_request) Successful in 9m31s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 10m27s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 11m46s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m25s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 14m48s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 15m45s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 7m21s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Failing after 4m27s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 10m13s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 20m21s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 1m7s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 3m31s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 19s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 16m44s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 5m51s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 12s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 28s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m38s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 11m28s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 5m24s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m44s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 27m21s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 1m2s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 54s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 6m56s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 34m30s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 6m0s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h16m47s
e18d5b1ef9
The macOS job of cargo-class corpora failed in tests/cli_studio.rs with "the
room service's clock on the relay: not within 30 s". The whole test took
30.58 s, so the stand-in relay and everything before it took under 0.6 s, and
only the stand-in room service stalled.

The two run the same script. What differs is that the room service starts an
HTTPServer, whose server_bind calls socket.getfqdn before the server listens.
That reverse lookup waits on the system's resolver. Nothing here reads the
name, so the fixture no longer asks for it.

A socket.getfqdn planted to stall for 40 s reproduces the failure, with the
same message and at 30.18 s, and with this change the same plant passes in
0.30 s. A lookup on that host took 1 to 10 ms when measured afterwards, so this
is the one difference between the two processes rather than an observed stall.

Changelog: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dcharlot closed this pull request 2026-11-05 18:28:03 -05:00
Some checks failed
joule-moq-remote host agent / joule-moq-remote · does this change touch it (pull_request) Successful in 8s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 5s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 8s
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 6s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 5s
wai-app and Create / wai-app · does this change touch it (pull_request) Successful in 10s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 5s
WAI conformance / does this change touch it (pull_request) Successful in 6s
WAI operation catalogue / does this change touch it (pull_request) Successful in 8s
WAI energy receipts / does this change touch it (pull_request) Successful in 6s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 8s
wai-fleet service / does this change touch it (pull_request) Successful in 6s
wai-ledger service / does this change touch it (pull_request) Successful in 6s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 5s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 7s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 7s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 6s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 6s
WAI Studio / does this change touch it (pull_request) Successful in 7s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 6s
wai-web wasm32 / does this change touch it (pull_request) Successful in 6s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 3m58s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (pull_request) Successful in 44s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m22s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 35s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Successful in 1m44s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (pull_request) Successful in 2m56s
wai-fleet service / service · linux (pull_request) Successful in 2m28s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m17s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 4m14s
wai-ledger service / service · linux (pull_request) Successful in 3m4s
wai-pack / wai-pack · linux (pull_request) Successful in 2m0s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 58s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 5m33s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 3m23s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m37s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 9m2s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 5m48s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 10m12s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m43s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 9m45s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m3s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 14m31s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m55s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 54m4s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (pull_request) Successful in 1m21s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 37s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 1m46s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 2m6s
wai-fleet service / service · macos (pull_request) Successful in 1m7s
wai-ledger service / service · macos (pull_request) Successful in 1m12s
wai-pack / wai-pack · macos (pull_request) Successful in 3m50s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (pull_request) Successful in 9m31s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 10m27s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 11m46s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m25s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 14m48s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 15m45s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 7m21s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Failing after 4m27s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 10m13s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 20m21s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 1m7s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 3m31s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 19s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 16m44s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 5m51s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 12s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 28s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m38s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 11m28s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 5m24s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m44s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 27m21s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 1m2s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 54s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 6m56s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 34m30s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 6m0s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h16m47s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
Transaction-Science/open-standards!661
No description provided.