Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Jun 15, 2023

Fixes #101525

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 15, 2023
@Hixie Hixie force-pushed the force_upgrade_version branch 3 times, most recently from 2a0fcad to 41660ad Compare June 15, 2023 01:38
@Hixie
Copy link
Contributor Author

Hixie commented Jun 15, 2023

I've no idea how to reliably test this. I'll add some tests for some of the periphery, but the core is fundamentally so dependent on the environment that making a real test seems like it'd be super flaky.

@Hixie Hixie force-pushed the force_upgrade_version branch from 41660ad to 122c2d3 Compare June 15, 2023 01:40
Copy link
Contributor

Choose a reason for hiding this comment

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

would we need this? I would prefer we only support cherrypicking if you know the exact version. Consider package:foo with the following versions available:

v1.0 - the current version in the latest Flutter stable
v2.0 - the latest version available in pub with breaking changes
v1.0+1 - a special hotfix release to fix a bug in the Flutter stable

If a user simply did flutter update-packages --cherry-pick-package=foo they may upgrade it to 2.0, rather than 1.0+1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sgtm, will update

@christopherfujino
Copy link
Contributor

Two analysis failures:

   info • Local variables should be final • packages/flutter_tools/lib/src/commands/update_packages.dart:313:11 • prefer_final_locals
   info • Unnecessary use of double quotes • packages/flutter_tools/lib/src/commands/update_packages.dart:317:64 • prefer_single_quotes

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

Suggestion that we require --cherry-pick-version if --cherry-pick-package is provided, otherwise LGTM

@Hixie Hixie force-pushed the force_upgrade_version branch from 122c2d3 to 86de49f Compare June 15, 2023 04:58
@Hixie
Copy link
Contributor Author

Hixie commented Jun 15, 2023

I found a way to test this better than I expected. Still not a really full test, though.

@Hixie Hixie marked this pull request as ready for review June 15, 2023 05:00
@Hixie Hixie force-pushed the force_upgrade_version branch from 86de49f to a0271d5 Compare June 15, 2023 06:54
@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 15, 2023
@auto-submit auto-submit bot merged commit 8c5a70f into flutter:master Jun 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 16, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jun 16, 2023
flutter/flutter@b0188cd...fc8856e

2023-06-16 [email protected] [web] Don't crash on `const HtmlElementView()` (flutter/flutter#128965)
2023-06-16 [email protected] Roll Packages from 0507297 to f9314a3 (3 revisions) (flutter/flutter#128878)
2023-06-16 [email protected] Update getProperties to handle Diagnosticable as input. (flutter/flutter#128897)
2023-06-15 [email protected] Roll Flutter Engine from 48e0b4e66422 to fb5fed432e59 (1 revision) (flutter/flutter#128967)
2023-06-15 [email protected] Fix dart pub cache clean command on pub.dart (flutter/flutter#128171)
2023-06-15 [email protected] [flutter_tools] Migrate more integration tests to process result matcher (flutter/flutter#128737)
2023-06-15 [email protected] [flutter_tools] refactor license collector (flutter/flutter#128748)
2023-06-15 [email protected] Set Semantics.button to true for date widget (flutter/flutter#128824)
2023-06-15 [email protected] Update golden tests (flutter/flutter#128914)
2023-06-15 [email protected] Roll Flutter Engine from 9934c0de738c to 48e0b4e66422 (26 revisions) (flutter/flutter#128959)
2023-06-15 [email protected] flutter update-packages --cherry-pick-package (flutter/flutter#128917)
2023-06-15 [email protected] add .pub-cache back to .gitignore (flutter/flutter#128894)
2023-06-15 [email protected] Roll Flutter Engine from 2d8d5ecfe4a8 to 9934c0de738c (2 revisions) (flutter/flutter#128849)
2023-06-15 [email protected] flutter update-packages --force-upgrade (flutter/flutter#128908)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
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 Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flutter_tools] Tool has no automated method of upgrading a controlled set of packages

2 participants