Skip to content
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

Dart SDK -> Engine roll blocked on web engine build failures #134428

Closed
zanderso opened this issue Sep 11, 2023 · 8 comments
Closed

Dart SDK -> Engine roll blocked on web engine build failures #134428

zanderso opened this issue Sep 11, 2023 · 8 comments
Labels
dependency: dart Dart team may need to help us P0 Critical issues such as a build break or regression team-web Owned by Web platform team

Comments

@zanderso
Copy link
Member

The roll was stopped for branch alignment for a few days. When restarted here flutter/engine#45581, the web engine failed to build:

https://ci.chromium.org/ui/p/flutter/builders/try/Linux Engine Drone/1331881/overview

@eyebrowsoffire bisected to the change being reverted here https://dart-review.googlesource.com/c/sdk/ /324902

There is a potential engine-side fix in flutter/engine#45591, but the presub failures look like they might be related to the change.

cc @srujzs @sigmundch

@zanderso zanderso added dependency: dart Dart team may need to help us P0 Critical issues such as a build break or regression team-web Owned by Web platform team labels Sep 11, 2023
@eyebrowsoffire
Copy link
Contributor

I tried to get the engine side fix working on Friday, but ran into some issues with some stuff we're doing in one of our unit tests. I'm not 100% sure what's going on, but I think there are some subtle differences between allowInterop and the toJS function conversion that don't interact well with some admittedly weird stuff we are doing in our unit tests. I'll try to get a more definitive answer today.

In the meantime I suggest we land the revert on the Dart SDK side ASAP to unblock the roller, and reland it after I am confident we have an engine-side fix that works properly.

@sigmundch
Copy link
Contributor

revert reland sgtm, just in case you needed an extra 1 I approved the revert CL.

@zanderso
Copy link
Member Author

zanderso commented Sep 12, 2023

Following the revert, the Dart -> Engine roll is still failing flutter/engine#45683. I see many tests failing with:

Failed to load "clip_op_golden_test.dart": Failed to fetch and instantiate wasm module: CompileError: WebAssembly.compileStreaming(): Compiling function #7973:"Highlighter. constructor body" failed: call[0] expected type (ref 580), found local.get of type (ref 51) @ 1136077

@eyebrowsoffire
Copy link
Contributor

As an update, I have a PR out on the engine side to prepare things for the reland of the dart changes that make JS interop declarations more strict about what types can be used: flutter/engine#45668

The other failure Zach posted about above seems like a separate issue. I will try to figure out the breaking dart change in a bit.

@eyebrowsoffire
Copy link
Contributor

I have a revert that should resolve the remaining issues blocking the dart -> engine roll: https://dart-review.googlesource.com/c/sdk/ /325445

Also, flutter/engine#45668 just landed, and I think we can at least attempt a roll to dart 3.2.0-140.0, which is before the other breaking change.

@a-siva
Copy link
Contributor

a-siva commented Sep 18, 2023

Can this be closed? Looks like the dart rollers are running now.

@zanderso
Copy link
Member Author

Yes.

@github-actions
Copy link

github-actions bot commented Oct 2, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency: dart Dart team may need to help us P0 Critical issues such as a build break or regression team-web Owned by Web platform team
Projects
None yet
Development

No branches or pull requests

4 participants