-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[et] Prepare local_engine.json for CI, teach et to understand local build names #51803
Conversation
/// If a name starts with '$OS/', it is a local development build, and the | ||
/// mangled name has the '$OS/' part stripped off. | ||
/// | ||
/// If the name does not start with '$OS/', then it starts with 'ci/' and is |
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.
Do we want to throw if it doesn't?
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.
+1
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.
Done.
/// Transform the name of a build into the name presented and accepted by the | ||
/// CLI | ||
/// | ||
/// If a name starts with '$OS/', it is a local development build, and the |
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.
Can we expand this with 1 more sentence of examples of $OS
(maybe mention it's [Platorm.operatingSystem]
).
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.
Done.
/// name from `environment`. | ||
String demangleConfigName(Environment environment, String name) { | ||
const String cif = 'ci/'; | ||
const String cib = r'ci\'; |
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.
Is this for Windows or something else, I don't understand this one :P
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.
Yes, I would rename cif and cib to something that indicates Win/Unix path endings.
Also you could factor these constants out and use them above on line 82.
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.
If so I think we could use package:path/path.dart#fragment
(or just rely on the methods in path
that implicitly use the right fragment).
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.
Cleaned this up using these suggestions. Thanks!
715e89b
to
6f66f45
Compare
/// `platform.operatingSystem` in the passed-in `environment`. | ||
/// | ||
/// If the name does not start with '$OS/', then it must start with 'ci/' or | ||
/// 'ci\' in which case the name is returned unchanged. |
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.
some example inputs/outputs would help this comment
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.
Done.
/// name from `environment`. | ||
String demangleConfigName(Environment environment, String name) { | ||
const String cif = 'ci/'; | ||
const String cib = r'ci\'; |
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.
Yes, I would rename cif and cib to something that indicates Win/Unix path endings.
Also you could factor these constants out and use them above on line 82.
979dabf
to
e96f5e4
Compare
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
e96f5e4
to
1b3cd84
Compare
Golden file changes are available for triage from new commit, Click here to view. |
1b3cd84
to
0559567
Compare
…nd local build names (flutter/engine#51803)
…146177) flutter/engine@ef60a95...e603f89 2024-04-03 goderbauer@google.com Remove outdated `deprecated_member_use` ignores (flutter/engine#51836) 2024-04-03 matanlurey@users.noreply.github.com Use internal retries for SurfaceTexture and Impeller tests too. (flutter/engine#51856) 2024-04-03 zanderso@users.noreply.github.com [et] Prepare local_engine.json for CI, teach et to understand local build names (flutter/engine#51803) 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 matanl@google.com,rmistry@google.com,zra@google.com 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
et run was broken in flutter#51803 this PR adds the missing calls to mangledConfigName before invoking flutter run
et run was broken in #51803 this PR adds the missing calls to mangledConfigName before invoking flutter run
This is steps (2) and (3) of flutter/flutter#145263.
The next steps after this are to:
local_engine.json
in CI.et
for local RBE workflows flutter#145263local_engine.json
.