Skip to content

Attempt to mitigate flakiness around devtools - #94879

Merged
fluttergithubbot merged 1 commit into
flutter:masterfrom
Hixie:serveAndAnnounceDevTools
Dec 10, 2021
Merged

fluttergithubbot merged 1 commit into
flutter:masterfrom
Hixie:serveAndAnnounceDevTools

Conversation

@Hixie

@Hixie Hixie commented Dec 8, 2021

Copy link
Copy Markdown
Contributor

This does three things:

  • Add more asserts around the devtools launching
  • Add more defensive checks around the devtools launching in case we're seeing shutdown races
  • Enable the asserts for the web tests.

The idea is to either avoid a flake like this, or make the logs more useful:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828452555087042433/+/u/run_test.dart_for_web_long_running_tests_shard_and_subshard_1_5/test_stdout

See also #60239

@flutter-dashboard flutter-dashboard Bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Dec 8, 2021
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie

Hixie commented Dec 8, 2021

Copy link
Copy Markdown
Contributor Author

Comment thread dev/bots/test.dart Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

will this also cause subsequent runs to erroneously re-use the asserts enabled tool snapshot?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah as i was refactoring this code (this function is just an extract of code that was already there twice) i was thinking what we really should do is put the env variables into the snapshot name somehow

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you mean something like flutter_tool_with_asserts.snapshot?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

or all FLUTTER_TOOL_ARGS?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we could write them to the flutter_tools.stamp file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, one of those

do you think we should do that in this PR or should i file a bug for now?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I filed an issue, up to you whether you want to update that here: #94892

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the interests of keeping this PR simple I'm going to not fix it here but I'll look to see if I can do it as a separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@christopherfujino christopherfujino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

This does three things:

 * Add more asserts around the devtools launching
 * Add more defensive checks around the devtools launching in case we're seeing shutdown races
 * Enable the asserts for the web tests.

The idea is to either avoid a flake like this, or make the logs more useful:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828452555087042433/+/u/run_test.dart_for_web_long_running_tests_shard_and_subshard_1_5/test_stdout

See also flutter#60239
@Hixie
Hixie force-pushed the serveAndAnnounceDevTools branch from 01122c8 to 6ae6fd9 Compare December 10, 2021 01:07
@fluttergithubbot
fluttergithubbot merged commit cd23959 into flutter:master Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants