Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 531615

Summary: Eclipse IP Validation not running on github pull requests
Product: Community Reporter: Dan Heidinga <danielheidinga>
Component: GitHubAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: charlie.gracie, charlie_gracie, danielheidinga, denis.roy, icraggs, joakim.erdfelt, mikael.barbero, nikhilnanivadekar, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Screenshot of IP Validation not working. none

Description Dan Heidinga CLA 2018-02-23 12:08:00 EST
We've noticed the Eclipse IP Validation check isn't running on github pull requests.  Both the Eclipse OMR and Eclipse OpenJ9 projects have experienced this in the last ~20 hours.

An example PR https://github.com/eclipse/openj9/pull/1256
Click "Show all checks" and see the Eclipse IP Validation check is missing.
Comment 1 Charlie Gracie CLA 2018-02-26 14:32:44 EST
Hmm I wonder if the right component for this is actually Github instead of CI-Jenkins?
Comment 2 Mikaƫl Barbero CLA 2018-02-27 03:20:12 EST
The hook is properly set and the events are properly sent to the hook. I guess the issue is on the hook side then.

Denis, Matt, 

Could you please have a look?
Comment 3 Eclipse Webmaster CLA 2018-02-27 15:33:22 EST
*** Bug 531696 has been marked as a duplicate of this bug. ***
Comment 4 Joakim Erdfelt CLA 2018-02-27 15:59:41 EST
See the attachment on Bug 531696 shows the details of the actual github request and eclipse webhook response (headers and body contents).

The response body contents seems like the webhook is initializing for the first time and is dumping php debug information on the response body content.

Past webhook responses are much simpler and that's what's likely confusing github.
Comment 5 Eclipse Webmaster CLA 2018-02-28 11:43:39 EST
*** Bug 531773 has been marked as a duplicate of this bug. ***
Comment 6 Eclipse Webmaster CLA 2018-03-01 09:40:58 EST
So there does seem to be a couple of issues. First we're not able to connect back to Github(looks like an SSL issue). Second there is something goofy about the returned results when it does happen.

I'll keep trying to work out what's happened.

-M.
Comment 7 Nikhil Nanivadekar CLA 2018-03-03 16:38:04 EST
What is the guidance to project maintainers regarding merging requests from contributors?
Should we hold-off or we should merge?
Comment 8 Eclipse Webmaster CLA 2018-03-05 11:11:38 EST
At this stage you'll need to confirm the sign-off and in the case of non-committers you should take a quick look at https://accounts.eclipse.org and use the 'user search' feature to confirm they have an ECA on file.

I'm pretty sure I've got a solution, but I want to test it before claiming this is fixed(going forward).

-M.
Comment 9 Eclipse Webmaster CLA 2018-03-05 14:00:28 EST
Ok I've tested my changes and they seem to be working as I expect.  Can I get confirmation?

Unfortunately I don't see a way to add these reviews to existing pull requests.

-M.
Comment 10 Joakim Erdfelt CLA 2018-03-05 16:04:41 EST
Confirming that recent fix seems to be working.

https://github.com/eclipse/jetty.project/pull/2281
Comment 11 Eclipse Webmaster CLA 2018-03-05 16:52:27 EST
Sweet!  Please reopen if it happens again.

-M.
Comment 12 Denis Roy CLA 2018-03-06 09:32:55 EST
As a simple nit, clicking Details on the pull request sends me to this link:
https://dev.eclipse.org/eclipse-webhook/services/status_details.php?id=5a9dd94484fe0

Which is a 403
Comment 13 Nikhil Nanivadekar CLA 2018-03-14 23:33:13 EDT
IP Validation is not running again.
For Example: https://github.com/eclipse/eclipse-collections/pull/479
Comment 14 Eclipse Webmaster CLA 2018-03-15 11:02:27 EDT
(In reply to Nikhil Nanivadekar from comment #13)
> IP Validation is not running again.
> For Example: https://github.com/eclipse/eclipse-collections/pull/479

Hmmm, it's there now and seems to be happy.

-M.
Comment 15 Nikhil Nanivadekar CLA 2018-03-15 12:47:19 EDT
Seems like it works fine on an existing PR only when the contributor rebases. If it is only a push, then IP Validation does not run.
Comment 16 Eclipse Webmaster CLA 2018-03-16 15:06:14 EDT
*** Bug 532542 has been marked as a duplicate of this bug. ***
Comment 17 Eclipse Webmaster CLA 2018-03-16 15:12:30 EDT
(In reply to Nikhil Nanivadekar from comment #15)
> Seems like it works fine on an existing PR only when the contributor
> rebases. If it is only a push, then IP Validation does not run.

I think that's actually expected.  Only project committers should be able to push, and they presumably know the IP rules.  PRs may come from anywhere and so are checked.

Wayne, have I got that wrong?

-M.
Comment 18 Nikhil Nanivadekar CLA 2018-03-16 15:14:47 EDT
If a contributor pushes their own branch, and the PR is still open. The PR gets updated with the new commit. IP Validation should now run even on this new commit. This is how it was before.
Comment 19 Nikhil Nanivadekar CLA 2018-04-22 14:51:02 EDT
Created attachment 273727 [details]
Screenshot of IP Validation not working.
Comment 20 Nikhil Nanivadekar CLA 2018-04-22 14:51:42 EDT
This seems to be broken again. Please refer to the screenshot attached.
Reference PR: https://github.com/eclipse/eclipse-collections/pull/502
Comment 21 Eclipse Webmaster CLA 2018-04-24 15:48:31 EDT
(In reply to Nikhil Nanivadekar from comment #20)
> This seems to be broken again. Please refer to the screenshot attached.
> Reference PR: https://github.com/eclipse/eclipse-collections/pull/502

Fixed.  A small change hadn't been committed to master, so when an update was done it broke things.  I've recovered that change and have pushed it to master.

-M.