-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[vector_graphics] Use hooks in addition to asset transformers #9935
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
base: main
Are you sure you want to change the base?
Conversation
bkonyi
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.
LGTM!
|
Any progress on the presubmit failures? |
|
Slow progress :) There are a lot of presubmits.. |
d8f56f4 to
162deb3
Compare
|
@chinmaygarde How to solve the remaining failures? The legacy N-1 will fail as this is a feature only present on Flutter main branch. For the other failures, I don't understand how to read what is failing. They are quite verbose. Help would be appreciated! |
|
This PR needs to re-target the |
flutter/packages doesn't have |
N-1 and N-2 tests only run if the package's pubspec.yaml claims to support that version of the SDK. If this PR makes a package not work with older versions of the SDK, then it's an error to land it without changing the SDK requirement, as that would break clients using older versions of Flutter. |
A bunch of them appear to be flake. At least these two appear to be real though:
For the second, I'm not sure what "the logs" that |
852637a to
4d0ddc9
Compare
Thanks! This is probably due to the fact that the data-assets feature is not on stable yet. How do I only run the tests against |
|
Also, I did upgrade the minimum SDK version, but the N-1 and N-2 tests are still running and failing. Or did I misunderstand something? |
Generally speaking, you don't. Is there a specific need for landing this PR prior to
These lines are breaking things. It looks like those are something from the original repo's configuration that I didn't notice and clean up when importing, and they should be removed. |
I would be interested in having people try out this feature easily. So a |
I'm aware of that, but we aren't really set up to allow for that.
We do not currently have a release branch system for the packages repo, so doing this would in practice prevent us from shipping any updates of any kind to current clients of
Is that really easier than having people use a git dependency pointing to a branch? The discoverability of |
|
From triage: What's the status of this PR? Was the decision to wait for the next stable release? |
|
From triage: Is this unblocked now that Flutter 3.38 is out? |
6c30333 to
3a91358
Compare
3ef27cb to
dc9d0a8
Compare
|
What to do about I added a line to the changelog already, but this doesn't seem to help. |
|
Also, is there a way to run these checks locally? Pushing to get the results is tedious. |
It's flagging the lack of versioning, no the lack of changelog ("No version change found, but the change to this package could not be verified to be exempt from version changes"). It looks like the change can be exempted since it only affects the example.
Sure, essentially all of the CI is just driving repo tooling commands. If you're looking for the specific command to run locally for some CI task, you can look at .ci/targets/* to find the corresponding task. |
|
version exemption: The |
c8a0e70 to
caef266
Compare
bfe8b44 to
ae618cc
Compare
|
Are some of the failures flakes? Also, I can't reproduce the failure of |
That one looks like some kind of Xcode-level flake, yes.
The specific command CI is running is the repo tooling's If it's helpful, the macOS version of the failure seems to have more inline error details: |
| - convert | ||
| - crypto | ||
| - dart_style | ||
| - data_assets |
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.
What's the rollout plan here? We generally do not publish production packages with labs dependencies.
Requires
flutter config --enable-dart-data-assets.This is an example of how replacing asset transformers with build/link hooks could look like. The basic idea is that package
vector_graphics_compilerexposes a helper method, herecompileSvg, which is then called in the package's build hook. Options can be set there as well.For now, asset transformers and build hooks can simply co-exist - in the future, when hooks are stable enough, we will want to deprecate asset transformers and move towards this mechanism.