Skip to content

fix(peers/test): integration test failures from audit-fix sprint#136

Merged
ParkerM2 merged 5 commits intomasterfrom
develop
Apr 27, 2026
Merged

fix(peers/test): integration test failures from audit-fix sprint#136
ParkerM2 merged 5 commits intomasterfrom
develop

Conversation

@ParkerM2
Copy link
Copy Markdown
Owner

Three fixes for integration test failures introduced by the peers audit-fix sprint (PR #133):

  1. migration-tags assertion — sprint added drizzle migration 0030_op_log_hlc_index; test assertion still pinned to 0029_projects. Updated tail assertion + length floor.
  2. safeStorage required by default — peer-identity now refuses plaintext when safeStorage unavailable. CI lacks Electron's safeStorage. Added env-var fallback (ADC_PEERS_ALLOW_PLAINTEXT_IDENTITY=1) inside peer-identity.ts itself, plus set the env in test.yml integration + unit jobs.
  3. Pre-existing failing run: 24998879368.

🤖 Generated with Claude Code

…with rejectUnauthorized:false

Self-signed peer certs cannot be CA-validated, so rejectUnauthorized:true causes
Node to reject the handshake before checkServerIdentity runs. Switch back to
rejectUnauthorized:false in both peer client paths (peer-http postJsonPinned and
ws-transport.dial); pinnedCheckServerIdentity still enforces the fingerprint at
TLS time and fails the handshake on mismatch.

Also isolate peer-identity tests from CI's ADC_PEERS_ALLOW_PLAINTEXT_IDENTITY env
var so the throw-on-unavailable assertions remain meaningful.
…dentity Error when rejectUnauthorized:false); pair-flow waits for connection AFTER pairing populates peerStores
…(notifyDisconnected); was stuck in 'open' state on auth-fail close
@ParkerM2 ParkerM2 merged commit 241637d into master Apr 27, 2026
3 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.

2 participants