Commit Graph

77 Commits

Author SHA1 Message Date
Ian Hickson
77c3807c80 Revert "Make tests more resilient to Skia gold failures and refactor flutter_goldens for extensive technical debt removal (#140101)" (#141814)
Reverts https://github.com/flutter/flutter/pull/140101

That PR somehow made non-matching gold tests not fail at HEAD.

Fixes https://github.com/flutter/flutter/issues/141880
- Blocked by https://github.com/flutter/flutter/issues/140169
  - https://github.com/flutter/flutter/pull/141427
2024-01-19 20:29:11 +00:00
Ian Hickson
62f1594908 Make tests more resilient to Skia gold failures and refactor flutter_goldens for extensive technical debt removal (#140101)
Originally landed in https://github.com/flutter/flutter/pull/139549
Originally reverted in https://github.com/flutter/flutter/pull/140085

- Remove all use of global variables.
- Always pass in all dependencies, only create them in main or in tests.
- Pass in the "print" primitive.
- Make all network traffic retry (except when run locally, when it just auto-passes).
- Enable tests to be run in random order.
- Better error messages
2023-12-21 21:35:07 +00:00
auto-submit[bot]
91877c6345 Reverts "Make tests more resilient to Skia gold failures and refactor flutter_goldens for extensive technical debt removal" (#140085)
Reverts flutter/flutter#139549
Initiated by: Piinks
This change reverts the following previous change:
Original Description:
* Remove all use of global variables.
* Always pass in all dependencies, only create them in main or in tests.
* Pass in the "print" primitive.
* Make all network traffic retry (except when run locally, when it just auto-passes).
* Enable tests to be run in random order.
2023-12-13 20:20:20 +00:00
Ian Hickson
11a9cb7029 Make tests more resilient to Skia gold failures and refactor flutter_goldens for extensive technical debt removal (#139549)
* Remove all use of global variables.
* Always pass in all dependencies, only create them in main or in tests.
* Pass in the "print" primitive.
* Make all network traffic retry (except when run locally, when it just auto-passes).
* Enable tests to be run in random order.
2023-12-13 04:09:13 +00:00
Kate Lovett
91ea024cbc Don't send images to Gold on release branches (#139706)
Part of fixing https://github.com/flutter/flutter/issues/139673, it will need to be cherry picked into the stable branch to fully resolve.

Originally I tried to come at this from `ci.yaml`, but the syntax does not exist to either conditionally include a dependency based on the branch we are on, or to disable a shard for a given branch (as opposed to enabling it which is supported). I could double every CI shard that uses Gold to try to serve my purpose, but it is already a very large and cumbersome file to keep up to date. Doubling it does not feel like the best solution. Using a RegEx is not my favorite, but I am using the same one we use in our CI, and left a note there to update it if it should ever change. Since there is already a whole infra built around it, I feel it is pretty safe so we can fix the stable tree.

We already had mitigated Gold affecting release branches in the past through flutter/cocoon (https://github.com/flutter/flutter/issues/58814), but https://github.com/flutter/flutter/issues/139673 exposed a rather rare edge case. A change was CP'd into the stable branch that introduced golden file image changes. Typically this would not cause an issue since any change that has landed on the master branch has golden files accounted for. In this case, the CP'd change on master has generated a different image on canvaskit due to another change that was not on stable. So when the CP landed, it generated a new image Gold had never seen before. Gold only tracks the master branch, so we cannot approve the image, and so cannot fix the stable tree.

This would disable the failing check on release branches and fix the tree.
2023-12-07 19:34:05 +00:00
Zachary Anderson
a84e369bd2 Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902)
This reverts commit 53e6876226.
2022-11-08 09:26:55 -08:00
Kate Lovett
53e6876226 Allow Flutter golden file tests to be flaky (#114450)
* allow marking a golden check as flaky

* add matchesFlutterGolden to analyze.dart; no tags for flutter_goldens/lib

* Pause

* ++

* ++

* Analyzer therapy

* Once more with feeling

* Nits

* Review feedback

* Silly oops

* Test progress

* More tests

* Finish

* Nits

* Analyzer

* Review feedback

Co-authored-by: Yegor Jbanov <yjbanov@google.com>
2022-11-08 01:14:03 +00:00
Kate Lovett
abbc0bedca Add more logs to diagnose Gold flake (#108930) 2022-08-04 00:11:23 +00:00
Alexandre Ardhuin
56c4e3cdd8 add some exports of public API in foundation/serialization.dart (#104231) 2022-06-08 13:33:12 -07:00
Michael Goderbauer
2b14e993a7 Cleanup random dead test code (#104568) 2022-05-25 10:23:10 -07:00
Yegor
3fe2cbabc4 [web] allow small golden deltas in HTML renderer (#102791) 2022-04-29 11:49:05 -07:00
Alexandre Ardhuin
07f1c20474 add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
Kate Lovett
324e6d9d4e Re-enable Gold post-submit fail state (#101528) 2022-04-07 15:36:09 -07:00
Kate Lovett
8e7b361651 Add back Gold passfail (#100576) 2022-03-22 14:00:20 -07:00
Kate Lovett
2386fd90c9 Disable post-submit Gold failures entirely (#100332) 2022-03-17 17:07:02 -05:00
Kate Lovett
7f241ba3fa Disable post-submit failures (#100308) 2022-03-17 11:58:26 -05:00
Viren Khatri
671aa9e95e complete migration of flutter repo to Object.hash* (#99505) 2022-03-04 12:56:21 -08:00
Michael Goderbauer
00f3f2b14f More beautiful linear_gradient sample (#99298) 2022-03-02 16:41:21 -08:00
Kate Lovett
a288bd5e3f Re-land Assert golden files use the right extension (#99082) 2022-02-24 21:06:19 -08:00
Harry Terkelsen
735f9abfe1 Revert "Assert golden files use the right extension (#99016)" (#99075)
This reverts commit ee86e61f73.
2022-02-24 10:44:12 -08:00
Kate Lovett
ee86e61f73 Assert golden files use the right extension (#99016) 2022-02-23 19:59:21 -08:00
Kate Lovett
895beb04bb Initialize the Skia client more efficiently (#95055) 2021-12-10 18:54:10 -08:00
Chris Wong
7ef5226799 Migrate to process 4.2.4 (#92630) 2021-11-30 17:14:07 -08:00
Kate Lovett
ea52013895 Close tree if unapproved golden images get in (#93516) 2021-11-15 12:40:32 -08:00
Alexander Dahlberg
f091654fb4 Removed no-shuffle tag and fixed leak in flutter_goldens_test.dart (#92374) 2021-11-11 12:44:32 -08:00
Ian Hickson
9421627324 Enable only_throw_errors (#91567) 2021-10-11 14:13:03 -07:00
Ian Hickson
f25b833f27 Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
Mouad Debbar
c2ea78d231 Revert "Enable avoid_print lint. (#91332)" (#91438)
This reverts commit cb378edc9e.
2021-10-07 16:16:17 -04:00
Ian Hickson
cb378edc9e Enable avoid_print lint. (#91332) 2021-10-07 09:53:03 -07:00
Kate Lovett
65d8dd988d Update md5 method in flutter_goldens_client (#90154) 2021-09-15 17:42:05 -07:00
Kate Lovett
8587b609a6 Update local gold api (#90072) 2021-09-14 14:53:33 -05:00
Greg Spencer
738ce43d97 Randomize tests, exclude tests that fail with randomization. (#86793)
* Randomize tests, exclude tests that fail with randomization.

* Disable some more tool tests
2021-07-26 23:40:49 -07:00
Kate Lovett
4b65c0582a Reduce potential collisions from Gold RNG (#81792) 2021-05-07 14:19:03 -07:00
Sam Rawlins
288b94115d Remove "unnecessary" imports. (#78666) 2021-04-01 19:59:03 -07:00
Michael Goderbauer
7b251f5f37 Enable use_function_type_syntax_for_parameters lint (#77163) 2021-03-04 08:59:17 -08:00
Jonah Williams
7088c5ba2a Update all packages (#76143) 2021-02-16 15:29:12 -08:00
Kate Lovett
f04616f723 Migrate flutter_goldens to null safety (#74853) 2021-01-27 17:29:04 -08:00
Dan Field
1747adb630 Drop mockito for flutter_goldens (#74782) 2021-01-27 13:09:46 -08:00
Kate Lovett
72696f77dd Remove Cirrus support for Gold (#67468) 2020-10-08 14:19:42 -05:00
Kate Lovett
51fa704642 Add handling for empty expectation (#66142) 2020-09-19 11:27:04 -07:00
Kate Lovett
9618e10a52 Add versioning to gold endpoints (#66054) 2020-09-18 14:47:09 -07:00
Kate Lovett
ee69eebfbd Update Gold for new endpoint (#64982) 2020-09-02 16:35:06 -07:00
Kate Lovett
cad4d1333e Fix Gold json for digest paramset (#64757) 2020-08-27 17:48:05 -07:00
Jonah Williams
41e553bbfc [flutter_tools] migrate flutter_goldens, flutter_goldens client to null-safety (#64201) 2020-08-24 15:31:05 -07:00
Ian Hickson
b045c14eb5 Make the Skia expectation parser more resilient and update to "master_str". (#62898) 2020-08-04 18:53:31 -07:00
Kate Lovett
ea67a65bde Re-land Luci Support for Gold (#52760) 2020-03-18 12:56:02 -07:00
Kate Lovett
48fc135003 Revert "Refactoring Gold to enable both Luci & Cirrus support (#49815)" (#52670)
This reverts commit 7edcc92b10.
2020-03-16 10:26:09 -07:00
Kate Lovett
7edcc92b10 Refactoring Gold to enable both Luci & Cirrus support (#49815) 2020-03-13 20:11:01 -07:00
Alexandre Ardhuin
f15c887c63 change quote to avoid escapes (#50368) 2020-02-11 20:58:27 +01:00
Kate Lovett
1c15cd863b Fix Gold flake from gsutil fallback (#50149) 2020-02-05 11:03:02 -08:00