-
Notifications
You must be signed in to change notification settings - Fork 3
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
check each line of messages for the correct mode on mode switch #48
Conversation
src/agent/driver-test-runner.js
Outdated
// try to keep this short because it runs up to twice for every test | ||
// have seen occasional timeout/misses at 500ms | ||
const MODE_SWITCH_SPEECH_TIMEOUT = 750; |
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.
This is fine for a quick fix, but in general, a variable should be controlled from the context upon which it depends. What that means here is this value should be specified command-line argument. @ccanash Can you create a Task/Issue to track that change?
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.
src/agent/driver-test-runner.js
Outdated
// try to keep this short because it runs up to twice for every test | ||
// have seen occasional timeout/misses at 500ms |
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.
This is a little vague (and colloquial besides). Have you observed delays longer than 500ms in the GitHub Actions environment? During local testing?
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.
Local test
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.
On a vm
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.
Thanks. I've clarified those comments.
Have seen errors while trying to switch modes on firefox. Occasionally it will end up reading out extra information after switching modes, for example
"Focus Mode\n Pizza Crust\n Grouping"
Updated the mode switch to check each line of the output individually for the correct mode text.