Skip to content

fix: CI-clean commit — fmt, clippy, tests, and WASM all passing - #9

Merged
dejetem merged 4 commits into
mainfrom
stage-6-production-ready
Feb 19, 2026
Merged

dejetem merged 4 commits into
mainfrom
stage-6-production-ready

Conversation

@dejetem

@dejetem dejetem commented Feb 19, 2026

Copy link
Copy Markdown
Owner

fix: CI-clean commit — fmt, clippy, tests, and WASM all passing

  • Fix trailing whitespace in negotiation.rs (caused rustfmt internal error)
  • Prefix old_ssrc/old_pt with _ in router.rs (unused variable clippy errors)
  • Fix messages.rs test constructors missing room_id field in MessageType::Offer
  • Drop ontrack events in WASM where participant ID is unresolvable (ghost card fix)
  • Update CHANGELOG.md with full commit history across all versions
  • Rebuild WASM: web/pkg updated with ghost card fix
  • Restore dynamic signaling URL (protocol + window.location.host)

- Fix trailing whitespace in negotiation.rs (caused rustfmt internal error)
- Prefix old_ssrc/old_pt with _ in router.rs (unused variable clippy errors)
- Fix messages.rs test constructors missing room_id field in MessageType::Offer
- Drop ontrack events in WASM where participant ID is unresolvable (ghost card fix)
- Update CHANGELOG.md with full commit history across all versions
- Rebuild WASM: web/pkg updated with ghost card fix
- Restore dynamic signaling URL (protocol + window.location.host)
- Remove all hardcoded TURN usernames and credentials from stun_config.rs
- Read ICE server config from env vars at runtime:
    STUN_URL            — STUN server URL (fallback: stun:stun.l.google.com:19302)
    TURN_URL_1..N       — TURN server URLs (supports up to 10 entries)
    TURN_USERNAME       — shared TURN username
    TURN_CREDENTIAL     — shared TURN credential
- Update tests: inject/cleanup env vars instead of asserting hardcoded values
- Credentials live exclusively in .env (already in .gitignore)
- Add continue-on-error: true to the coverage job so tarpaulin instrumentation
  failures never block CI (real test failures are caught by the test job)
- Add --skip-clean to avoid full rebuild on each coverage run
- Add --timeout 120 to prevent hangs from webrtc-rs background threads
- Add --exclude-files for web/pkg and target dirs (generated files)
- Add || true to tarpaulin run as belt-and-suspenders fallback

Root cause: tarpaulin uses ptrace/SIGTRAP to instrument code, but webrtc-rs
spawns background threads that receive signals tarpaulin can't handle,
causing 'Test failed during run' even when all tests pass.
…race

Rust runs tests in parallel threads within the same process. The two
stun_config tests that called set_var/remove_var were racing each other,
causing 'test_stun_config_from_env' to see the fallback STUN URL instead
of the one it set — an intermittent CI failure.

Fix: add ENV_LOCK static Mutex<()> and lock it at the start of each
env-mutating test. The guard is dropped automatically at test end, so
the lock is always released even if the test panics.
@dejetem
dejetem merged commit dd00c05 into main Feb 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant