Repository navigation
feat(app): smoke-join hang.live from two browsers every hour - #77
Merged
Merged
Conversation
Quest-Claim: 30426f9fae289e1f
WIP: a temporary push trigger exercises the workflow on its runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decode the join sound directly, scope the issue token and lookup, file the issue without a log, and check LFS pointers before any deploy.
…moke # Conflicts: # app/package.json
kixelated
marked this pull request as ready for review
November 27, 2026 04:03
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finishes quest/m1/production-smoke.md.
Problem
Nothing tells us when
hang.livestops letting people hang out: a broken deploy, API, or relay surfaces only when someone complains.Approach
just smoke <origin>(app/test/smoke.ts) opens a freshhang-smoke-<uuid>room on the deployed site in two headless Chromium pages with fake cameras, reading only what the shipped page shows:/notification/select.opus) decodes in A's page. The room plays it only if its audio is already running (a race), so the smoke decodes it directly to catch a deploy that shipped Git LFS pointer files.Any page error or WebGL error fails the step it happened in. A failure prints the step's name, then each page's recent console (page errors included) and its accessibility snapshot.
.github/workflows/smoke.ymlruns it againsthttps://hang.livehourly (and onworkflow_dispatch). A failure onmainfiles one "Production smoke is failing" issue (looked up by exact title andgithub-actionsauthorship) or edits its body with the latest failure, so it doesn't notify every hour. It files the issue even when checkout or Nix failed before the smoke wrote a log. The next passing run comments and closes it. Only this job getsissues: write, and only its two issue steps hold the token; PR CI stays read-only.devShells.smokeinflake.nixholds only Bun, just, and the pinned Chromium, so the hourly run doesn't fetch the relay and CLIs.just app lfsrefuses anapp/publicholding Git LFS pointer files;just app deployand rootjust deployrun it before building or deploying anything.just smoke <app origin>after each staging and production deploy (with the rollback command on failure) and points the hourly run atreleaseonce it exists.Decisions
Taken on my recommendation while the maintainer was away; please review:
main's smoke against whatever production runs, and production lagsmain(it ran a pre-#53 build when this started). So the smoke would fail every hour until the next production deploy. The room already setsnavigator.setAppBadge(<others in the room>)in every build, so the smoke stubs that browser API and reads the count. The list moved to a follow-up quest that requires the deploy quest, which runs the hourly smoke fromrelease, so the list and the smoke's switch to it can land together.hang-smoke-prefix, not one fixed room. Badge counts must be exact, so a visitor or an overlapping run (a deploy smoke during the hourly one) can't be in the room. Rooms aren't stored and guests mint onlyguest/<uuid>paths, so nothing is left behind.ubuntu-latestrunner, not self-hosted. The only self-hosted runner open to this repository isoci-a1-runner([self-hosted, Linux, ARM64, nix], 2 cores, Default group). I tried it: Nix isn't on the job's PATH, it doesn't trustnix.moq.devso the default shell builtmoq-relayfrom source past the timeout, and with the smoke shell B's page took 15-19 s to load and never listed A within 30 s (load average ~2). The quest asked for self-hosted, but this scheduled job isn't a merge gate, so your rules allow GitHub's runner.Impact
just smokerecipe, thesmokepackage script,devShells.smoke, and thejust app lfsguard that both deploy recipes now run.just checkor PR CI).curl -s https://hang.live/notification/select.opusprintedversion https://git-lfs..., and joining threw "Unable to decode audio data") to a redeployed post-fix(room)!: bind guest identities and expire room tokens #53 build with real media. The smoke's sound step and the deploy guard keep that from coming back unnoticed. drop-legacy-join-url's first wait (production servingrelay) has cleared too; its one-day wait for open tabs remains.Alternatives
nix develop, so ajustrecipe is one line there and needs no second runner.release: rejected because production is the surface that matters and it passes today. Skew betweenmain's smoke and production is handled by the deploy quest pointing the hourly run atrelease.app/test/media.browser.ts(review note): left as is, since it's five flags and one regex in two test entry points.Follow-ups
[S]: adds the hidden peer list and switches the smoke's last step to read names from it. Requires deploy-staging-and-release. No open decisions. Kept by the maintainer on 2026-11-27: ✅ keep (rejected: drop).Validation
bun test/smoke.ts https://hang.liveagainst the redeployed post-fix(room)!: bind guest identities and expire room tokens #53 production (join response hasrelayandtoken, real media): every step passed, including the sound decode.bun test/smoke.ts https://hang.liveagainst the earlier pre-fix(room)!: bind guest identities and expire room tokens #53 production (join response had norelay): every step passed at 320x240. Of the two earlier runs at 640x480, one failed at "B opens the room" with "Smoke A: Unable to decode audio data", traced to the LFS pointer files above; a diagnostic copy that ignored page errors passed every remaining step.bun test/smoke.ts http://localhost:1420against a local post-fix(room)!: bind guest identities and expire room tokens #53just devstack (join response hasrelayandtoken): every step passed.pushtrigger, since removed. Self-hosted attempts: nix missing, source build timeout, too slow to list A. GitHub runner: passed against production in 58 s for the smoke step, including the cold Nix shell (slowest step: "B joins with its camera on", 14 s of its 30 s action timeouts).main, so they couldn't run here. Checked the issue-numberjqselection and the body formatting locally on sample input.grepflags a pointer fetched from production and passes the real.opus, andjust app lfspasses on this checkout. Chromium'sdecodeAudioDatarejects a pointer file with "EncodingError: Unable to decode audio data".awkexcerpt tolerates a missing log and a 200,000-line log, andgh issue list --author app/github-actionsmatches bot-authored issues (checked withgh search issues --author app/github-actions).just checkpasses on fbcaa25 (after merging main, including its new fallow gate), and again on b875d97 after merging main at 97613b1 (docs: comment every app and API export, and gate it in just check #80's export-doc gate, build(deps): bump the bun group across 1 directory with 13 updates #78's dependency bump).Models
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high)
Review
Rewritten by
quest reviewafter each round.Head: b875d97
Base: origin/main at 97613b1
Risk: high,
it changes .github/workflows/smoke.yml, which is always high: workflows run with the repository's secretsClassified: high by the always-high paths
Risk file: none
Reviewer: Codex, gpt-6.2-sol, high effort
Session:
01a21b1e-272a-7253-b313-91545de03062, round 5Score: 10/10,
The smoke workflow is unchanged, and the new maintainer note records the decision to keep the screen-reader follow-up.Rounds: 5; first round 3 (medium 3); findings 4 (medium 4): fixed 4, refuted 0, open 0
Findings: none
Reviewer: Claude Code, claude-opus-5-5, high effort, second
Session:
86a4b45d-4670-42da-aaa3-6048ded67bf2, round 5Score: 9/10,
Since fbcaa25 the branch's own change is one line in quest/m1/room-peer-list.md recording the maintainer's decision to keep that follow-up; everything else in since.patch is base commits from the rebase, so nothing new holds the head.Rounds: 5; first round 1 (medium 1); findings 1 (medium 1): fixed 1, refuted 0, open 0
Findings: none