code-review icon indicating copy to clipboard operation
code-review copied to clipboard

don't create try pushes for old phabricator revisions

Open jcristau opened this issue 1 year ago • 8 comments

If reviewbot fails to create a try push for a given phabricator revision in some time (1 hour?), it should give up instead of holding on to it forever.

We're seeing an issue right now where reviewbot is delayed making try pushes by 2 days.

jcristau avatar Mar 21 '24 12:03 jcristau

This would be fixed around here: https://github.com/mozilla/libmozevent/blob/a41fad391146bbdc182b3bcc295353c30f76bfbc/libmozevent/mercurial.py#L357.

marco-c avatar Mar 21 '24 12:03 marco-c

We should return a failure and post to Phab that we run out of time.

marco-c avatar Mar 21 '24 12:03 marco-c

  • we should check the age of the build there as there are other stop conditions
  • the age is obtainable through PhabricatorBuild.diff.[some path in JSON]

La0 avatar Oct 21 '24 07:10 La0

Side note: we need this patch to test deployment of #2449 (if we need to get some downtime, it will spam with try pushes otherwise)

La0 avatar Oct 24 '24 07:10 La0

This is fixed in libmozevent, we just need to upgrade the lib.

marco-c avatar Oct 24 '24 09:10 marco-c

The usage of this patch in events gives this Sentry issue

La0 avatar Nov 25 '24 19:11 La0

I made a cleaner version of build expiry check, adding a new state on the build, and custom error messages.

These 2 PRs still require some unit tests

La0 avatar Nov 26 '24 12:11 La0

@Archaeopteryx could you review https://github.com/mozilla/libmozevent/pull/109 then we need to build a libmozevent release (should just be a tag push) and use it in #2550

La0 avatar Dec 06 '24 10:12 La0