Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Voight Kampff given timeout #2663

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Aug 16, 2020

Description

Following some discussions with @krisgesling.

This adds a couple of given statements for setting the timeout for each of the steps in the scenario. After scenario completion the step timeout is returned to to original 10 seconds. Hopefully we won't be needed to go above 10 seconds in too many cases, but the option can be good to have for computation heavy tasks or tasks relying on an external data source.

How to test

Create a simple test for a skill and add a 25 second delay (to not trigger within the retry) before the speak command. ensure that this test fails then add a And a 30 second timeout after the given step.

Contributor license agreement signed?

CLA [ Yes ]

The new given sets the timeout of the steps in a scenario. The timeout is reset after each scenario.
This allows wait for dialog to respect the timeout set for the current
scenario.
@devops-mycroft devops-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Aug 16, 2020
@devops-mycroft
Copy link

Voight Kampff Integration Test Failed (Results)

Copy link
Member

@chrisveilleux chrisveilleux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Was surprised to not see any scenarios using the new givens. I guess that comes later...

@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

@krisgesling krisgesling merged commit 52b908f into MycroftAI:dev Sep 9, 2020
@forslund forslund deleted the feature/given-timeout branch September 9, 2020 06:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants