rules_dart icon indicating copy to clipboard operation
rules_dart copied to clipboard

Create a Dart SDK auto-roller

Open cbracken opened this issue 5 years ago • 1 comments

Create an auto-roller that periodically checks for a new Dart SDK version, sends a PR to upgrade the linux and macos versions, and lands it if all tests pass.

cbracken avatar Nov 10 '19 00:11 cbracken

Added tools/roll_dart in 486b9c069d494eb19016c4079c37a1a9d5ff16b1 and 84627e370843b26a44a391858d0fcaba27502c47. This automates the process of generating the diff required to roll the Dart SDK version in repositories.bzl and README.md.

Remaining work:

  • [ ] Clean up roll_dart. It was hacked together in an afternoon to reduce the manual work involved in rolling but isn't excactly nice code.
  • [ ] The roll command should run tests via tools/run_tests.sh and if successsful, generate a new branch and commit with a version comment.
  • [ ] Add a tag command or some other mechanism that generates a signed SDK version tag and pushes.

It would be nice to have this on a cron job that:

  • looks up the latest Dart SDK handled in this repo
  • looks up the latest Dart SDK on stable track
  • if there is a new Dart SDK on stable track, checks if there is any pending PR for that version and if not, creates one.

cbracken avatar Nov 19 '20 02:11 cbracken