/irc-logs / w3c / #webapps / 2013-04-16 / end
Options:
- # Session Start: Tue Apr 16 00:00:00 2013
- # Session Ident: #webapps
- # [00:17] * Quits: Hixie (~ianh@public.cloak) (Ping timeout: 60 seconds)
- # [00:22] * Joins: Hixie (~ianh@public.cloak)
- # [01:21] * heycam|away is now known as heycam
- # [01:36] * Quits: tantek (~tantek@public.cloak) (tantek)
- # [02:12] * heycam is now known as heycam|away
- # [02:13] * heycam|away is now known as heycam
- # [02:29] * Quits: jsbell (~jsbell@public.cloak) ("There's no place like home...")
- # [02:31] * Quits: ArtB (~abarsto@public.cloak) ("Leaving.")
- # [02:45] * Joins: richt (~richt@public.cloak)
- # [02:53] * Joins: shepazu (schepers@public.cloak)
- # [03:14] * Quits: smaug (~chatzilla@public.cloak) (Ping timeout: 60 seconds)
- # [04:12] * Joins: jarek (~jarek@public.cloak)
- # [04:12] * Quits: jarek (~jarek@public.cloak) (jarek)
- # [04:40] * heycam is now known as heycam|away
- # [04:43] * Quits: Lachy (~Lachy@public.cloak) ("Computer has gone to sleep.")
- # [04:50] * Joins: jarek (~jarek@public.cloak)
- # [04:50] * Quits: jarek (~jarek@public.cloak) (jarek)
- # [05:15] * heycam|away is now known as heycam
- # [06:20] * Quits: darobin (rberjon@public.cloak) (Client closed connection)
- # [06:20] * Joins: darobin (rberjon@public.cloak)
- # [07:57] * Quits: darobin (rberjon@public.cloak) (Client closed connection)
- # [08:51] * Joins: Ms2ger (~Ms2ger@public.cloak)
- # [09:05] * Joins: dom (dom@public.cloak)
- # [09:17] * Joins: darobin (rberjon@public.cloak)
- # [09:20] <jgraham> So I started implementing the PubSubHubbub stuff last night and then totally forgot to check it in or anything useful. But I should be able to finish it off this evening or something.
- # [09:27] <darobin> jgraham++
- # [09:36] <dom> jgraham++
- # [09:36] <dom> I have actually set up the webhook, but haven't tested it
- # [09:50] <Ms2ger> jgraham++
- # [09:50] <Ms2ger> Just because
- # [10:01] * heycam is now known as heycam|away
- # [10:03] * heycam|away is now known as heycam
- # [10:14] * Joins: smaug (~chatzilla@public.cloak)
- # [10:23] <MikeSmith> jgraham++
- # [10:33] * heycam is now known as heycam|away
- # [10:41] <jgraham> Ms2ger just made a pull request, so you might want to look in error.log about now to see what's broken
- # [10:42] <jgraham> (I am just assuming that something is)
- # [10:42] * Joins: sicking (~sicking@public.cloak)
- # [10:45] <Ms2ger> dom, ^
- # [10:45] * dom looking into it
- # [10:47] <dom> something must be broken since https://w3c-test.org/web-platform-tests/submissions/83/ hasn't been created
- # [10:48] <dom> but it doesn't sound like github used the webhook for some reason
- # [10:48] <dom> huh
- # [10:48] <dom> it didn't save my setting apparently
- # [10:48] <dom> probably a PEBCAK of mine
- # [10:50] <jgraham> I don't think it is possible to register non-push webhooks via the UI. I think you have to do it through the API
- # [10:50] <dom> oh
- # [10:51] <jgraham> (the PubSubHubub version should do this automatically. There is no reason that the existing version couldn't)
- # [10:51] <jgraham> s/should/will/
- # [10:51] <dom> so the one exposed in the WebUI is only for push, not for all events
- # [10:51] <dom> ok, I'll look into the registration API then
- # [10:52] <jgraham> http://developer.github.com/v3/repos/hooks/#create-a-hook
- # [10:52] <jgraham> The events you need are ["push", "pull_request", "issue_comment"]
- # [10:52] <jgraham> The content type must be json
- # [10:55] <jgraham> So you need to POST to https://api.github.com/repos/w3c/web-platform-tests/hooks something like {"name":"web", "active":true, "events":["push", "pull_request", "issue_comment"], "config":{"url":"http://url/to/sync/script", "content_type":"json"}}
- # [10:55] <jgraham> Oooh, I note that you can POST a secret too
- # [10:56] <jgraham> Means that PubSubHubbub probably isn't needed to get authentication of the sender
- # [10:57] <jgraham> Yay for going back to technologies I can type the name of
- # [11:00] * dom gets a 404 when trying to POST to https://api.github.com/repos/w3c/web-platform-tests/hooks ?!?
- # [11:01] <jgraham> You need to authenticate
- # [11:01] <jgraham> Forgot to mention that
- # [11:01] <dom> I do
- # [11:01] <dom> using basich auth, right?
- # [11:02] <jgraham> Yes
- # [11:04] <jgraham> I can GET it at least
- # [11:05] <dom> you can? I'm GETting 404
- # [11:05] <dom> can you paste your command line (assuming it doesn't have your password)
- # [11:06] <jgraham> I used python/requests
- # [11:06] <jgraham> requests.get("https://api.github.com/repos/w3c/web-platform-tests/hooks", auth=("jgraham", getpass.getpass()))
- # [11:07] <jgraham> (I presume you are using the right password?)
- # [11:08] <dom> hmm... indeed, worky with python/requests
- # [11:08] <dom> wtf??
- # [11:10] <dom> hmm... I think my POST tool might not send credentials unless it gets a 401 challenge
- # [11:10] <dom> that would explain
- # [11:13] <jgraham> Sounds reasonable
- # [11:17] <dom> "Problems parsing JSON" now
- # [11:17] <dom> I'm getting closer at least :)
- # [11:18] <dom> {"active": 1, "config": {"url": "http://w3c-test.org/webhook/sync.py", "secret": "XXXXX", "content_type": "json"}, "name": "mirror", "events": ["push", "pull_request", "issue_comment"]}
- # [11:20] <jgraham> What claimed problems parsing JSON?
- # [11:21] <dom> the github endpoint, but I think I've found why
- # [11:21] <dom> indeed; now getting a new error :)
- # [11:22] <dom> {u'message': u'Validation Failed', u'errors': [{u'field': u'name', u'code': u'invalid', u'resource': u'Hook', u'value': u'mirror'}]}
- # [11:24] <jgraham> Name should be "web"
- # [11:25] <jgraham> You don't get to make up a value there
- # [11:25] <dom> oh right
- # [11:25] <jgraham> github has a whole pile of built-in support for various things, but we are just using the generic API
- # [11:26] <dom> there you go, it worked
- # [11:27] <dom> now we need a new pull request :)
- # [11:29] * Ms2ger has some stuff...
- # [11:41] <Ms2ger> Let's see...
- # [11:42] <Ms2ger> https://github.com/w3c/web-platform-tests/pull/84
- # [11:42] <dom> yup, it did trigger the script, which did fail :)
- # [11:42] <Ms2ger> :D
- # [11:42] <dom> [Tue Apr 16 09:43:43 2013] [error] [client 204.232.175.75] ['git', 'fetch', 'origin']
- # [11:42] <dom> [Tue Apr 16 09:43:43 2013] [error] [client 204.232.175.75]
- # [11:42] <dom> [Tue Apr 16 09:44:04 2013] [error] [client 204.232.175.75] ['git', 'fetch', 'origin']
- # [11:42] <dom> [Tue Apr 16 09:44:04 2013] [error] [client 204.232.175.75]
- # [11:42] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] Traceback (most recent call last):
- # [11:42] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 205, in <module>
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] main(config)
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 163, in main
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] process_push(config, data, authorised_users)
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 124, in process_push
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] update_master(config["base_path"])
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 150, in update_master
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] checkout.update()
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 32, in update
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] git("fetch", "origin", cwd=self.path)
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] File "/u/www.w3c-test.org/webhook/sync.py", line 85, in git
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] raise IOError(stderr)
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] IOError: error: unable to create temporary sha1 filename .git/objects/11: File exists
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75]
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] fatal: failed to write object
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] fatal: unpack-objects failed
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75]
- # [11:43] <dom> [Tue Apr 16 09:44:07 2013] [error] [client 204.232.175.75] Premature end of script headers: sync.py
- # [11:43] <dom> [Tue Apr 16 09:44:10 2013] [error] [client 204.232.175.75] ['git', 'checkout', '-f', 'origin/master']
- # [11:43] <dom> " IOError: error: unable to create temporary sha1 filename .git/objects/11: File exists" being the gist of that long paste
- # [11:59] * Joins: Lachy (~Lachy@public.cloak)
- # [12:03] * Quits: richt (~richt@public.cloak) (Client closed connection)
- # [12:03] * Joins: richt (~richt@public.cloak)
- # [12:07] * Quits: richt (~richt@public.cloak) (Ping timeout: 60 seconds)
- # [12:18] * Quits: Ms2ger (~Ms2ger@public.cloak) ("bbl")
- # [12:21] * Quits: sicking (~sicking@public.cloak) (sicking)
- # [12:27] * heycam|away is now known as heycam
- # [12:28] * Joins: abarsto (~abarsto@public.cloak)
- # [12:28] * abarsto is now known as ArtB
- # [12:35] <jgraham> That… isn't making much sense to me
- # [12:37] <jgraham> If you do "git fetch origin" by hand in the checkout directory does it work?
- # [13:08] <dom> jgraham, seems like it does work when done by hand
- # [13:08] <dom> I'm puzzled as well
- # [13:09] <jgraham> The script is running with the required user/permissions, right?
- # [13:09] <dom> as far as I can tell
- # [13:10] <dom> (that is, I'm running the manual git fetch as the same user as I think apache is running, www-data)
- # [13:11] <jgraham> The following command ("git checkout -f origin/master") also works when run manually?
- # [13:11] <dom> git checkout -f origin/master
- # [13:11] <dom> HEAD is now at 46114d4... Merge pull request #81 from dontcallmedom/master
- # [13:11] <dom> sounds like it is
- # [13:11] <jgraham> Yes, it does
- # [13:14] * Joins: richt (~richt@public.cloak)
- # [13:15] * Joins: richt_ (~richt@public.cloak)
- # [13:18] * Quits: richt (~richt@public.cloak) (Ping timeout: 60 seconds)
- # [13:31] * Joins: richt (~richt@public.cloak)
- # [13:34] * Quits: richt_ (~richt@public.cloak) (Ping timeout: 60 seconds)
- # [13:45] * Quits: richt (~richt@public.cloak) (Client closed connection)
- # [13:45] * Joins: richt (~richt@public.cloak)
- # [13:49] * Quits: richt (~richt@public.cloak) (Ping timeout: 60 seconds)
- # [14:08] * Joins: richt (~richt@public.cloak)
- # [14:23] * Joins: Ms2ger (~Ms2ger@public.cloak)
- # [14:39] * Joins: tobie (tobie@public.cloak)
- # [14:50] * heycam is now known as heycam|away
- # [14:55] * Joins: sicking (~sicking@public.cloak)
- # [15:15] * Joins: davidb (~davidb@public.cloak)
- # [15:28] * Joins: davidb_ (~davidb@public.cloak)
- # [15:28] * Quits: davidb (~davidb@public.cloak) (Client closed connection)
- # [15:28] * davidb_ is now known as davidb
- # [15:29] * Joins: davidb_ (~davidb@public.cloak)
- # [15:32] * Quits: davidb (~davidb@public.cloak) (Ping timeout: 60 seconds)
- # [15:32] * davidb_ is now known as davidb
- # [16:21] * Quits: sicking (~sicking@public.cloak) (Ping timeout: 60 seconds)
- # [16:22] * Joins: sicking (~sicking@public.cloak)
- # [16:26] * Joins: davidb_ (~davidb@public.cloak)
- # [16:28] * Quits: davidb (~davidb@public.cloak) (Ping timeout: 60 seconds)
- # [16:28] * davidb_ is now known as davidb
- # [16:48] * Joins: jrossi2 (~Jacob@public.cloak)
- # [16:51] * Quits: richt (~richt@public.cloak) (Client closed connection)
- # [16:51] * Joins: richt (~richt@public.cloak)
- # [16:55] * Quits: richt (~richt@public.cloak) (Ping timeout: 60 seconds)
- # [16:57] * Joins: sicking_ (~sicking@public.cloak)
- # [16:58] * Quits: sicking (~sicking@public.cloak) (Ping timeout: 60 seconds)
- # [16:58] * sicking_ is now known as sicking
- # [16:59] * Joins: jeffh (~d871a880@public.cloak)
- # [17:00] * Quits: Ms2ger (~Ms2ger@public.cloak) ("bbl")
- # [17:30] * Quits: jeffh (~d871a880@public.cloak) ("http://www.mibbit.com ajax IRC Client")
- # [17:47] * Quits: chaals (~Adium@public.cloak) (Ping timeout: 60 seconds)
- # [17:49] * Joins: chaals (~Adium@public.cloak)
- # [17:51] * Joins: Ms2ger (~Ms2ger@public.cloak)
- # [18:18] * Quits: dom (dom@public.cloak) ("")
- # [18:21] * Joins: davidb_ (~davidb@public.cloak)
- # [18:23] * Quits: davidb (~davidb@public.cloak) (Ping timeout: 60 seconds)
- # [18:23] * davidb_ is now known as davidb
- # [18:27] * Quits: Lachy (~Lachy@public.cloak) ("Bye")
- # [18:37] * Quits: chaals (~Adium@public.cloak) (Ping timeout: 60 seconds)
- # [18:38] * Joins: chaals (~Adium@public.cloak)
- # [18:46] * Joins: Lachy (~Lachy@public.cloak)
- # [18:47] * Quits: darobin (rberjon@public.cloak) (Client closed connection)
- # [18:54] * Quits: glenn (~gadams@public.cloak) (Client closed connection)
- # [18:55] * Quits: sicking (~sicking@public.cloak) (sicking)
- # [19:08] * Joins: lgombos (~gombos@public.cloak)
- # [19:48] * Joins: jarek (~jarek@public.cloak)
- # [19:54] * Joins: davidb_ (~davidb@public.cloak)
- # [19:57] * Quits: davidb (~davidb@public.cloak) (Ping timeout: 60 seconds)
- # [19:57] * davidb_ is now known as davidb
- # [20:00] * Quits: davidb (~davidb@public.cloak) (Client closed connection)
- # [20:00] * Joins: davidb_ (~davidb@public.cloak)
- # [21:32] * Quits: jarek (~jarek@public.cloak) (jarek)
- # [21:52] * Quits: Ms2ger (~Ms2ger@public.cloak) (Ping timeout: 60 seconds)
- # [21:58] <ArtB> chaals, mounir, I just added App Manifest to the potential topics list for next week http://www.w3.org/wiki/Webapps/April2013Meeting#Potential_Topics
- # [21:58] <ArtB> If there are some relevant links to provide some context, let me know and I'll add them
- # [21:59] * Joins: jarek (~jarek@public.cloak)
- # [22:08] * Joins: Ms2ger (~Ms2ger@public.cloak)
- # [22:15] * Quits: davidb_ (~davidb@public.cloak) (Ping timeout: 60 seconds)
- # [22:17] * Quits: jarek (~jarek@public.cloak) (jarek)
- # [22:22] * Quits: Ms2ger (~Ms2ger@public.cloak) ("nn")
- # [22:22] * Joins: glenn (~gadams@public.cloak)
- # [22:36] * Quits: chaals (~Adium@public.cloak) ("Leaving.")
- # [22:38] * Joins: glenn_ (~gadams@public.cloak)
- # [22:38] * Quits: glenn (~gadams@public.cloak) (Client closed connection)
- # [22:41] * Joins: glenn (~gadams@public.cloak)
- # [22:41] * Quits: glenn_ (~gadams@public.cloak) (Client closed connection)
- # [22:47] * Joins: lgombos_ (~gombos@public.cloak)
- # [22:47] * Quits: lgombos (~gombos@public.cloak) (Client closed connection)
- # [22:51] * Quits: lgombos_ (~gombos@public.cloak) (Ping timeout: 60 seconds)
- # [23:17] * Quits: glenn (~gadams@public.cloak) (Client closed connection)
- # [23:17] * Joins: glenn (~gadams@public.cloak)
- # [23:24] * Quits: tobie (tobie@public.cloak) (Ping timeout: 60 seconds)
- # [23:29] * Joins: tobie (tobie@public.cloak)
- # [23:35] * Joins: chaals (~Adium@public.cloak)
- # [23:44] * Quits: ArtB (~abarsto@public.cloak) ("Leaving.")
- # Session Close: Wed Apr 17 00:00:00 2013
The end :)