Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
75b3490
chore(quest): claim quest/m0/test-flakes-2/pulse-dbus.md
kixelated Nov 4, 2026
f00d57e
fix(test): keep private PulseAudio off the session bus
kixelated Nov 4, 2026
42b4384
test: isolate and exercise concurrent private audio servers
kixelated Nov 4, 2026
1ef8eb0
test: include private audio logs when the concurrency check hangs
kixelated Nov 4, 2026
88bb7e5
chore(quest): claim quest/m0/test-flakes-2/pulse-dbus.md
kixelated Nov 5, 2026
d2fa803
chore: resume PulseAudio quest on current main
kixelated Nov 5, 2026
15ad910
chore(quest): record PulseAudio evidence and media validation blocker
kixelated Nov 5, 2026
e7ba041
Merge remote-tracking branch 'origin/main' into quest/m0/test-flakes-…
kixelated Nov 5, 2026
a4c101f
Merge remote-tracking branch 'origin/quest/m0/test-flakes-2/pulse-dbu…
kixelated Nov 6, 2026
9b480ac
docs(quest): record overlapping media validation and daemon logs
kixelated Nov 6, 2026
7a83b64
Merge remote-tracking branch 'origin/main' into quest/m0/test-flakes-…
kixelated Nov 6, 2026
6f03351
Merge remote-tracking branch 'origin/quest/m0/test-flakes-2/pulse-dbu…
kixelated Nov 6, 2026
dddf355
quest: Safari and WebSocket publishers wait for WebKit's send estimate
kixelated Nov 6, 2026
b15846d
docs: record overlapping media install collision
kixelated Nov 6, 2026
6cdca06
Merge remote-tracking branch 'origin/quest/m0/test-flakes-2/pulse-dbu…
kixelated Nov 7, 2026
228bc9a
fix(test): serialize concurrent interop dependency installs
kixelated Nov 7, 2026
841baa8
chore: keep unrelated local quest planning off the PR
kixelated Nov 7, 2026
d5f16be
fix(test): reuse installed dependencies across overlapping runs
kixelated Nov 7, 2026
8b2834a
style(test): sort installer imports
kixelated Nov 7, 2026
6e73247
fix(test): resolve installer paths and track postinstall inputs
kixelated Nov 7, 2026
c666450
fix: coordinate dependency installation across the root workspace
kixelated Nov 7, 2026
c7a4c4d
fix: expose coordinated installs through a JS recipe
kixelated Nov 7, 2026
4eebe30
test: include coordinated installer in coverage fixtures
kixelated Nov 7, 2026
7c4cde4
test: fail promptly when overlap fixture setup fails
kixelated Nov 7, 2026
be1ab15
test: close overlap fixture output after completion
kixelated Nov 7, 2026
706a532
test: stub installer in dispatcher selection fixture
kixelated Nov 7, 2026
aa17b08
fix: support native Windows setup and validate install lock contention
kixelated Nov 7, 2026
4054ccf
style: format coordinated coverage setup command
kixelated Nov 7, 2026
9a2b720
fix: declare installer tools and preserve sequential Windows support
kixelated Nov 7, 2026
dcd3455
fix: explain coordinated installer contention and merge main
kixelated Nov 7, 2026
ccde751
test: capture installer contention through the recipe
kixelated Nov 7, 2026
f47fcd3
test: fail overlap fixture when installer locking is absent
kixelated Nov 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ test:
python3 sh/rs/select.test.py
python3 sh/rs/config.test.py
python3 sh/rs/hakari.test.py
python3 sh/js/install.test.py
python3 sh/js/workspace.test.py
python3 sh/js/audit.test.py
python3 sh/rs/test-lints.test.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Workspace dependencies
id: setup
run: nix develop --command bun install --frozen-lockfile
run: nix develop --command just js install frozen
shell: bash -leo pipefail {0}

# Each suite reports independently after setup, while a failed step still fails the job.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ jobs:
- name: Install publisher and player engines
# Firefox loads libpulse at runtime; Playwright's engine dependencies omit it.
run: |
nix develop --command env PLAYWRIGHT_BROWSERS_PATH="${{ runner.temp }}/playwright" bash -c "bun install --frozen-lockfile && bunx playwright install --with-deps chromium firefox"
nix develop --command env PLAYWRIGHT_BROWSERS_PATH="${{ runner.temp }}/playwright" bash -c "just js install frozen && bunx playwright install --with-deps chromium firefox"
sudo apt-get install -y libpulse0
- name: Media and negative controls
run: nix develop --command env PLAYWRIGHT_BROWSERS_PATH="${{ runner.temp }}/playwright" just test media --media-engines firefox
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
package-manager-cache: false

- name: Install dependencies
run: nix develop --command bun install --frozen-lockfile
run: nix develop --command just js install frozen

- name: Release packages
env:
Expand Down
2 changes: 1 addition & 1 deletion bench/browser/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if [[ -z $RELAY ]]; then
fi

cd "$WORKSPACE"
bun install --frozen-lockfile
uv run --no-project python sh/js/install.py frozen
# BROWSER_BIN overrides the Chromium provided by the root devShell.

cd "$HERE"
Expand Down
8 changes: 4 additions & 4 deletions demo/boy/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set fallback

# Run the GB demo: relay + emulator publisher + web viewer.
default:
bun install
uv run --no-project python ../../sh/js/install.py update

bun run concurrently --kill-others --prefix-colors auto \
"just relay" \
Expand Down Expand Up @@ -57,12 +57,12 @@ web url='http://localhost:4443':

# Deploy the rom.moq.dev worker
deploy:
bun install
uv run --no-project python ../../sh/js/install.py update
bun wrangler deploy

# Upload a single ROM to R2
upload file:
bun install
uv run --no-project python ../../sh/js/install.py update
bun wrangler r2 object put "rom-moq-dev/{{ file }}" --file "rom/{{ file }}" --remote

# Sync all ROMs to R2
Expand All @@ -72,5 +72,5 @@ sync dir="rom":

# List files in the R2 bucket
list:
bun install
uv run --no-project python ../../sh/js/install.py update
bun wrangler r2 object list "rom-moq-dev"
2 changes: 1 addition & 1 deletion demo/carla/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set fallback
#
# Run a local relay, both trucks, and the web player.
default:
bun install
uv run --no-project python ../../sh/js/install.py update
bun run concurrently --kill-others --names relay,trucks,web --prefix-colors auto \
"just relay" \
"just wait && just wait-port 127.0.0.1 2000 && just worker" \
Expand Down
2 changes: 1 addition & 1 deletion demo/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set fallback
# Picks the first free port at/after 4443 so multiple worktrees can run
# `just dev` without colliding; see sh/demo/run.sh.
default:
bun install
uv run --no-project python ../sh/js/install.py update
../sh/demo/run.sh

# Wait for the localhost relay to be ready by repeatedly requesting the cert
Expand Down
2 changes: 1 addition & 1 deletion demo/relay/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default:

# Cluster peers still authenticate to each other via mTLS (the cert/ca recipes).
cluster:
bun install
uv run --no-project python ../../sh/js/install.py update

bun run concurrently --kill-others --names root,leaf0,leaf1,bbb,tos,web --prefix-colors auto \
"just root" \
Expand Down
2 changes: 1 addition & 1 deletion demo/web/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ serve url='http://localhost:4443': install

# Install the workspace deps that vite and the demo's imports need.
install:
bun install
uv run --no-project python ../../sh/js/install.py update
54 changes: 29 additions & 25 deletions js/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ set working-directory := '.'
default:
just check

# Install root workspace dependencies: frozen for validation, update for lockfile changes.
install mode:
uv run --no-project python ../sh/js/install.py {{ mode }}

# `build` runs here rather than as its own gate: the per-package `check` script
# is `tsc --noEmit`, which never runs declaration emit, so the errors that only
# surface when emitting a `.d.ts` (TS4023 and friends) pass `check` and then
Expand Down Expand Up @@ -46,7 +50,7 @@ fix:

# Rebuild changed workspace packages (or `--all`) to update their API reports.
fix-changed list:
bun install
uv run --no-project python ../sh/js/install.py update
MOQ_API_REPORT=update python3 ../sh/js/workspace.py build '{{ list }}'

# Run all unit tests.
Expand All @@ -63,44 +67,44 @@ coverage package="":

# Run one net benchmark: broadcasts, forward, requests, fills, fetch, reader, frames, track, resume, observed, drift, ledger, bandwidth, replay, varint, lite-varint, priority, subscribe-drop, refresh, compression, or datagrams.
bench name:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun net/bench/{{ name }}.ts

# Sweep browser publisher fairness over backlog x viewers using the devShell's Chromium.
serve-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project net/bench/tsconfig.json
bun net/bench/serve-browser.ts

# Sweep catalog estimate publishes and subscribe updates over tracks x viewers.
catalog-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun publish/bench/catalog.ts

# Sweep QMux record decoding over record size x frames per record.
qmux-record-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun qmux/bench/record.ts

# Sweep QMux datagram receive-queue draining over backlog size (median of 7 runs).
qmux-datagrams-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun qmux/bench/datagrams.ts

# Sweep CMAF fragment decode over mdat bytes x declared sample count, including a hostile count.
cmaf-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun hang/bench/cmaf.ts

# Time Effect create and close, which pays for the creation stack its diagnostics print.
signals-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun signals/bench/effect.ts

# Bundle the worklets with Vite, webpack, esbuild, and Bun, and load them in Chromium, with and
# without a strict CSP. Nightly, against the bundlers pinned in test/worklet.
worklet-matrix:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun ../test/worklet/matrix.ts

# Build all packages.
Expand All @@ -113,87 +117,87 @@ dist-imports:

# Compare eager and cold lazy WebSocket fallback setup in Chromium.
qmux-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project net/bench/tsconfig.json
bun net/bench/qmux.ts

# Sweep open arrival handles against their unread backlog.
arrivals-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun watch/bench/arrivals.ts

# Reduce and compare the worst known peer grant shapes, swept over AUTH_OK size.
pattern-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project pattern/bench/tsconfig.json
bun pattern/bench/algebra.ts

# Sweep manual-clock armed timers x due timers, with independent and shared abort scopes.
clock-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun clock/bench/timers.ts

# Sweep buffered JSON stream reads over record count, payload size, and compression.
json-stream-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project json/bench/tsconfig.json
bun json/bench/stream.ts

# Sweep snapshot codec cost over document size and changed keys.
json-codec-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project json/bench/tsconfig.json
bun json/bench/codec.ts

# Compare the duplicate-refusing JSON frame parse against bare JSON.parse.
json-parse-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project json/bench/tsconfig.json
bun json/bench/parse.ts

# Sweep a slow hang consumer's skipped groups against its warning traffic and catch-up time.
slow-group-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun hang/bench/slow-group.ts

# Sweep a hang consumer's buffered groups, frames per group, publishers and players across arrival orders.
buffered-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project hang/bench/tsconfig.json
bun hang/bench/buffered.ts

# Sweep the audio jitter estimator's held history against in-order and reordered frames.
jitter-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun hang/bench/jitter.ts

# Sweep players against the main-thread CPU and allocation of feeding the audio ring, in Chromium.
ring-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun watch/bench/ring.ts

# Sweep audio rendition count against repeated mute/unmute catalog updates.
audio-support-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun watch/bench/support.ts

# Sweep decoder count against PCM callback size during audio warmup.
audio-warmup-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun watch/bench/warmup.ts

# Sweep data-channel qmux stream count and payload size.
p2p-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun p2p/bench/transport.ts

# Sweep E2EE frame size against writes in flight through the WebCrypto pump.
e2ee-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bun crypto/bench/pump.ts

# Sweep audio renditions x raw retention through native WebCodecs in Chromium.
raw-audio-bench:
bun install --frozen-lockfile
uv run --no-project python ../sh/js/install.py frozen
bunx tsc --noEmit --project publish/bench/tsconfig.json
bun publish/bench/audio.ts
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bench-browser *args:

# Install repo-wide tooling. Per-language deps install on first check.
install:
bun install
uv run --no-project python sh/js/install.py update
cargo install --locked cargo-shear cargo-sort cargo-semver-checks release-plz

# Lints, compiles, and tests only the packages the branch changed plus
Expand Down Expand Up @@ -139,12 +139,12 @@ ci-select-platform $BASE="":

# Check every supported source file; exclusions live in biome.jsonc.
biome *args:
bun install --frozen-lockfile
uv run --no-project python sh/js/install.py frozen
bun biome check --error-on-warnings {{ args }} .

# Apply Biome's fixes; installs without a frozen lockfile, like the other fixers.
biome-fix:
bun install
uv run --no-project python sh/js/install.py update
bun biome check --error-on-warnings --write .

# Auto-fix lint and formatting for what the branch changed since BASE.
Expand Down
1 change: 0 additions & 1 deletion quest/m0/test-flakes-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ Public API: none. Wire: none.

- [Fallback playback](/quest/m0/test-flakes-2/ietf22-fallback.md) - a browser viewer follows a fallback within the media lane's bound without dropping its session
- [dispatch-query's terminate test survives load](/quest/m0/test-flakes-2/dispatch-query-terminate.md) - `test_terminating_the_run_stops_the_running_phase` passes reliably under host load, re-enabled once fixed
- [Test PulseAudio servers stay off the desktop's D-Bus](/quest/m0/test-flakes-2/pulse-dbus.md) - concurrent media runs on one desktop never collide on `org.PulseAudio1`
- [The Python audio playout-delay test reads its frames](/quest/m0/test-flakes-2/audio-playout-delay.md) - `test_audio_consumer_reports_its_playout_delay` stops timing out on its first read in the merge queue
- [The dev host's locked-memory limit fits parallel sessions](/quest/m0/test-flakes-2/uring-memlock.md) - the maintainer's host raises the user's `RLIMIT_MEMLOCK`, which Node.js rings from parallel agent sessions fill before io_uring tests start
- [The FFI concurrent-ready test wakes both calls under load](/quest/m0/test-flakes-2/ffi-concurrent-ready.md) - `concurrent_ready_calls_all_wake` stops stalling its reader drain under load and is re-enabled
Expand Down
23 changes: 0 additions & 23 deletions quest/m0/test-flakes-2/pulse-dbus.md

This file was deleted.

4 changes: 2 additions & 2 deletions setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ echo --- FFmpeg ^(CLI, for the `just dev` demo media^) ---
%WG% --id Gyan.FFmpeg
echo --- GitHub CLI ---
%WG% --id GitHub.cli
echo --- uv ^(Python, for the py/ workspace^) ---
echo --- uv ^(Python for dependency setup and the py/ workspace^) ---
%WG% --id astral-sh.uv

REM MSVC linker + C++ headers, required for any Rust MSVC build. winget skips
Expand All @@ -56,7 +56,7 @@ where rustup >nul 2>nul && ( rustup default stable & rustup update stable ) || e

echo.
echo === Installing JS dependencies ^(bun install^) ===
where bun >nul 2>nul && bun install || echo NOTE: bun not on PATH yet. Reopen your terminal, then run: bun install
where bun >nul 2>nul && where uv >nul 2>nul && uv run --no-project python sh/js/install.py update || echo NOTE: bun or uv not on PATH yet. Reopen your terminal, then run: just js install update

echo.
echo === Done ===
Expand Down
4 changes: 2 additions & 2 deletions sh/api-diff/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ js() {
}
local manifest dir name version file entry surface
# The renderer imports TypeDoc from this checkout's install, which a fresh runner lacks. The
# install scripts build assets, such as @moq/libav, that neither checkout needs here.
bun install --frozen-lockfile --ignore-scripts >&2
# current checkout uses the coordinated full install shared with other readers.
uv run --no-project python sh/js/install.py frozen >&2
Comment thread
pullfrog[bot] marked this conversation as resolved.
Resolved
# Not local: the trap runs after a failure has unwound this function's locals.
checkout=$out/js/checkout
git worktree add --detach "$checkout" "$base" >&2
Expand Down
8 changes: 7 additions & 1 deletion sh/coverage.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@ def setUp(self):
self.directory = tempfile.TemporaryDirectory()
self.addCleanup(self.directory.cleanup)
self.root = Path(self.directory.name)
for script in ("sh/js/coverage.py", "sh/rs/coverage.sh", "sh/rs/nextest.sh", "sh/local.sh"):
for script in ("sh/js/install.py", "sh/js/coverage.py", "sh/rs/coverage.sh", "sh/rs/nextest.sh", "sh/local.sh"):
target = self.root / script
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(ROOT / script, target)
subprocess.run(["git", "init", "-q", str(self.root)], check=True)
self.bin = self.root / "bin"
self.bin.mkdir()
stub = """#!/usr/bin/env python3
import json, os
from pathlib import Path
import sys
if sys.argv[1:] == ["--version"]:
print("fixture")
sys.exit(0)
if "install" in sys.argv:
Path("node_modules").mkdir(exist_ok=True)
with open(os.environ["COVERAGE_CALLS"], "a") as log:
log.write(json.dumps([Path(sys.argv[0]).name, str(Path.cwd()), *sys.argv[1:]]) + "\\n")
if os.environ.get("COVERAGE_FAIL") and ("nextest" in sys.argv or "test" in sys.argv):
Expand Down
Loading
Loading