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

[web] Fail if Skia Gold is required but unavailable #29792

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Nov 17, 2021

As a follow up to #29139, this PR fails tests if Skia Gold was expected to run but wasn't available.

This PR just adds the --require-skia-gold flag to felt. There's also a change in recipes to start passing this flag:

@mdebbar mdebbar added the platform-web Code specifically for the web engine label Nov 17, 2021
@mdebbar mdebbar requested a review from yjbanov November 17, 2021 19:50
@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.

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.

@skia-gold
Copy link

Gold has detected about 58 new digest(s) on patchset 1.
View them at https://flutter-engine-gold.skia.org/cl/github/29792

@@ -29,13 +29,23 @@ class RunCommand extends Command<bool> with ArgUtils<bool> {
defaultsTo: false,
help: 'Lists all available build steps.',
);
argParser.addFlag(
'require-skia-gold',
defaultsTo: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would default this to true. If that's not possible in this PR, then in a follow-up PR. The reason is that it's too easy to forget to set this flag, and I don't just mean when running felt manually, but in recipes and tools where we find logic that leads to false positives more often than we should. Here are some examples of past P0s and P1s that were caused because our code forgot to opt into failing 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.

But we don't want to make it true for local testing, right? Do you suggest we only enforce it in CI?

@mdebbar mdebbar added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 23, 2021
@fluttergithubbot fluttergithubbot merged commit 0477e05 into flutter:main Nov 23, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 23, 2021
@mdebbar mdebbar deleted the require_skia_gold branch January 17, 2023 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes needs tests platform-web Code specifically for the web engine waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants