-
Notifications
You must be signed in to change notification settings - Fork 6k
Expand understanding of build targets in et #51868
Conversation
johnmccutchan
commented
Apr 3, 2024
- s/TestTarget/BuildTarget.
- Use a more informative way of querying for build targets from gn
- Port existing code to use new interfaces
- Replace 'query tests' with 'query targets' and a --testonly flag
- Extend 'et build' with support for build target selectors.
- Extend 'et query targets' with support for build target selectors.
cbracken
left a 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.
- s/TestTarget/BuildTarget. - Use a more informative way of querying for build targets. - Port existing code to use new interfaces - Replace 'query tests' with 'query targets' and a --testonly flag - Extend 'et build' with support for build target selectors. - Extend 'et query targets' with support for build target selectors.
flutter/engine@918c72b...fa4d97e 2024-04-04 john@johnmccutchan.com Expand understanding of build targets in et (flutter/engine#51868) 2024-04-04 skia-flutter-autoroll@skia.org Roll Skia from 8caa3e2592d5 to d58a6dbaaadb (1 revision) (flutter/engine#51909) 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
|
I believe it will be useful to have a way to retain the behavior of building the targets specified in the build config json files. Is there some way to work that behavior back into the |
| // TODO(johnmccutchan): Reconsider this default or at least lift | ||
| // this logic up to the caller. | ||
| allTargets.values.forEach(selected.add); | ||
| return selected; |
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 you return empty set here, and don't make this an error at the call site of selectTargets, then the extraNinjaTargets parameter of the BuildRunner constructor will be empty, and the targets specified by the build config json will be used.
| ]; | ||
|
|
||
| return runBuild(environment, build, extraGnArgs: extraGnArgs); | ||
| final Map<String, BuildTarget> allTargets = await findTargets(environment, |
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.
This directory might not exist if GN hasn't had a chance to run yet. That is, if you have a fresh engine checkout and out/ is empty, then selectTargets will fail.
…ts (#51956) Addresses the notes I left on #51868. Mainly fixes an issue in which the `build`, `query`, and `test` commands would fail if GN had not yet been run for the requested configuration. Instead, in this PR, if the build output directory doesn't exist yet, then it will run GN before querying the targets. Additionally, for the `build` command, if no targets are specified on the command line, the PR uses the targets in the build config as the default rather than all targets. `query` and `test` keep the same behavior.
…6299) flutter/engine@918c72b...fa4d97e 2024-04-04 john@johnmccutchan.com Expand understanding of build targets in et (flutter/engine#51868) 2024-04-04 skia-flutter-autoroll@skia.org Roll Skia from 8caa3e2592d5 to d58a6dbaaadb (1 revision) (flutter/engine#51909) 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
