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

[integration_test] Don't log exceptions twice #81812

Merged
merged 3 commits into from May 8, 2021

Conversation

jiahaog
Copy link
Member

@jiahaog jiahaog commented May 4, 2021

Today, exceptions thrown in integration tests are logged twice. This is confusing for users, who might mistakenly believe that the tests are running twice.

Please see the comment in the diff for more details. For tests, I removed some of the <<skip until matching line>> markers from the stack trace golden to make it stricter.

Also relevant: #7669

@flutter-dashboard flutter-dashboard bot added the team Infra upgrades, team productivity, code health, technical debt. See also team: labels. label May 4, 2021
@google-cla google-cla bot added the cla: yes label May 4, 2021
@jiahaog jiahaog marked this pull request as ready for review May 4, 2021 09:06
@jiahaog jiahaog requested a review from dnfield May 4, 2021 09:06
Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM

The test description was: Exception handling in test harness - uncaught Future error
.*(TODO\(jiahaog\): Remove the next line once https://github.com/flutter/flutter/issues/81521 is fixed)?
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm correctly understanding this as effectively a comment in this file, not actually matching output right/

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right!

@fluttergithubbot fluttergithubbot merged commit 099f116 into flutter:master May 8, 2021
@jiahaog jiahaog deleted the dont-error-twice branch May 8, 2021 00:50
@jiahaog jiahaog restored the dont-error-twice branch May 8, 2021 00:50
@jiahaog jiahaog deleted the dont-error-twice branch May 8, 2021 00:50
@jiahaog jiahaog restored the dont-error-twice branch May 8, 2021 00:50
@jiahaog jiahaog deleted the dont-error-twice branch May 8, 2021 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team Infra upgrades, team productivity, code health, technical debt. See also team: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants