Skip to content

Bump test package dependencies#68771

Closed
jiahaog wants to merge 2 commits intoflutter:masterfrom
jiahaog:bump-test-dep-http
Closed

Bump test package dependencies#68771
jiahaog wants to merge 2 commits intoflutter:masterfrom
jiahaog:bump-test-dep-http

Conversation

@jiahaog
Copy link
Member

@jiahaog jiahaog commented Oct 22, 2020

Description

Update to the following:

  • test: 1.16.0-nullsafety.6
  • test_api: 0.2.19-nullsafety.3
  • test_core: 0.3.12-nullsafety.6

Motivation: We want to use a the new APIs provided in the new version of package:test_core in package:integration_test, but there is a dependency conflict. This is because package:integration_test depends on package:flutter_test and package:flutter_driver, both of which also transitively depends on a conflicting pinned version of `package:test_core.

I'm not too familiar with the process for doing this, let me know if this isn't correct. These are the steps I took:

  1. Update the pinned versions in packages/flutter_tools/lib/src/commands/update_packages.dart
  2. Update the pinned versions in packages/flutter_tools/pubspec.yaml
  3. Move http in dev/devicelab/pubspec.yaml from dev_dependencies to dependencies. This is needed because it's actually used as a normal dependency. The new package:test 1.16.0-nullsafety.6 removes the dependency on package:http. If I run the update-packages command without doing so, http will be removed from dev_dependencies, breaking the build.
  4. Run flutter update-packages --force-upgrade.

- test: 1.16.0-nullsafety.6
- test_api: 0.2.19-nullsafety.3
- test_core: 0.3.12-nullsafety.6
@flutter-dashboard flutter-dashboard bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Oct 22, 2020
@google-cla google-cla bot added the cla: yes label Oct 22, 2020
@jiahaog jiahaog marked this pull request as ready for review October 22, 2020 13:34
@jiahaog jiahaog requested a review from Piinks as a code owner October 22, 2020 13:34
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@jiahaog jiahaog requested a review from natebosch October 22, 2020 13:38
dependencies:
args: 1.6.0
file: 6.0.0-nullsafety.2
http: 0.12.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Had this been missing before?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I had to move this manually from dev_dependencies below to here before running flutter update-packages --force-upgrade. I believe the removal of package:http from package:test 1.16.0-nullsafety.6 causes the command to remove it from dev_dependencies below, and it actually should be a dependency.

@jonahwilliams
Copy link
Contributor

Unfortunately it looks like someone else updated packages before you? You'll need to rebase first.

@jiahaog
Copy link
Member Author

jiahaog commented Oct 30, 2020

No worries, the conflicting PR that was merged already updates the dependencies needed here.

@jiahaog jiahaog closed this Oct 30, 2020
@jiahaog jiahaog deleted the bump-test-dep-http branch October 30, 2020 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants