[webkit-changes] [WebKit/WebKit] a2343b: [ews-build.webkit.org] Handle duplicate GitHub hooks

Jonathan Bedard noreply at github.com
Fri Feb 9 09:15:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a2343bf6a44c76e9fff85a24d9fb69a559c6cfb4
      https://github.com/WebKit/WebKit/commit/a2343bf6a44c76e9fff85a24d9fb69a559c6cfb4
  Author: Jonathan Bedard <jbedard at apple.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M Tools/CISupport/ews-build/events.py
    M Tools/CISupport/ews-build/events_unittest.py

  Log Message:
  -----------
  [ews-build.webkit.org] Handle duplicate GitHub hooks
https://bugs.webkit.org/show_bug.cgi?id=269034
rdar://122589894

Reviewed by Aakash Jain.

Create a process-local record of events from GitHub, and prevent
events duplicated within 60-120 seconds of each over from
triggering duplicate builds.

* Tools/CISupport/ews-build/events.py:
(GitHubEventHandlerNoEdits.is_duped): Check if a value was registered
in the last two 60 second buckets.
(GitHubEventHandlerNoEdits.handle_pull_request): Before dispatching builds,
ensure that the incoming event hasn't been duplicated in the few minutes.
* Tools/CISupport/ews-build/events_unittest.py:
(TestCommitClassifier.test_duplicate):

Canonical link: https://commits.webkit.org/274369@main




More information about the webkit-changes mailing list