Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wpt-pr-bot missed a webhook - reviewer missing #48

Open
KyleJu opened this issue Oct 25, 2018 · 3 comments
Open

wpt-pr-bot missed a webhook - reviewer missing #48

KyleJu opened this issue Oct 25, 2018 · 3 comments

Comments

@KyleJu
Copy link
Collaborator

KyleJu commented Oct 25, 2018

web-platform-tests/wpt#13693 Missing a review when the PE is created

@jugglinmike
Copy link
Contributor

Thanks for the report! The only change in the referenced pull request is a file deletion. That's fairly unique, so it initially seemed like an edge case we weren't handling properly. However, running the code against that pull request right now yields the expected result.

The logs have this to say:

Oct 24 01:06:13 wpt-pr-bot app/web.1: #13693 pull request opened 
Oct 24 01:06:14 wpt-pr-bot heroku/router: at=info method=POST path="/github-hook" host=wpt-pr-bot.herokuapp.com request_id=0000000 fwd="192.30.252.45" dyno=web.1 connect=1ms service=4ms status=200 bytes=224 protocol=https 
Oct 24 01:06:14 wpt-pr-bot app/web.1: #13693: not handled. action: labeled isComment: false 
Oct 24 01:06:18 wpt-pr-bot app/web.1: GET https://api.github.com/repos/web-platform-tests/wpt/pulls/13693/files 
Oct 24 01:06:18 wpt-pr-bot app/web.1: #13693: THIS SHOULDN'T EVER HAPPEN 
Oct 24 01:06:18 wpt-pr-bot app/web.1:  Error: Not Found 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at errFrom (/app/lib/github.js:10:15) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at Request.onResponse [as _callback] (/app/lib/github.js:86:29) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at Request.self.callback (/app/node_modules/request/request.js:372:22) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at emitTwo (events.js:126:13) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at Request.emit (events.js:214:7) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at Request.<anonymous> (/app/node_modules/request/request.js:1317:14) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at emitOne (events.js:121:20) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at Request.emit (events.js:211:7) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at IncomingMessage.<anonymous> (/app/node_modules/request/request.js:1265:12) 
Oct 24 01:06:18 wpt-pr-bot app/web.1:     at emitNone (events.js:111:20) 

The requested resource is available now, so this may have been the result of a transient network connectivity issue.

@zcorpan
Copy link
Member

zcorpan commented Oct 26, 2018

Interesting. That error was the reason for filing web-platform-tests/wpt#13710 so possibly the guess (by @tobie) at the cause was incorrect.

Maybe the code could retry after a timeout if the problem is connectivity?

@jugglinmike
Copy link
Contributor

That error was the reason for filing web-platform-tests/wpt#13710 so possibly the guess (by @tobie) at the cause was incorrect.

The string "THIS SHOULDN'T EVER HAPPEN" is logged in response many distinct errors. Although this particular case is unrelated to user permissions, Tobie's diagnosis was for other cases which are caused by permissions. So unfortunately, web-platform-tests/wpt#13710 is still a valid bug.

Maybe the code could retry after a timeout if the problem is connectivity?

It could! #49

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

No branches or pull requests

3 participants