You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Malarg (via GitHub)" <gi...@apache.org> on 2023/05/17 06:14:47 UTC
[GitHub] [beam] Malarg opened a new pull request, #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Malarg opened a new pull request, #26732:
URL: https://github.com/apache/beam/pull/26732
**Please** add a meaningful description for your change here
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26732:
URL: https://github.com/apache/beam/pull/26732#issuecomment-1550819566
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment `assign set of reviewers`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Malarg commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "Malarg (via GitHub)" <gi...@apache.org>.
Malarg commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1196292443
##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/examples_loader.dart:
##########
@@ -142,7 +144,18 @@ class ExamplesLoader {
}
Future<void> _loadOne(ExampleLoader loader) async {
- final example = await loader.future;
+ Example example;
+ try {
+ example = await loader.future;
Review Comment:
But that if something happened in `_playgroundController!.setExample`? In this case exception will be incorrect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1199101475
##########
playground/frontend/playground_components/assets/translations/en.yaml:
##########
@@ -85,8 +85,7 @@ widgets:
pipelineOptions:
options: 'Options'
raw: 'Raw'
- error: >
- Please check the format (example: --key1 value1 --key2 value2), only alphanumeric and \",*,/,-,:,;,',. symbols are allowed
+ error: 'Please check the format (example: --key1 value1 --key2 value2)'
Review Comment:
Is the alphanumeric restriction no longer true?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on PR #26732:
URL: https://github.com/apache/beam/pull/26732#issuecomment-1554727524
R: @damccorm
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1196001070
##########
learning/tour-of-beam/frontend/integration_test/tour_page_test.dart:
##########
@@ -86,6 +88,7 @@ Future<void> _checkModule(ModuleModel module, WidgetTester wt) async {
}
Future<void> _checkNode(UnitModel node, WidgetTester wt) async {
+ print('Checking node: ${node.title}');
Review Comment:
Move from the test to the code, add the failing example info to the exception.
`ExampleLoadingDescriptor.token`
##########
playground/frontend/lib/modules/shortcuts/components/shortcuts_dialog.dart:
##########
@@ -44,6 +44,7 @@ class ShortcutsDialogContent extends StatelessWidget {
children: [
...[
...playgroundController.shortcuts,
+ BeamMainRunShortcut(onInvoke: () {}),
Review Comment:
Any more ideas?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1198726641
##########
playground/frontend/playground_components/lib/src/util/pipeline_options.dart:
##########
@@ -16,8 +16,7 @@
* limitations under the License.
*/
-RegExp pipelineOptionsRegExp =
- RegExp(r'''--([A-z0-9]*)\s+([A-z0-9\/\"\'\*\-\:\;\.]*)''');
+RegExp pipelineOptionsRegExp = RegExp(r'''--([^ ]+)\s+([^ ]+)''');
Review Comment:
```suggestion
RegExp pipelineOptionsRegExp = RegExp('--(\S+)\s+(\S+)');
```
?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm merged pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm merged PR #26732:
URL: https://github.com/apache/beam/pull/26732
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Malarg commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "Malarg (via GitHub)" <gi...@apache.org>.
Malarg commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1200001921
##########
playground/frontend/playground_components/assets/translations/en.yaml:
##########
@@ -85,8 +85,7 @@ widgets:
pipelineOptions:
options: 'Options'
raw: 'Raw'
- error: >
- Please check the format (example: --key1 value1 --key2 value2), only alphanumeric and \",*,/,-,:,;,',. symbols are allowed
+ error: 'Please check the format (example: --key1 value1 --key2 value2)'
Review Comment:
Yes, it is. We decided that any characters can be used
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26732:
URL: https://github.com/apache/beam/pull/26732#issuecomment-1554728936
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1196177353
##########
playground/frontend/playground_components/assets/translations/en.yaml:
##########
@@ -26,6 +26,7 @@ errors:
loading: 'Error while loading.'
loadingCatalog: 'Cannot load the example catalog.'
loadingExample: 'Cannot load the example.'
+ failedLoadExampleWithToken: 'Failed to load the example with the token: {token}.'
Review Comment:
There is no concept of tokens to the end-user.
```suggestion
failedLoadExampleWithToken: 'Failed to load the example: {token}.'
```
##########
playground/frontend/playground_components/lib/src/exceptions/example_loading_exception.dart:
##########
Review Comment:
Rename this to `ExamplesLoadingException` because it is only thrown when trying to load multiple examples.
```dart
/// Thrown when at least one example has failed to be loaded.
```
##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/examples_loader.dart:
##########
@@ -142,7 +144,18 @@ class ExamplesLoader {
}
Future<void> _loadOne(ExampleLoader loader) async {
- final example = await loader.future;
+ Example example;
+ try {
+ example = await loader.future;
Review Comment:
```suggestion
final example = await loader.future;
```
and continue the rest of the successful scenario within `try`.
##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/examples_loader.dart:
##########
@@ -142,7 +144,18 @@ class ExamplesLoader {
}
Future<void> _loadOne(ExampleLoader loader) async {
- final example = await loader.future;
+ Example example;
+ try {
+ example = await loader.future;
+ } on Exception catch (_) {
Review Comment:
```suggestion
} on Exception {
```
##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/examples_loader.dart:
##########
@@ -142,7 +144,18 @@ class ExamplesLoader {
}
Future<void> _loadOne(ExampleLoader loader) async {
- final example = await loader.future;
+ Example example;
+ try {
+ example = await loader.future;
+ } on Exception catch (_) {
+ throw Exception(
Review Comment:
Would be nice to have `ExampleLoadingException` class with `token` as a property. It's not the loader's job to be translation-aware.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1198726641
##########
playground/frontend/playground_components/lib/src/util/pipeline_options.dart:
##########
@@ -16,8 +16,7 @@
* limitations under the License.
*/
-RegExp pipelineOptionsRegExp =
- RegExp(r'''--([A-z0-9]*)\s+([A-z0-9\/\"\'\*\-\:\;\.]*)''');
+RegExp pipelineOptionsRegExp = RegExp(r'''--([^ ]+)\s+([^ ]+)''');
Review Comment:
```suggestion
RegExp pipelineOptionsRegExp = RegExp(r'''--(\S+)\s+(\S+)''');
```
?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] alexeyinkin commented on a diff in pull request #26732: returned run shortcut, fixed pipeline options validation, added logs to ToB tests
Posted by "alexeyinkin (via GitHub)" <gi...@apache.org>.
alexeyinkin commented on code in PR #26732:
URL: https://github.com/apache/beam/pull/26732#discussion_r1198726641
##########
playground/frontend/playground_components/lib/src/util/pipeline_options.dart:
##########
@@ -16,8 +16,7 @@
* limitations under the License.
*/
-RegExp pipelineOptionsRegExp =
- RegExp(r'''--([A-z0-9]*)\s+([A-z0-9\/\"\'\*\-\:\;\.]*)''');
+RegExp pipelineOptionsRegExp = RegExp(r'''--([^ ]+)\s+([^ ]+)''');
Review Comment:
```suggestion
RegExp pipelineOptionsRegExp = RegExp(r'--(\S+)\s+(\S+)');
```
?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org