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

+4
View File
@@ -2417,6 +2417,10 @@ export class NostrClient {
return this.signerManager.ensureActiveSignerForPubkey(pubkey);
}
async derivePrivateKeyFromSecret(secret) {
return this.signerManager.derivePrivateKeyFromSecret(secret);
}
async loginWithExtension(options) {
// Check if ensureExtensionPermissions was overridden on this instance (e.g. by tests).
// Only proxy when the own property differs from the prototype method to avoid recursion.