RFR: 1658: Minimize race window when updating PR body [v7]

Zhao Song zsong at openjdk.org
Wed Nov 30 17:04:05 UTC 2022


> Currently, when the pr bot tries to update the PR body, users are also likely to update the PR body at the same time. Therefore, users' updates are likely to be overwritten by bot.  
> 
> This is a race between the bot and user and the race window is a little big right now.
> 
> To reduce the race window, in this patch, when PR bot is trying to update PR body, it will check whether the PR body has been modified by user. And if the PR bot has been modified, PR bot would not overwrite it.

Zhao Song has updated the pull request incrementally with one additional commit since the last revision:

  Update bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java
  
  Co-authored-by: Erik Joelsson <37597443+erikj79 at users.noreply.github.com>

-------------

Changes:
  - all: https://git.openjdk.org/skara/pull/1416/files
  - new: https://git.openjdk.org/skara/pull/1416/files/e356863a..e0156b22

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=skara&pr=1416&range=06
 - incr: https://webrevs.openjdk.org/?repo=skara&pr=1416&range=05-06

  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/skara/pull/1416.diff
  Fetch: git fetch https://git.openjdk.org/skara pull/1416/head:pull/1416

PR: https://git.openjdk.org/skara/pull/1416


More information about the skara-dev mailing list