-
Notifications
You must be signed in to change notification settings - Fork 487
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 Random thread safety and control random seed to improve testability #4429
Conversation
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TestOptions.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.LanguageGeneration/EvaluationOptions.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.TestBot.Json/TestOptionsMiddleware.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.TestBot.Json/ConvertMessageToEventMiddleware.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.TestBot.Json/Samples/RandomGenerator/RandomGenerator.main.dialog
Outdated
Show resolved
Hide resolved
Good progress. A few things:
|
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/AdaptiveDialog.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/AdaptiveEvents.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TestOptions.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.TestBot.Json/Samples/RandomGenerator/RandomGenerator.main.dialog
Outdated
Show resolved
Hide resolved
Good changes for the RandomValue except for min/max adjustment. In reply to: 672109749 [](ancestors = 672109749) |
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.
🕐
Currently, the only thing that is blocked on my side is how to catch the "emitEvent" event in middleware. #Resolved |
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TestOptions.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/TestOptions.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Generators/TemplateEngineLanguageGenerator.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.TestBot.Json/Samples/RandomGenerator/RandomGenerator.main.dialog
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/SetTestOptionsMiddleware.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Generators/TemplateEngineLanguageGenerator.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Testing/TestActions/UserEvent.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.LanguageGeneration/Extensions.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.LanguageGeneration/Extensions.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Selectors/RandomSelector.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.LanguageGeneration/EvaluationOptions.cs
Outdated
Show resolved
Hide resolved
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.
Fixes #4361
Description
This PR aims to accept a "Microsoft.SetTestOptions" event, and apply the options to SDK.
Specific Changes
setTestOptions
eventHow to test
Progress