Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@blasten
Copy link

@blasten blasten commented Apr 28, 2022

Adds dependabot for Gradle dependencies.

Unfortunately, dependabot doesn't support globs patterns in directory.

cc @stuartmorgan

@blasten blasten requested review from GaryQian and camsim99 April 28, 2022 23:42
- package-ecosystem: "gradle"
directory: "/packages/flutter_plugin_android_lifecycle/example/android/app"
schedule:
interval: "weekly"
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, I'd suggest making the interval daily, just to spread out the dependabot PRs

Copy link
Author

Choose a reason for hiding this comment

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

sgtm. PTAL

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Nice!

Should we put a commit-message entry to do the [plugin_name] prefix?

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/packages/flutter_plugin_android_lifecycle/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

Will checking the examples transitively check and update the plugin dependencies themselves?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think so. It's not very smart from what I can tell

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/webview_flutter/webview_flutter/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should order this file alphabetically by directory so we can easily see what's there.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/webview_flutter/webview_flutter/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

Speaking of which, the _android package is missing here.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/connectivity/connectivity/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

This plugin doesn't exist any more.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/video_player/video_player_android/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

The app-facing package is missing.

With only a couple of exceptions, there should be two examples for every plugin.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/espresso/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a duplicate entry.

Copy link
Author

Choose a reason for hiding this comment

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

done

@blasten blasten requested a review from stuartmorgan-g April 30, 2022 02:03
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM with more added. I'm not sure I caught everything though.

Given that this is fiddly to get right, and will silently get out of sync with changes (e.g., federating the last couple of plugins), I think I should make tooling that verifies dependabot coverage. It'll be useful when we enable Dart dependabot too.

I'll file an issue for that. (Doesn't need to block yours though).

schedule:
interval: "daily"
open-pull-requests-limit: 10

Copy link
Contributor

Choose a reason for hiding this comment

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

The app-facing package's example is missing.

Copy link
Author

Choose a reason for hiding this comment

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

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/path_provider/path_provider_android/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

The plugin is missing.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/image_picker/image_picker/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is missing both parts of the implementation package.

Copy link
Author

Choose a reason for hiding this comment

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

done

open-pull-requests-limit: 10

- package-ecosystem: "gradle"
directory: "/packages/espresso/example/android/app"
Copy link
Contributor

Choose a reason for hiding this comment

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

The plugin is missing.

Copy link
Author

Choose a reason for hiding this comment

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

done

@blasten blasten added the waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land. label May 2, 2022
@fluttergithubbot fluttergithubbot merged commit cd89420 into flutter:main May 3, 2022
@ditman
Copy link
Member

ditman commented May 3, 2022

This has failed in master with the following:

Your .github/dependabot.yml contained invalid details

Dependabot encountered the following error when parsing your .github/dependabot.yml:

The property '#/updates/4/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/5/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/6/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/7/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/8/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/9/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/10/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/11/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/12/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/13/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/15/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/16/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/17/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/18/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/21/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/22/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/23/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/24/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/26/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/27/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/28/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/29/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/31/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/32/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/33/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/34/commit-message/prefix' was not of a maximum string length of 15
The property '#/updates/35/commit-message/prefix' was not of a maximum string length of 15

Please update the config file to conform with Dependabot's specification.

For more info on the config file format, see the config file documentation

@ditman
Copy link
Member

ditman commented May 3, 2022

Cool way of regexing the baddies:

prefix: "\[[^\]]{14,}\]"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants