-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #7921 and added test cases #892
Conversation
🦋 Changeset detectedLatest commit: f2c8332 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…e and emit ended/failed event if the state is "collecting" and resolve CallCollect.ended() promise only when state is not "collecting" AND final is either undefined/true AND result.type is one od ENDED_STATES.
f96cd2e
to
a3f1b0c
Compare
@giavac I added the steps we need to take to run test before backend changes are on staging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bookmark to ensure the generic SIP Domains are restored before merging.
Update: No special steps needed to run the new test cases anymore to test on staging. |
(I'll approve once the other open conversations will be resolved) |
I updated the tests to make sure to fail on prod, but it seems like we deployed the collect changes to production already. I updated the audio file I am playing in the test to include long enough pause, so FS will deliver more than one collect events (at least one event with final: true in partialResults: true, continuous: true case), and adjusted silenceTimeout and speechTimeout to accommodate it. Since, changes are on prod, to test the failure. I disabled the I also notice speech detect can return inconsistant data for example /cc @iAmmar7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @ayeminag 🚀
NOTES
In order to run
internal/e2e-realtime-api/voiceSpeechCollect.test.ts
before merging the backend changedBackend Todos
relaye2e
SDK Todos
internal/e2e-realtime-api/src/voiceSpeechCollect.test.ts
, replacedev-min.dapp.swire.io
sip domain with the sip domain you created in above step.internal/e2e-realtime-api/.env.test
and setupnpm dev:rt-only
References
Description
state
param toCallingCallCollectEventParams
voiceCallCollectWorker
doesn't clean upCallCollect
instance and emit ended/failed event if thestate
is"collecting"
CallCollect.ended()
promise only when state is NOT"collecting"
ANDfinal
is eitherundefined
/true
ANDresult.type
is one ofENDED_STATES
.Call.collect()
in@sw-internal/e2e-realtime-api