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

Conversation

mk12
Copy link
Contributor

@mk12 mk12 commented Jun 8, 2023

This makes the GN build pass the target Fuchsia API level to fidlc. Currently it relies on the default of HEAD, meaning all FIDL changes are immediately visible when the SDK rolls. This was never the intention: flutter should be targeting a specific API level.

This unblocks https://fxrev.dev/864297 which makes the fidlc --available flag required, and which uncovered this problem.

I also copied the changes to gen_response_file.py from https://fxrev.dev/865020 to make it forward --available to fidlc.

@zanderso
Copy link
Member

zanderso commented Jun 8, 2023

From Engine PR review triage: This PR will need to have a Fuchsia expert added as a reviewer.

@zanderso zanderso requested review from arbreng and tarobins June 8, 2023 21:02

assert(defined(invoker.sources), "A FIDL library requires some sources.")

assert(fuchsia_target_api_level != -1,
Copy link

Choose a reason for hiding this comment

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

are there existing usages of this template? is fuchsia_target_api_level set for all on them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it's used to make FIDL bindings for Fuchsia SDK libraries (see tools/fuchsia/sdk/sdk_targets.gni). I copied the != -1 assertion from tools/fuchsia/fuchsia_archive.gni. fuchsia_target_api_level is a global GN arg set here https://github.com/flutter/engine/blob/main/tools/gn#L570. The build should fail if there's a case where it's not set.

@arbreng
Copy link
Contributor

arbreng commented Jun 8, 2023

Generally LGTM, but before merging I pinged mitchell offline with some questions I have

This bumps the target Fuchsia API level from 11 to 12.

It also makes the GN build pass the API level to fidlc. Previously it
relied on the fidlc default of HEAD, meaning all FIDL changes were
immediately visible when the SDK rolls. This was never the intention:
flutter should be targeting a specific API level.

This unblocks https://fxrev.dev/864297 which makes the fidlc --available
flag required, and which uncovered this problem.

I also copied the changes to gen_response_file.py from
https://fxrev.dev/865020 to make it forward --available to fidlc.
@mk12 mk12 changed the title [fidl] Pass target API level to fidlc [fuchsia] Bump the target API level to 12, and pass it to fidlc Jun 8, 2023
@mk12
Copy link
Contributor Author

mk12 commented Jun 8, 2023

Amended to also bump the API level to 12 as discussed with @arbreng

@tarobins
Copy link

tarobins commented Jun 8, 2023

LGTM

@tarobins tarobins self-requested a review June 8, 2023 23:04
@mk12
Copy link
Contributor Author

mk12 commented Jun 8, 2023

@tarobins It says you "self-requested a review" - did you forget to approve, or are you waiting for @arbreng?

@tarobins
Copy link

tarobins commented Jun 9, 2023

No, I just don't know what I'm doing.

@mk12
Copy link
Contributor Author

mk12 commented Jun 9, 2023

👍 Thanks. Looks like I still can't merge even with approval, could you do that as well?

@arbreng arbreng merged commit de7bf73 into flutter:main Jun 9, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 9, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jun 9, 2023
…sions) (#128554)

Manual roll Flutter Engine from a5f7d5d75ff2 to 8f9e608d39ab (31 revisions)

Manual roll requested by [email protected]

flutter/engine@a5f7d5d...8f9e608

2023-06-09 [email protected] Revert Dart to 3.1.0-180.0.dev (flutter/engine#42688)
2023-06-09 [email protected] [fuchsia] Bump the target API level to 12, and pass it to fidlc (flutter/engine#42667)
2023-06-09 [email protected] [Impeller] Add tests for foreground blends with mask blurs (flutter/engine#42687)
2023-06-09 [email protected] Document the use of realm in archives. (flutter/engine#42682)
2023-06-09 [email protected] Roll ANGLE from 76b0e7f38b44 to d8339e78db54 (1 revision) (flutter/engine#42684)
2023-06-08 [email protected] Prevent double upload of benchmarks. (flutter/engine#42683)
2023-06-08 [email protected] Roll ANGLE from 5215293366f0 to 76b0e7f38b44 (2 revisions) (flutter/engine#42680)
2023-06-08 [email protected] Remove all the uses of master branch in the .ci.yaml file. (flutter/engine#42679)
2023-06-08 [email protected] Replace benchmarks with its v2 version. (flutter/engine#42677)
2023-06-08 [email protected] [Impeller] Reorder blend filter checks to avoid unnecessary destination snapshot (flutter/engine#42678)
2023-06-08 [email protected] [Impeller] Specify blend mode on blend filter commands (flutter/engine#42676)
2023-06-08 [email protected] Roll ANGLE from c49674d1565c to 5215293366f0 (1 revision) (flutter/engine#42673)
2023-06-08 [email protected] [Linux] composing delta fixes (flutter/engine#42648)
2023-06-08 [email protected] Fix: invalid time-point comparison between each from different clock source (flutter/engine#42409)
2023-06-08 [email protected] Fix license hash (flutter/engine#42675)
2023-06-08 [email protected] Revert Dart to 3.1.0-184.0.dev (flutter/engine#42671)
2023-06-08 [email protected] Roll ANGLE from b5d261ac5c5b to c49674d1565c (2 revisions) (flutter/engine#42670)
2023-06-08 [email protected] Roll Dart SDK from b7fe6e0c274c to 3a9145a57432 (1 revision) (flutter/engine#42668)
2023-06-08 [email protected] [Impeller] sort all vertex inputs by location. (flutter/engine#42664)
2023-06-08 [email protected] Roll ANGLE from 05e087658b10 to b5d261ac5c5b (1 revision) (flutter/engine#42662)
2023-06-08 [email protected] Revert "[Impeller] Added a switch to turn on vulkan" (flutter/engine#42660)
2023-06-08 [email protected] Roll ANGLE from 15a29438b099 to 05e087658b10 (6 revisions) (flutter/engine#42659)
2023-06-08 [email protected] Roll Fuchsia Linux SDK from aMTaMP0DdKdJnxSbc... to lPCv1NshK-tvjtLgC... (flutter/engine#42658)
2023-06-08 [email protected] Roll Fuchsia Mac SDK from DL1QQ5eZRVNARqLx-... to ukXXOXtI7uRIukzF5... (flutter/engine#42655)
2023-06-08 [email protected] Roll Dart SDK from f0ae96d202ca to b7fe6e0c274c (1 revision) (flutter/engine#42657)
2023-06-08 [email protected] Roll Dart SDK from 9e633e463902 to f0ae96d202ca (1 revision) (flutter/engine#42651)
2023-06-08 [email protected] Benchmarks configurations for engine v2. (flutter/engine#42622)
2023-06-08 [email protected] Roll Skia from 1a3adf848e61 to 8fdbbca7d35d (1 revision) (flutter/engine#42645)
2023-06-08 [email protected] Roll Dart SDK from bbce07ad3944 to 9e633e463902 (3 revisions) (flutter/engine#42646)
2023-06-07 [email protected] Roll dart to 3.1.0-180.0.dev (flutter/engine#42638)
2023-06-07 [email protected] Roll Skia from 156542f8bf13 to 1a3adf848e61 (1 revision) (flutter/engine#42644)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from aMTaMP0DdKdJ to lPCv1NshK-tv
  fuchsia/sdk/core/mac-amd64 from DL1QQ5eZRVNA to ukXXOXtI7uRI

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

...
@mk12 mk12 deleted the available branch June 9, 2023 16:05
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