Skip to content

Commit

Permalink
Release 2023-09-14 (#883)
Browse files Browse the repository at this point in the history
* hide lock/unlock feature

* consume changesets

* internal packages

* generate versions

* enable debug in CI

* logs
  • Loading branch information
Edoardo Gallo authored Sep 15, 2023
1 parent 9e0781e commit 217bdfe
Show file tree
Hide file tree
Showing 65 changed files with 288 additions and 254 deletions.
8 changes: 0 additions & 8 deletions .changeset/brown-seahorses-glow.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/curly-peaches-do.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/dull-beers-glow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/early-llamas-peel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eight-vans-unite.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/eighty-otters-drive.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fresh-steaks-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/healthy-fireants-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/itchy-buckets-enjoy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/khaki-avocados-guess.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/lemon-icons-compete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-ghosts-dream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-years-draw.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/nasty-olives-press.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nervous-dogs-change.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/popular-doors-whisper.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-kids-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-turkeys-tickle.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/silver-needles-give.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/six-islands-invite.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-lobsters-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-months-marry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/smooth-parents-cheer.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/tough-ads-sparkle.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/tough-cows-reflect.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/yellow-pugs-call.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/yellow-walls-vanish.md

This file was deleted.

13 changes: 13 additions & 0 deletions internal/e2e-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @sw-internal/e2e-js

## 0.0.15

### Patch Changes

- [#860](https://github.com/signalwire/signalwire-js/pull/860) [`19f8673f`](https://github.com/signalwire/signalwire-js/commit/19f8673fd6cdd736b1013fb247afe4cd757aa596) - Improve e2e-tests for the browser sDK

- [#874](https://github.com/signalwire/signalwire-js/pull/874) [`774bed8b`](https://github.com/signalwire/signalwire-js/commit/774bed8b650478d070668c8b533c196cf9bec6ad) - Review CI setup

- [#853](https://github.com/signalwire/signalwire-js/pull/853) [`5e1ff117`](https://github.com/signalwire/signalwire-js/commit/5e1ff117cf84c6058b08863b578be885b7fb37ea) - Remove event emitter transform pipeline from browser SDK

- Updated dependencies [[`114bc825`](https://github.com/signalwire/signalwire-js/commit/114bc8255c7929a6bb3ac99fa3f69fbd469bd4c8), [`6c435be2`](https://github.com/signalwire/signalwire-js/commit/6c435be2738ec4a70c8acfada282b829b551ec82)]:
- @sw-internal/playground-js@0.0.15

## 0.0.14

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions internal/e2e-js/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@sw-internal/e2e-js",
"version": "0.0.14",
"version": "0.0.15",
"private": true,
"main": "index.js",
"scripts": {
"dev": "sw-test --mode=playwright",
"test": ""
},
"dependencies": {
"@sw-internal/playground-js": "0.0.14",
"@sw-internal/playground-js": "0.0.15",
"node-fetch": "^2.6.7",
"vite": "^4.3.9"
},
Expand Down
2 changes: 1 addition & 1 deletion internal/e2e-js/tests/roomSessionLockUnlock.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
expectMCUVisible,
} from '../utils'

test.describe('RoomSession Lock/Unlock', () => {
test.describe.skip('RoomSession Lock/Unlock', () => {
test('should join a room and be able to lock/unlock it', async ({
createCustomPage,
}) => {
Expand Down
6 changes: 2 additions & 4 deletions internal/e2e-js/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ export const createTestRoomSession = async (
host: options.RELAY_HOST,
token: options.API_TOKEN,
rootElement: document.getElementById('rootElement'),
// logLevel: options.CI ? 'info' : 'debug',
// logLevel: 'debug',
logLevel: options.CI ? 'info' : 'debug',
debug: {
// logWsTraffic: !options.CI,
logWsTraffic: false,
logWsTraffic: Boolean(options.CI),
},
...options.roomSessionOptions,
})
Expand Down
12 changes: 12 additions & 0 deletions internal/e2e-realtime-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @sw-internal/e2e-realtime-api

## 0.1.11

### Patch Changes

- [#871](https://github.com/signalwire/signalwire-js/pull/871) [`ac23f882`](https://github.com/signalwire/signalwire-js/commit/ac23f8827b617542826ef872ed377b002c51944c) - Update recording e2e tests

- [#878](https://github.com/signalwire/signalwire-js/pull/878) [`9e0781e0`](https://github.com/signalwire/signalwire-js/commit/9e0781e00b609513b62f11304fa1b01cab496783) - Review realtime-api tests using domain apps

- [#874](https://github.com/signalwire/signalwire-js/pull/874) [`774bed8b`](https://github.com/signalwire/signalwire-js/commit/774bed8b650478d070668c8b533c196cf9bec6ad) - Review CI setup

- [#853](https://github.com/signalwire/signalwire-js/pull/853) [`5e1ff117`](https://github.com/signalwire/signalwire-js/commit/5e1ff117cf84c6058b08863b578be885b7fb37ea) - Remove event emitter transform pipeline from browser SDK

## 0.1.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion internal/e2e-realtime-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sw-internal/e2e-realtime-api",
"version": "0.1.10",
"version": "0.1.11",
"private": true,
"main": "index.js",
"scripts": {
Expand Down
48 changes: 24 additions & 24 deletions internal/e2e-realtime-api/src/playwright/video.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ test.describe('Video', () => {
expect(
roomSessionsRunning.filter((r) => {
return (
typeof r.play === 'function' &&
typeof r.lock === 'function' &&
typeof r.unlock === 'function'
typeof r.play === 'function' // &&
// typeof r.lock === 'function' &&
// typeof r.unlock === 'function'
)
})
).toHaveLength(roomCount)
Expand Down Expand Up @@ -95,27 +95,27 @@ test.describe('Video', () => {
await Promise.all(playbacks.map((p) => p.stop()))
})

await new Promise<void>(async (resolve, reject) => {
rs.on('room.updated', (roomSession) => {
if (roomSession.locked === true) {
resolve()
} else {
reject(new Error('Not locked'))
}
})
await rs.lock()
})

await new Promise<void>(async (resolve, reject) => {
rs.on('room.updated', (roomSession) => {
if (roomSession.locked === false) {
resolve()
} else {
reject(new Error('Still locked'))
}
})
await rs.unlock()
})
// await new Promise<void>(async (resolve, reject) => {
// rs.on('room.updated', (roomSession) => {
// if (roomSession.locked === true) {
// resolve()
// } else {
// reject(new Error('Not locked'))
// }
// })
// await rs.lock()
// })

// await new Promise<void>(async (resolve, reject) => {
// rs.on('room.updated', (roomSession) => {
// if (roomSession.locked === false) {
// resolve()
// } else {
// reject(new Error('Still locked'))
// }
// })
// await rs.unlock()
// })
}

const roomSessionsAtEnd = await findRoomSessionsByPrefix()
Expand Down
2 changes: 1 addition & 1 deletion internal/e2e-realtime-api/src/voice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const handler: TestHandler = ({ domainApp }) => {
topics: [domainApp.call_relay_context],
// logLevel: "trace",
debug: {
logWsTraffic: false,
logWsTraffic: true,
},
})

Expand Down
3 changes: 3 additions & 0 deletions internal/e2e-realtime-api/src/voiceDetect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const handler: TestHandler = ({ domainApp }) => {
project: process.env.RELAY_PROJECT as string,
token: process.env.RELAY_TOKEN as string,
contexts: [domainApp.call_relay_context],
debug: {
logWsTraffic: true,
},
})

let waitForDetectStartResolve
Expand Down
2 changes: 1 addition & 1 deletion internal/e2e-realtime-api/src/voicePass.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const handler: TestHandler = ({ domainApp }) => {
contexts: [domainApp.call_relay_context],
// logLevel: "trace",
debug: {
// logWsTraffic: true,
logWsTraffic: true,
},
}

Expand Down
3 changes: 3 additions & 0 deletions internal/e2e-realtime-api/src/voicePlayback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const handler: TestHandler = ({ domainApp }) => {
project: process.env.RELAY_PROJECT as string,
token: process.env.RELAY_TOKEN as string,
topics: [domainApp.call_relay_context],
debug: {
logWsTraffic: true,
},
})

client.on('call.received', async (call) => {
Expand Down
3 changes: 3 additions & 0 deletions internal/e2e-realtime-api/src/voicePlaybackMultiple.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const handler: TestHandler = ({ domainApp }) => {
project: process.env.RELAY_PROJECT as string,
token: process.env.RELAY_TOKEN as string,
topics: [domainApp.call_relay_context],
debug: {
logWsTraffic: true,
},
})

let waitForOutboundPlaybackStartResolve
Expand Down
Loading

0 comments on commit 217bdfe

Please sign in to comment.