Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[camera] Attempt to fix flaky new Android test #6831

Merged

Conversation

stuartmorgan
Copy link
Contributor

The recently added "recording with image stream" test is very flaky, often throwing on stop. This is a speculative fix for that flake based on the documentation of stop indicating that it will throw if nothing has been recorded.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

The recently added "recording with image stream" test is very flaky,
often throwing on `stop`. This is a speculative fix for that flake based
on the documentation of `stop` indicating that it will throw if nothing
has been recorded.
@stuartmorgan
Copy link
Contributor Author

I'll run this in presubmit a few times to see if it passes reliably before proceeding.

@stuartmorgan
Copy link
Contributor Author

I've done three runs (two master, one stable), and all three passed on both devices. I checked the logs and they never did the internal one-time deflake re-run either. That's much better than what we've been seeing in CI since it landed, so this looks very promising. I'll do one more run of each, but I think we can go ahead and land this.

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

@stuartmorgan
Copy link
Contributor Author

Landing on red since the red since the red is the flake that it looks (🤞🏻) like this fixes.

@stuartmorgan stuartmorgan merged commit 1381802 into flutter:main Dec 12, 2022
@stuartmorgan stuartmorgan deleted the camera-android-test-race-fix branch December 12, 2022 16:56
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 13, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Dec 13, 2022
* 13818023c [camera] Attempt to fix flaky new Android test (flutter/plugins#6831)

* da4321d01 [google_maps_flutter] Modified `README.md` to fix minor syntax issues (flutter/plugins#6631)

* e8c9731f1 Roll Flutter from eefbe85 to bd0791b (25 revisions) (flutter/plugins#6832)

* 2eb616545 Reland "[google_maps_flutter] ios: re-enable test with popup #5312" (flutter/plugins#6783)

* 738bd91d8 Update FlutterFire link (flutter/plugins#6835)

* ec2041f82 Roll Flutter from bd0791b to 15af817 (27 revisions) (flutter/plugins#6837)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…#116996)

* 13818023c [camera] Attempt to fix flaky new Android test (flutter/plugins#6831)

* da4321d01 [google_maps_flutter] Modified `README.md` to fix minor syntax issues (flutter/plugins#6631)

* e8c9731f1 Roll Flutter from eefbe85 to bd0791b (25 revisions) (flutter/plugins#6832)

* 2eb616545 Reland "[google_maps_flutter] ios: re-enable test with popup flutter#5312" (flutter/plugins#6783)

* 738bd91d8 Update FlutterFire link (flutter/plugins#6835)

* ec2041f82 Roll Flutter from bd0791b to 15af817 (27 revisions) (flutter/plugins#6837)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
The recently added "recording with image stream" test is very flaky,
often throwing on `stop`. This is a speculative fix for that flake based
on the documentation of `stop` indicating that it will throw if nothing
has been recorded.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants