-
Notifications
You must be signed in to change notification settings - Fork 6k
Implement .engine-release.version
files for engine Skia Gold tests
#51739
Implement .engine-release.version
files for engine Skia Gold tests
#51739
Conversation
@@ -0,0 +1,126 @@ | |||
import 'dart:convert'; |
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.
nit: New files here and below need the engine copyright header.
Thanks! Friendly ping @mdebbar @gaaclarke. I promise 90% of the diff is comments/docs/tests. |
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. Sorry, I passed over this when I saw it was already approved. That's for pinging me again.
testing/skia_gold_client/README.md
Outdated
- name: Linux linux_android_emulator_tests | ||
properties: | ||
config_name: linux_android_emulator | ||
+ dependencies: >- | ||
+ [ | ||
+ {"dependency": "goldctl", "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd"} | ||
+ ] |
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.
Does this render correctly? I would have expected the pluses and minuses at the beginning of the line
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.
Hmm good point, let me try again
/// Throws a [FormatException] if the file contents are not in the expected | ||
/// format (either empty/comments only, or missing a `major.minor` line in | ||
/// the format described in [ReleaseVersion.new]). | ||
static ReleaseVersion? parse(String fileContents) { |
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.
nit: I think this could be 1/3 the size if you use regular expressions.
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.
Hmm. I hope this is fine, I am not opposed to a regular expression but also hate multi-line regular expressions personally.
Thanks! @godofredoc friendly ping as well - I'm not sure you want to review this or not, but I figured I'd give you a chance before merging. |
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!
…146001) flutter/engine@7176173...8480145 2024-03-29 [email protected] Add a minimal example of using `package:test`. (flutter/engine#51726) 2024-03-29 [email protected] Implement `.engine-release.version` files for engine Skia Gold tests (flutter/engine#51739) 2024-03-29 [email protected] [web] Use viewId for text editing (flutter/engine#51099) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Work towards flutter/flutter#144835.
Doc (sorry, internal only): go/flutter-engine-goldens-workflow.
This implements the majority of the proposed workflow, that is, optionally having a plain-text version at the root of the directory, and using it to apply a unique suffix we can review in release branches. As it stands, this is a NO-OP outside of tests (it will have no impact, and can be ignored).
What's missing before using this feature in release branches:
Separate tests from builds that generate artifacts flutter#145842
@gaaclarke As implemented, I think we don't need anything special for
dir_contents_diff
, but maybe I'm wrong - I think only the test names are being changed, not the names on disk./cc @zanderso as well.