RFR: 2189: Mark command as handled when JCheckConfiguration is missing or invalid in PullRequestCommandWorkItem [v3]

Zhao Song zsong at openjdk.org
Mon Mar 4 18:21:44 UTC 2024


> Recently, we found that the skara bot keeps trying to process /open command in this pr https://github.com/openjdk/jdk8u-dev/pull/393
> 
> After investigation, we found that this pr is a dependent pr and this pr was closed before the parent pr(https://github.com/openjdk/jdk8u-dev/pull/392) got integrated, so this dependent pr didn't get retargeted.
> 
> Skara bot was trying to process the command but the bot couldn't find jcheck configuration in the target branch because the target is already deleted. And when the jcheck configuration is invalid or missing in PullRequestCommandWorkItem, RuntimeException would be thrown, causing the bot to repeatedly process the command. This behavior is wrong because when jcheck configuration is missing or invalid, it wouldn't recover automatically. In this case, the bot should just notice the user what problem it found and mark the command as handled to prevent the bot from being stuck in a loop.

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

  fix issues

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

Changes:
  - all: https://git.openjdk.org/skara/pull/1616/files
  - new: https://git.openjdk.org/skara/pull/1616/files/6a09ed02..e1baec45

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=skara&pr=1616&range=02
 - incr: https://webrevs.openjdk.org/?repo=skara&pr=1616&range=01-02

  Stats: 17 lines in 2 files changed: 8 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/skara/pull/1616.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1616/head:pull/1616

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


More information about the skara-dev mailing list