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

[flutter_tools] package:material_color_utilities pinned at 0.1.4 because of breaking changes #103357

Closed
christopherfujino opened this issue May 9, 2022 · 9 comments · Fixed by #104771
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list

Comments

@christopherfujino
Copy link
Member

There were test failures on the pub roll in #103220.

00:36 +634 -1: /b/s/w/ir/x/w/flutter/packages/flutter/test/material/theme_data_test.dart: ThemeData can generate a dark colorScheme from colorSchemeSeed [E]                                           
  Expected: Color:<Color(0xff9ccaff)>
    Actual: Color:<Color(0xff9ecaff)>
  
  package:test_api                                    expect
  package:flutter_test/src/widget_tester.dart 455:16  expect
  test/material/theme_data_test.dart 249:5            main.<fn>

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8814886108995385025/+/u/run_test.dart_for_framework_tests_shard_and_subshard_libraries/test_stdout

@christopherfujino
Copy link
Member Author

Pinned this in 0.1.4 to unblock pub roll in #103220

cc @guidezpl & @pennzht

If we don't control when this will break upstream, we can always leave this package pinned in https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/update_packages.dart#L29 and merely periodically update the pin

@christopherfujino christopherfujino added the tool Affects the "flutter" command-line tool. See also t: labels. label May 9, 2022
@christopherfujino
Copy link
Member Author

@christopherfujino christopherfujino added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. P2 Important issues not at the top of the work list and removed tool Affects the "flutter" command-line tool. See also t: labels. labels May 10, 2022
@christopherfujino
Copy link
Member Author

Also cc @HansMuller, do you know if this will affect goldens for the internal roll?

@HansMuller
Copy link
Contributor

@darrenaustin should be able to answer

@darrenaustin
Copy link
Contributor

As I mentioned in chat, keeping it at 0.1.4 shouldn't break any goldens, as they were originally taken with that dependency (and are probably not effected one way or the other because they are not using the color scheme generation feature).

I would prefer to have this a pinned dependency that we manually manage so that we can handle any breaking change from it.

@pennzht
Copy link
Member

pennzht commented May 17, 2022

@christopherfujino

Hi Christopher,

This is expected and normal.

A recent change to material_color_utilities (material-foundation/material-color-utilities@b903393) updated the solver to the HCT equation, causing many tests to break, as the old and new solvers generate slightly different (often negligible) colors.

My suggestion is to use the newest material_color_utilities and update the tests accordingly.

@darrenaustin
Copy link
Contributor

We will leave this dependency pinned so as not to have breakage with automatic updates. When we need to update this dependency we will do so manually as we did with #104771.

@christopherfujino
Copy link
Member Author

We will leave this dependency pinned so as not to have breakage with automatic updates. When we need to update this dependency we will do so manually as we did with #104771.

SGTM, thanks!

@github-actions
Copy link

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 Jun 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants