pub icon indicating copy to clipboard operation
pub copied to clipboard

Validator for publishing rate

Open jonasfj opened this issue 1 year ago • 3 comments

Proposal:

If you've published more than 5 versions over the past 30 days, then publishing validations throw an error.

This can be ignored with --skio-validation.

We can fetch versions from the API, which has a published date-time.

It's a simple way to limit publishing without making a hard limit. Also we can put in a message pointing to dart.dev/go/publishing-frequency. Then we can document guidelines for publishing rate, and document out limits.

jonasfj avatar Sep 18 '24 18:09 jonasfj

Let's start by writing dart.dev/go/publishing-frequency. It will add value on its own

sigurdm avatar Sep 24 '24 13:09 sigurdm

We should probably make this a warning only...

sigurdm avatar Sep 24 '24 13:09 sigurdm

We should probably make this a warning only...

I'd be down for having two rate-limits:

  • Error at:
    • 20 publications past week (20 versions/week)
    • 32 publications past month (~ 8 versions/week)
    • 50 publications past 3 months (~ 4 versions/week)
    • 100 publications past year (~ 2 versions/week)
  • Warning at:
    • 15 publications past week (18 versions/week)
    • 24 publications past month (~ 6 versions/week)
    • 60 publications past 3 months (~ 5 versions/week)
    • 75 publications past year (~ 1.5 versions/week)

Credits to istvans proposed rates in https://github.com/dart-lang/pub-dev/pull/8063

jonasfj avatar Oct 09 '24 10:10 jonasfj