Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@nturgut
Copy link
Contributor

@nturgut nturgut commented Nov 13, 2020

Description

Felt is reporting exitcode 0 even though one or more tests fails. Remove the wrong integer values.

Related Issues

fixes: flutter/flutter#70400

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Reviewer Checklist

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

@nturgut nturgut requested a review from yjbanov November 13, 2020 00:31
@flutter-dashboard
Copy link

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.

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

@google-cla google-cla bot added the cla: yes label Nov 13, 2020
/// this rate is set to 0.28), since during the end to end tests there are
/// more components on the screen which are not related to the functionality
/// under test ex: a blinking cursor.
const double kMaxDiffRateFailure = 0.5 / 100; // 0.5%
Copy link
Contributor

Choose a reason for hiding this comment

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

can we limit this to canvaskit only ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks. I'll also discuss this as an option, tomorrow with @yjbanov. As we discussed offline the options we have:

  • increasing the diff
  • applying different diff for canvaskit
  • merging different screenshot files for canvaskit
  • (long term, after migration) uploading with different parameters to gold.

Since tests are returning unreliable results now, I'd like to keep this till tomorrow.

Copy link
Contributor

Choose a reason for hiding this comment

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

My guess is, because the tests have been silently failing, as we were upgrading CanvasKit to new versions and weren't updating the screenshots, they slowly deviated from the goldens. Updating the screenshots might do the trick.

Copy link
Contributor

Choose a reason for hiding this comment

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

@nturgut nturgut changed the title remove the extra values which was overshadowing the test result TBR: remove the extra values which was overshadowing the test result Nov 13, 2020
@nturgut
Copy link
Contributor Author

nturgut commented Nov 13, 2020

@yjbanov merging this one as TBR. Since all integration tests are returning exit code 0 without this change (unit tests are not effected) I'd like this to work ASAP.

@nturgut nturgut merged commit 03ff8a4 into flutter:master Nov 13, 2020
@flar
Copy link
Contributor

flar commented Nov 13, 2020

This is breaking the engine builds (and preventing rolling). I realize the tests that are breaking the builds now had been failing before and we should fix them, but it rather than halting all work, we should fix the problems and then push the more stringent requirements. Details on the failures can be found in the Linux Web Engine build here: (this change was likely not the cause of the failure)

https://ci.chromium.org/p/flutter/builders/prod/Linux%20Web%20Engine/2640

@flar
Copy link
Contributor

flar commented Nov 13, 2020

The revert encountered the same problems so this PR was not the cause. Perhaps something changed in the framework that it was being rolled into.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

LGTM

return numberOfFailedTests == 0;
print('INFO: ${numberOfTestsRun} tests run. ${_numberOfPassedTests} passed '
'and ${_numberOfFailedTests} failed.');
return _numberOfFailedTests == 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

This LGTM as an emergency fix, but we also need a test that fails intentionally to verify that when we need to fail we do. We can borrow ideas from other tools that have failure tests:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great, thanks! I was also thinking about it yesterday. I think that's a very important test case to have.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
flar pushed a commit to flutter/flutter that referenced this pull request Nov 13, 2020
* 03ff8a4 TBR: remove the extra values which was overshadowing the test result (flutter/engine#22483)

* e9b6a42 Roll Skia from a06b63c56ecd to 8ead30d51c86 (1 revision) (flutter/engine#22487)

* ee70051 Roll Fuchsia Linux SDK from fULjPqtx9... to B4PaMsNWM... (flutter/engine#22490)

* 4cbb684 Roll Dart SDK from 3e502e0c7e04 to 41893ff76b0f (1 revision) (flutter/engine#22491)

* 38b6c22 PlatformViewIOS CreateExternalViewEmbedder refactor (flutter/engine#22353)

* bbcf19a Roll Skia from 8ead30d51c86 to 011218edb590 (4 revisions) (flutter/engine#22493)
chaselatta pushed a commit to chaselatta/engine that referenced this pull request Nov 30, 2020
…lutter#22483)

* remove the extra values which was overshadowing the test result

* increase difference. canvaskit gives different results

* increase difference more. firefox gave 1.7 diff. add comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

felt test --integration-tests-only does not fail when it should

4 participants