infra icon indicating copy to clipboard operation
infra copied to clipboard

"This is now live" automatic notifications

Open AbrilRBS opened this issue 3 years ago • 3 comments

There is still some work to be done, but the gist of it is:

  • ce builds set_current ... store the oldest non-notified commit, skipping if something is already stored
  • ce environment refresh (and later ce instances restart) get the currently deployed version, and:
    • We ask github for the commits between both
    • Query github for the linked PRs for all those commits
    • Using GraphQL, find the linked issues for every PR, and for each:
      • Check if it already has a "This is now live" comment (Just in case)
      • Send a message saying "This is now live"
  • Delete the stored commit so new build versions get logged

This would need a new ssm in aws, and I need to test it in case where no key exists (Which should be the case of env refreshes for the same version!)

AbrilRBS avatar Apr 29 '22 18:04 AbrilRBS

The failing test comes from the branch being a bit outdated, nothing to worry about

AbrilRBS avatar Aug 17 '22 02:08 AbrilRBS

Just ran ce notify set_base 16b176235a67f5b31f5657e2bf76e2e85d84d0f7 which is a commit from 3 days ago so we don't get spammed in case this runs unexpectedly

AbrilRBS avatar Aug 17 '22 03:08 AbrilRBS

This could be awesome. Any chance of resurrecting this @RubenRBS ?

OfekShilon avatar Jan 13 '24 20:01 OfekShilon