-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Temporarily Disabling Flaky Integration Tests in Plugin Example Apps #8109
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave a TODO linking to an issue to renable these tests (could repurpose the ones you have already for Camille), i.e. at every line where you wrote skip: true
. There should be at least one example in the repo if you want a reference.
This is important because otherwise we permanently skip test coverage which can have worse implications down the line.
Thanks for creating the PR!
Thanks for the explanation! done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this :)
Are we sure these are flaky tests? The referenced PR is creating a situation that one of the referenced issues says will break the test, and the PR appears to be failing every Android camera package, even with retries. What's the evidence that this is pre-existing flake rather than the PR actually breaking the tests? |
@stuartmorgan can confirm this test is broken by something in the plugin not flaky and should be disabled until I can investigate. flutter/flutter#154682 has evidence of it failing locally in the past. I know these don't reference If you need more proof, let me know and I can validate its broken-ness to help unblock #8037! |
Ah I just noticed #8037 (comment). It's possible that the bugs I've seen are related to bumping the target SDK version (though I don't think the b/376074365 is; it appears it's even more broken after the target SDK bump). @stuartmorgan would a good compromise be not bumping the target SDK version until I fix the tests? @jesswrd not sure if your change #8037 relies on that or not. |
@camsim99 I can't merge without bumping the target sdk version. Google Play requires a target sdk version of at least 33, so I upgraded the target sdk version for @stuartmorgan Given the above, I think I should disable the tests, but let me know how you'd like me to proceed. |
Right, but it was failing in a PR that tried to bump the SDK version. And so the camera part was backed out of that PR. That's not flake, that's deterministic failure under the same conditions as the new PR. It just seems like there's a mismatch here, where this PR describes the failures as "flakes [...] unrelated to the mentioned PR", but what I'm seeing is significant evidence that the failures are in fact directly caused by that PR, for reasons that have been previously established last time we tried to roll the target SDK.
It runs any time anyone touches AFAICT the state is that it's fine on |
This SGTM! |
Sounds good. I'll disable the working tests in #8037 and add a note in the PR description. |
Temporarily skipping flaky integration tests in plugin example apps for camera, camera_android, and camera_android_camerax to safely land #8037.
The flakes are unrelated to the mentioned PR and can likley be traced back to the following issues:
flutter/flutter#154682
flutter/flutter#157556
Partially addresses flutter/flutter#152656
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.