Skip to content

[ci] Add more dev dependency checks, and fix errors - #6563

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
stuartmorgan-g:dev-dependency-fixes
Apr 18, 2024
Merged

[ci] Add more dev dependency checks, and fix errors#6563
auto-submit[bot] merged 1 commit into
flutter:mainfrom
stuartmorgan-g:dev-dependency-fixes

Conversation

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator
  • Adds build_runner, mockito, and pigeon to the list of dependencies that we expect to only be in dev_dependencies.
  • Fixes the error message for violations; I had missed in initial review that the errorr message was the same as the one for non-repo-local depndencies, making it misleading about what the problem was and how to fix it. (Also fixed the indentation, which had always been wrong.)
  • Fixes camera_avfoundation, which had a violation introduced in my recent PR to start the Pigeon conversion.

See flutter/flutter#117905

Pre-launch Checklist

- Adds `build_runner`, `mockito`, and `pigeon` to the list of
dependencies that we expect to only be in dev_dependencies.
- Fixes the error message for violations; I had missed in initial review
that the errorr message was the same as the one for non-repo-local
depndencies, making it misleading about what the problem was and how
to fix it. (Also fixed the indentation, which had always been wrong.)
- Fixes `camera_avfoundation`, which had a violation introduced in my
recent PR to start the Pigeon conversion.
See flutter/flutter#117905
'test',
];
for (final String dependency in packages) {
test('fails when $dependency is used in non dev dependency',

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

I switched the structure to a loop-constructed test set where each test only checks one package, because it's easier to ensure that everything is actually being covered (e.g., that we don't add a package to the list of dependencies, but forget to add it to the error message, so that it looks like it's being tested but actually isn't).

@stuartmorgan-gstuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 18, 2024
@auto-submit
auto-submitBot merged commit bb82cb7 into flutter:mainApr 18, 2024
@stuartmorgan-g
stuartmorgan-g deleted the dev-dependency-fixes branch April 19, 2024 02:06
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 19, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Apr 19, 2024
flutter/packages@0e3809d...88a3a56
2024-04-19 stuartmorgan@google.com [camera] Convert iOS Obj-C->Dart calls to Pigeon (flutter/packages#6568)
2024-04-19 highdro0479@gmail.com [flutter_markdown] Ensure customize nested bullet list style. (flutter/packages#6384)
2024-04-18 stuartmorgan@google.com [ci] Add more dev dependency checks, and fix errors (flutter/packages#6563)
2024-04-18 engine-flutter-autoroll@skia.org Roll Flutter from 3882afb to fb110b9 (56 revisions) (flutter/packages#6565)
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-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
flutter/packages@0e3809d...88a3a56
2024-04-19 stuartmorgan@google.com [camera] Convert iOS Obj-C->Dart calls to Pigeon (flutter/packages#6568)
2024-04-19 highdro0479@gmail.com [flutter_markdown] Ensure customize nested bullet list style. (flutter/packages#6384)
2024-04-18 stuartmorgan@google.com [ci] Add more dev dependency checks, and fix errors (flutter/packages#6563)
2024-04-18 engine-flutter-autoroll@skia.org Roll Flutter from 3882afb to fb110b9 (56 revisions) (flutter/packages#6565)
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-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
- Adds `build_runner`, `mockito`, and `pigeon` to the list of dependencies that we expect to only be in dev_dependencies.
- Fixes the error message for violations; I had missed in initial review that the errorr message was the same as the one for non-repo-local depndencies, making it misleading about what the problem was and how to fix it. (Also fixed the indentation, which had always been wrong.)
- Fixes `camera_avfoundation`, which had a violation introduced in my recent PR to start the Pigeon conversion.
See flutter/flutter#117905
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
- Adds `build_runner`, `mockito`, and `pigeon` to the list of dependencies that we expect to only be in dev_dependencies.
- Fixes the error message for violations; I had missed in initial review that the errorr message was the same as the one for non-repo-local depndencies, making it misleading about what the problem was and how to fix it. (Also fixed the indentation, which had always been wrong.)
- Fixes `camera_avfoundation`, which had a violation introduced in my recent PR to start the Pigeon conversion.
See flutter/flutter#117905
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
- Adds `build_runner`, `mockito`, and `pigeon` to the list of dependencies that we expect to only be in dev_dependencies.
- Fixes the error message for violations; I had missed in initial review that the errorr message was the same as the one for non-repo-local depndencies, making it misleading about what the problem was and how to fix it. (Also fixed the indentation, which had always been wrong.)
- Fixes `camera_avfoundation`, which had a violation introduced in my recent PR to start the Pigeon conversion.
See flutter/flutter#117905
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: cameraplatform-iosplatform-macos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@stuartmorgan-g@reidbaker@hellohuanlin