Skip to content
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

returned run shortcut, fixed pipeline options validation, added logs to ToB tests #26732

Merged
merged 8 commits into from
May 22, 2023

Conversation

Malarg
Copy link
Contributor

@Malarg Malarg commented May 17, 2023

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.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@@ -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}');
Copy link
Contributor

Choose a reason for hiding this comment

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

Move from the test to the code, add the failing example info to the exception.
ExampleLoadingDescriptor.token

@@ -44,6 +44,7 @@ class ShortcutsDialogContent extends StatelessWidget {
children: [
...[
...playgroundController.shortcuts,
BeamMainRunShortcut(onInvoke: () {}),
Copy link
Contributor

Choose a reason for hiding this comment

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

Any more ideas?

@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@github-actions github-actions bot removed the learning label May 17, 2023
@@ -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}.'
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no concept of tokens to the end-user.

Suggested change
failedLoadExampleWithToken: 'Failed to load the example with the token: {token}.'
failedLoadExampleWithToken: 'Failed to load the example: {token}.'

Example example;
try {
example = await loader.future;
} on Exception catch (_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} on Exception catch (_) {
} on Exception {

final example = await loader.future;
Example example;
try {
example = await loader.future;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
example = await loader.future;
final example = await loader.future;

and continue the rest of the successful scenario within try.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But that if something happened in _playgroundController!.setExample? In this case exception will be incorrect

Copy link
Contributor

Choose a reason for hiding this comment

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

Rename this to ExamplesLoadingException because it is only thrown when trying to load multiple examples.

/// Thrown when at least one example has failed to be loaded.

try {
example = await loader.future;
} on Exception catch (_) {
throw Exception(
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have ExampleLoadingException class with token as a property. It's not the loader's job to be translation-aware.

@Malarg Malarg requested a review from alexeyinkin May 19, 2023 03:56
…e_options.dart

Co-authored-by: alexeyinkin <leha@inkin.ru>
@Malarg Malarg requested a review from alexeyinkin May 19, 2023 10:52
Copy link
Contributor

@alexeyinkin alexeyinkin left a comment

Choose a reason for hiding this comment

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

LGTM (internal review).

@alexeyinkin
Copy link
Contributor

R: @damccorm

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

Just had one small question, otherwise LGTM

@damccorm damccorm merged commit 120f952 into apache:master May 22, 2023
cushon pushed a commit to cushon/beam that referenced this pull request May 24, 2024
…to ToB tests (apache#26732)

* returned run shortcut, fixed pipeline options validation, added logs to ToB tests

* fixed failed load example error

* issue26730 fix pr

* fix pipeline options

* tests fix

* added inputFormatter to pipeline option

* Update playground/frontend/playground_components/lib/src/util/pipeline_options.dart

Co-authored-by: alexeyinkin <leha@inkin.ru>

---------

Co-authored-by: alexeyinkin <leha@inkin.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants