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

Conversation

@johnmccutchan
Copy link
Contributor

  • 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
cbracken approved these changes Apr 3, 2024
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM in principle, but presubmit is failing.

Animated GIF of a delivery truck approaching a highway overpass, then failing to meet the height clearance requirement and crashing into it

- 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.
@johnmccutchan johnmccutchan merged commit fa4d97e into flutter:main Apr 4, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 4, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 4, 2024
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
@zanderso
Copy link
Member

zanderso commented Apr 5, 2024

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 build command?

// TODO(johnmccutchan): Reconsider this default or at least lift
// this logic up to the caller.
allTargets.values.forEach(selected.add);
return selected;
Copy link
Member

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,
Copy link
Member

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.

zanderso added a commit that referenced this pull request Apr 8, 2024
…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.
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
…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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants