fix(ci): systematic fixes for E2E tests and CI environment

- `js/nostr/client.js`: Exposed `derivePrivateKeyFromSecret` to `NostrClient` (delegating to `SignerManager`) to support programmatic login in E2E tests.
- `tests/e2e/helpers/bitvidTestFixture.ts`: Refactored to use dynamic relay ports based on `workerIndex` to fix parallel execution collisions.
- `scripts/agent/simple-relay.mjs`: Updated `close()` to force terminate connected clients, preventing test teardown hangs.
- `scripts/check-sw-compat.mjs`: Added try-catch around git commands to gracefully handle shallow clones in CI environments.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-10 06:45:11 +00:00
1 parent f0f078b843
commit 3ef17d1122
4 files changed
+54 -33

No files matched your search

+5
View File
@@ -194,6 +194,11 @@ export function startRelay(port = 8888, options = {}) {
return {
close: () => {
return new Promise((resolve) => {
// Force close all connected clients
for (const client of wss.clients) {
client.terminate();
}
const closeHttp = httpServer
? new Promise((r) => httpServer.close(r))
: Promise.resolve();