Skip to content

[EWS] Only trigger builds for open and synchronize events - #73

Merged
JonWBedard merged 0 commit into
WebKit:mainfrom
JonWBedard:eng/github-ews-ignore-edits
Jan 15, 2022
Merged

JonWBedard merged 0 commit into
WebKit:mainfrom
JonWBedard:eng/github-ews-ignore-edits

Conversation

@JonWBedard

@JonWBedard JonWBedard commented Jan 14, 2022 •

Copy link
Copy Markdown
Member

f7304e2

[EWS] Only trigger builds for open and synchronize events
https://bugs.webkit.org/show_bug.cgi?id=235249
<rdar://problem/87615392 >

Reviewed by Aakash Jain.

* Tools/CISupport/ews-build/events.py:
(Events.stopService):
(GitHubEventHandlerNoEdits):
(GitHubEventHandlerNoEdits.handle_pull_request):
* Tools/CISupport/ews-build/master.cfg:


Canonical link: https://commits.webkit.org/246068@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288043 268f45cc-cd09-0410-ab3c-d52691b4dbfc

@JonWBedard JonWBedard self-assigned this Jan 14, 2022
@JonWBedard
JonWBedard requested a review from aj062 January 14, 2022 21:18
Comment thread Tools/CISupport/ews-build/events.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder where does this log goes? Do it show up in twistd.log

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes
2022-01-14 17:01:21-0800 [_GenericHTTPChannelProtocol,0,127.0.0.1] Processing GitHub PR #74 2022-01-14 17:01:21-0800 [_GenericHTTPChannelProtocol,1,127.0.0.1] Action edited on PR #74 does not indicate code has been changed 2022-01-14 17:01:22-0800 [-] Received 1 changes from GitHub PR #74 2022-01-14 17:01:22-0800 [_GenericHTTPChannelProtocol,2,127.0.0.1] Processing GitHub PR #74 2022-01-14 17:01:22-0800 [-] Received 1 changes from GitHub PR #74

Comment thread Tools/CISupport/ews-build/events.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: number => pr_number

Comment thread Tools/CISupport/ews-build/events.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can save this list in a variable like GITHUB_ACTIONS_TO_TRIGGER_EWS

@JonWBedard
JonWBedard force-pushed the eng/github-ews-ignore-edits branch from 6c03a70 to 83e6771 Compare January 15, 2022 01:27
@JonWBedard
JonWBedard merged commit f7304e2 into WebKit:main Jan 15, 2022
@JonWBedard

Copy link
Copy Markdown
Member Author

@JonWBedard
JonWBedard force-pushed the eng/github-ews-ignore-edits branch from 83e6771 to f7304e2 Compare January 15, 2022 01:38
@JonWBedard
JonWBedard deleted the eng/github-ews-ignore-edits branch January 15, 2022 01:39
@aj062

aj062 commented Jan 15, 2022

Copy link
Copy Markdown
Member

@JonWBedard For the record, can you please list on which specific actions we are trying to avoid triggering EWS here.

@JonWBedard

JonWBedard commented Jan 15, 2022 •

Copy link
Copy Markdown
Member Author

@JonWBedard For the record, can you please list on which specific actions we are trying to avoid triggering EWS here.

The one that brought this up was editing the pull request title, but adding or subtracting reviewers and labels would have the same problem

Wowfunhappy pushed a commit to Wowfunhappy/WebKit that referenced this pull request Jun 16, 2026
…tx-menu repopulate hack

Safari 7's WebProcess injected bundle calls WKBundleHitTestResultGetFrame/GetTargetFrame to put the hit Frame into the context-menu userData. Upstream 882f278 ("Reduce InjectedBundle SPI surface area") gutted those to `return nullptr`. Safari's V3 UIProcess context-menu callback (BrowserPageContextMenuClient::getContextMenuFromProposedMenu) reads that Frame, finds it null, and bails -> empty menu. The 85f38e2 backport hack in WebContextMenuProxyMac::useContextMenuItems papered over this by repopulating an empty menu from the proposed items, which made Safari's menu work (#12) but also overrode the App Store's deliberate empty-array suppression (WebKit#73).

Restore the pre-882f278 bodies (matching the file's existing protect() idiom, used by all sibling functions) so Safari builds its own menu; delete the repopulate hack so the App Store suppresses correctly. Verified via right-click: Safari shows its rich native menu, App Store shows none, preventDefault honored, github/cnn render.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants