jetty.project icon indicating copy to clipboard operation
jetty.project copied to clipboard

Monitor other projects (like cloudflare/quiche) for releases and file issues to upgrade our codebase accordingly

Open joakime opened this issue 1 year ago • 6 comments

Jetty version(s) 12 / 11 / 10

Enhancement Description

Create a daily (cron) github action to monitor https://github.com/cloudflare/quiche for new releases, and file an issue when a new release is detected.

joakime avatar Jan 29 '24 16:01 joakime

The way I see this happening ...

  1. A new github action, with a cron schedule (daily or less frequent, maybe weekly?)
  2. It checks https://api.github.com/repos/cloudflare/quiche/releases/latest for a new release.
  3. When it detects a changed version it files a new Issue in this repo.

The check for new version could be done something like this ...

RELEASE_VER=$(curl -s https://api.github.com/repos/cloudflare/quiche/releases/latest | jq -r '.tag_name')
ACTIVE_VER=$(echo jetty-quiche/quiche.version)
if [ $RELEASE_VER != $ACTIVE_VER ] ; then
    # create issue announcing $RELEASE_VER
fi

joakime avatar Jan 29 '24 16:01 joakime

One important thing to figure out is to have our "create issue" step not constantly create a new issue (each crontab) if one exists for that specific version.

joakime avatar Jan 29 '24 17:01 joakime

Looks like we could even use the gh command (in the action) to do much of this.

https://docs.github.com/en/actions/managing-issues-and-pull-requests/scheduling-issue-creation

joakime avatar Jan 29 '24 17:01 joakime

maybe this should create an issue in this project https://github.com/jetty-project/jetty-quiche-native and not in Jetty itself get last release is easy as gh release list --repo cloudflare/quiche -L 1 but yeah it looks like reinventing dependabot :)

olamy avatar Jan 29 '24 21:01 olamy

Not reinventing dependabot, it wont make a branch / pr for sure. (as that is super complicated) And a https://github.com/cloudflare/quiche release is only source (it does not have binaries). Those binaries we have to build on 3 platforms / architectures.

joakime avatar Jan 29 '24 21:01 joakime

see https://github.com/jetty-project/jetty-quiche-native/pull/80

olamy avatar Jan 30 '24 06:01 olamy

Fixed in https://github.com/jetty-project/jetty-quiche-native/pull/81

joakime avatar Feb 21 '24 22:02 joakime