Thursday, 2012-03-08

*** Joins: giallu (~giallu@fedora/giallu)02:35
*** Joins: asm89 (~asm89@5ED18FE0.cm-7-2c.dynamic.ziggo.nl)02:52
*** Quits: asm89 (~asm89@5ED18FE0.cm-7-2c.dynamic.ziggo.nl) (Changing host)02:52
*** Joins: asm89 (~asm89@unaffiliated/asm89)02:52
*** Joins: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au)03:40
*** Quits: Protogenes (~Protogene@cmnz-4db37660.pool.mediaWays.net) (Quit: @TEXT<0x6a5934b6> Error reading 0x00000000)04:59
*** Joins: Protogenes (~Protogene@cmnz-4db37660.pool.mediaWays.net)05:00
*** Joins: FrankZZ (~FrankZZ@unaffiliated/frankzz)08:34
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)09:38
*** Quits: FrankZZ (~FrankZZ@unaffiliated/frankzz) (Ping timeout: 252 seconds)11:04
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 252 seconds)11:36
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)12:01
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Remote host closed the connection)13:42
*** Joins: asm89 (~asm89@unaffiliated/asm89)13:48
*** Joins: Paul_46 (~IceChat09@2001:470:9310:aaaa:6951:3315:3e15:b36f)14:02
*** Joins: Balor (3eebcf9c@gateway/web/freenode/ip.62.235.207.156)14:26
BalorHello14:26
BalorI have some problem on making the github hook for mantisBT works14:27
BalorI configured the API key, and set the github repo14:27
Balorbut when I commit, nothing happen.14:28
jreeseBalor: there is a known issue with the Github service hook, although I haven't been able to track it down yet14:28
jreeseI assume it has to do with a change to their service hook payload14:29
BalorOkay ... I tried with the old method, with the post-receive and the whitelisted IP14:29
Balordidn't worked either ...14:29
jreeseI think the post-receive hook also uses the same payload that breaks it14:30
BalorThen I used the cronjob method ... again didn't worked ... I have the error message saying I did the action twice ...14:31
jreeseyou're giving the wrong URL to the cronjob14:31
jreesejust use page=Source/import for the cron14:31
Baloraaah okay not the : curl http://yoururl.xyz/mantisbt/plugin.php?page=Source/repo_import_latest&id=XX14:32
Balorbecause on your tutorial you typed that.14:32
jreeseyeah, that's out of date :/14:32
jreesenever enough time to reconcile that14:32
Balor(Congrat by the way about Bioware :D (Quite a fan of their studio ^^))14:33
jreesethanks :)14:33
jreeseI've been enjoying my work here14:33
jreesemy free time isn't helped now that I get free/cheap games from the campus store... :X14:34
Balorabout the new URL, do I have to put the id too ?14:34
jreeseyes14:34
BalorOO wow that good :D14:34
Paul_46moo14:34
jreesehi Paul_46 14:35
vBmBalor, if you don't mind paste the exact stuff you're using in cron :D (i'd like the same to make to work)14:35
Paul_46lo14:35
BalorWell I'm a computer student (in Belgium) and working for Bioware is quite a dream :D14:35
Balor@vBm : of course just let me edit mine first :)14:35
vBmBalor, thanks man :)14:35
Paul_46right, and off again14:37
Paul_46:)14:37
*** Quits: Paul_46 (~IceChat09@2001:470:9310:aaaa:6951:3315:3e15:b36f) (Quit: He who laughs last, thinks slowest)14:37
BalorvBm : curl http://www.example.com/mantisbt/plugin.php?page=Source/import&id=XX14:37
*** Joins: Paul_46 (~IceChat09@2001:470:9310:aaaa:6951:3315:3e15:b36f)14:37
vBmBalor, that's all that needs to be added to cron ?14:38
Balorwhere id is the id of the repo, yes :)14:38
vBmsweet14:38
Balordont forget to add your server IP in the whitelist14:38
vBmlocalhost should be just fine right ?14:39
Balorshould be, just check the checkbox14:40
Balor@jreese : thanks for your help :D and continue your great work :)14:40
vBmi get "Invalid remote import address"14:40
vBmhmmz14:40
jreeseyou're welcome :)14:40
Balorhoo ... jreese : seems that I have the same error as vBm14:41
BalorInvalid remote import address14:41
Balorbut localhost is in the list ... do I have to put my server IP too ?14:41
jreeseyou need to check the "enable remote import", and then depending on what URL you use in your cronjob, you may need to enter the server's IP14:42
jreeseie, if you put the full domain in, you probably need to whitelist the server's external IP14:42
BalorI was thinking of using php to run the cron job ... just don't know how to send get parameter14:44
BalorIt's maybe the best solution no ?14:44
jreeseI always just use curl, I feel it's simpler14:44
BalorBut I still have the Invalid remote import address14:48
BalorI added all the IP that my server have14:48
jreesejust to cover the bases, you are putting the IPs in the remote import list, and not remote checkin?14:49
jreesesorry, got to get some lunch, bbiab14:49
Baloryep yep ... but ... forgot the IPv614:49
Balorokay no problem14:50
jreeseonly other suggestion I have is to add some debug loggin in the import.php14:50
jreesecheers14:50
BalorCheers :)14:51
*** Quits: Paul_46 (~IceChat09@2001:470:9310:aaaa:6951:3315:3e15:b36f) (Quit: Depression is merely anger without enthusiasm)14:53
*** Quits: Ragnor (~Ragnor@dslb-092-072-245-244.pools.arcor-ip.net) (Read error: Operation timed out)16:22
*** Joins: Ragnor (~Ragnor@dslb-178-009-173-059.pools.arcor-ip.net)16:27
jreeseBalor: did you get to figure out the problem?16:28
*** Quits: vBm (~vBm@unaffiliated/vbm) (Ping timeout: 245 seconds)16:45
*** Quits: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au) (Quit: Leaving)17:00
*** Joins: vBm (~vBm@pro1258.server4you.de)17:00
*** Quits: vBm (~vBm@pro1258.server4you.de) (Changing host)17:00
*** Joins: vBm (~vBm@unaffiliated/vbm)17:00
Balorjresse : nope can't figure out. I thought of another way to do the import17:12
Balorsince you added an API key17:12
Balorwhy don't use only that for "filtering"17:12
BalorI mean, no need IP any more, just adding a parameter API to the get, checking if it's the same API, and update the given repo if the key match17:13
Balorletting then in the futur, create API Key per repo.17:13
Balorwhat do you think jreese ?17:13
jreeseyeah, I can think of a lot of ways to make it better, I just don't really have the time or need to improve it17:14
jreeseI really don't even use Mantis anymore for anything other than on my own site, and most of my work was done for one of my previous employers17:14
vBmwhat's bioware using ? :D17:15
BalorWell I can give a rapid look, and implement that17:15
Balor@vBm  : I bet JIRA :) or homemade thing :)17:16
jreesemy studio doesn't really use anything for that atm, but EA in general uses Jira17:16
vBmi only liked flyspray and somewhat of trac ;x ... but got used to mantis so far xD17:17
vBmdon't like JIRA at all ;x17:17
BalorIf I do a pull request, will you merge it ?17:17
jreeseif we get to the point of needing something, I'll push for MantisBT of course, because I can't stand Jira, but those decisions are generally made top-down17:17
jreeseBalor: as long as it seems reasonable, ofc17:17
Balorjreese : I never created plugin for mantis but if I right by reading your code17:23
Balorif ( gpc_get_string( 'api_key' ) == plugin_config_get( 'api_key' ) ) { $t_valid = true; }17:23
Balorshould do the trick no ?17:23
Balorand then the url will be : http://bug.example.com/plugin.php?page=Source/import&id=13&api_key=XXXXXXXXXXXXXXXXXXXXX17:24
jreeseBalor: if you look at pages/checkin.php, it handles the API key there, so you should be able to follow that17:24
BalorExactly where that snippet is coming from17:25
jreeseok17:25
jreesethen yes :)17:25
Balorokay prepare for a simple pull request :P17:25
vBmjreese, Bioware uses which scm ? :P17:25
jreesedepends on what group, but my group uses Git17:26
jreesea lot of the game and art teams use Perforce17:26
vBmnice, i've switched to git recently from svn and love it :)17:26
jreesemy team has a few public repos on Github: http://github.com/EA2D17:27
jreesethe team was absorbed into BioWare, but most of our stuff is still branded EA2D17:27
BalorPull request done :)17:28
vBmgood to know, well all the best wishes for your new job man ... at least dreams come true for some of us :D17:28
jreesethanks, and yes, I'm still amazed that I've even gotten the opportunity17:29
jreesewe're still hiring if you're interested in moving to San Francisco :P17:29
BalorInterresting :D but I have to finish my studies first ^^17:30
jreeseah, yeah17:30
Balormaybe in 1,5 +-17:30
Baloryears17:30
vBmif you're hiring cooks i can come :D17:30
Balorand do some other studies after that ... because I don't think a Belgian graduate will be accepted in US XD17:31
jreesevBm: lol, sadly we outsource that to a local company17:31
vBmstill just a noob when it comes to coding :)17:31
jreeseBalor: you never know, but EA also has plenty of locations in Europe17:31
Baloryeah but Bioware is quite more interesting then only EA :) I'm not a big fan of EA to be honest ^^17:32
BalorI was so sad when Bioware accepted the offer of EA ...17:33
jreeseI'll agree on it being more interesting to be part of BioWare, but EA has really been doing a lot of work to turn the company around and make up for its past mistakes17:33
jreeseand at least once you get into EA, it seems much easier to transfer between EA-owned studios down the road17:34
jreeseEA really seems to care about employee happiness and growth17:34
jreeseand the benefits are fantastic17:34
Balorwow it seems that they really changed :) ... EA games, why not :D17:35
BalorBy the way which language are you mostly using ?17:35
jreesea lot of our server-side applications for games  are written in Java or C++, but the stuff I'm working on is written in Python17:36
Balorserver-side in java ? oO17:37
Balorokay ... I have a problem with curl ...17:38
Balorbecause when I use the url in my browser17:38
Balorit's working17:39
Balorbut with curl17:39
Balorfail17:39
jreesealso note that the studio I work for deals with social games, rather than the AAA titles17:39
Balorthe new "gold mine" :)17:39
jreesewhat's the error you get when you use curl?17:40
BalorAPPLICATION ERROR #20017:40
Balorthe whole HTML page with that code17:40
jreeseso fish the error message out of that HTML :P17:40
BalorA required parameter to this page (api_key) was not found.17:41
Balor..... wtf Oo17:41
Balor http://bug.example.com/plugin.php?page=Source/import&id=all&api_key=c50a95a703b4e3e2ea22a74117:41
BalorI used that url ...17:42
jreeseare you properly quoting the url to curl?17:42
Balorthe quotes --'' ...17:42
Balorwell try again with quotes ...17:42
BalorHOLY GOD ... the QUOTES ... the F*cking quotes ...17:44
BalorNow it's working17:44
Balorthanks jreese :)17:45
jreeseyou're welcome17:45
Balorho by the way my username on github is Belphemur17:46
jreeseI noticed ;)17:46
Balor(Hs : tomorrow ...  Mass effect 3 *-*) (Sorry waited so much for that xD)17:48
jreeseyeah, I'm waiting impatiently for my copy :P17:49
BalorBut as I read, it will be like Mass Effect 2, too bad for the RPG side ... but so good for the story :D17:50
BalorI'm so impatient the Rachni Queen that said to be on my side when the Reaper attack :D17:50
vBmBalor, paste me that cron line please :D17:51
BalorvBm you have to update the import.php first ^^17:51
vBmalready did17:52
Balorokay :D17:52
Balorthen :17:52
Balorcurl "http://bug.admincmd.com/plugin.php?page=Source/import&id=all&api_key=c50a95a703b4e3e2ea22a741"17:52
Balorwell by replacing adminCmd and my api key by yours --''17:52
vBmah, easy :)17:53
vBmthanks man17:53
BalorI put all as id, to update all the repo, saw that in the source :P17:54
vBmbeing that i have 5 repos in it ... freaking sweet17:59
BalorIf I have time I'll look in the github hook17:59
jreeseBalor: thanks17:59
Balorto understand how it's working, and how to made it work again17:59
jreeseyou probably  should log the value of payload, so that you can verify what's actually getting sent to the plugin18:00
vBmwould be great, thanks indeed18:00
BalorIt don't know how was the playload before, but they are using JSON now18:04
Baloras I can see here : http://help.github.com/post-receive-hooks/18:04
jreeseyeah, it's always been JSON, I just have a hunch that something changed about its structure or keys that's breaking things18:06
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)18:08
BalorTILT18:26
Balorthe parameter changed18:26
Balorno more repo_name18:26
Balordata18:26
Balorit's now only one parameter18:26
jreesebooo18:26
Balorpayload18:26
BalorThis is sent as a POST with a single parameter: ‘payload’18:26
Baloras POST18:26
Balorwhere can I change which parameters are needed by the page ?18:27
Balorit's automatic when using the gpc_ functions ?18:27
jreeseyeah18:28
jreeseif you pass a second (default value) param to gpc_get_*(), it won't error out if that value isn't given18:28
jreesewell, at least that's how I remember it working :P18:28
Balorokay I give a try :D18:29
BalorOkay I can made it work for a Post-Receive Hook18:37
Balorfor mantisBT I can't for now18:37
Balorit seems that github is not sending the api_key ...18:37
Balornot as api_key ...18:39
BalorOKAAAY :D18:44
Balorfound the bug18:44
BalorGithub18:44
Baloris never EVER sending the API_KEY18:44
Balorneither in post or in get18:45
jreesehmm, that's weird...18:45
BalorI parsed the 2 vars18:45
BalorI'm sure of that ...18:45
Balorif i'm not adding in get the api_key18:46
Balorthe page is not loaded18:46
Balorif I add it, the page is loaded, and then I got all the param18:46
Balorno api_key in the $_POST18:46
Balorjust the payload18:46
jreeseperhaps we need to open a bug report against the github-services repo?18:47
Balorshould be a good idea :)18:47
BalorI let you do it ^^18:47
jreesehttps://github.com/github/github-services/blob/master/services/mantis_bt.rb18:47
jreeseI don't really know Ruby too well, but that looks like it should be doing what we want it to18:48
jreeseie, page and api_key should be sent as query params, and payload should be sent as post18:48
Balorokay I try again18:49
Balorthe api_key is sended it's because I used the wrong url --''18:50
Balorbut the repo_name is not sended anymore18:50
BalorI'm trying to get it from the json18:50
BalorOkay I can make it work now :D18:53
Balorbut I need to know18:53
Balorjreese : what this line is for ? $t_predata = event_signal( 'EVENT_SOURCE_PRECOMMIT' );18:54
Balorbecause it's seems that other plugin are intercepting the informations18:55
jreesethat allows source plugins to look at the incoming data before processing it, mainly used so that plugins can help the framework know which type of VCS the incoming data is for18:55
jreeseyes, that's the point18:55
Balorokay ... but now they aren't working correctly.18:55
BalorI mean, the checkin receive information from that hook18:56
*** Joins: Paul_46 (~IceChat09@2001:470:9310:aaaa:c83a:82dd:1869:de82)18:56
Balorthat aren't good18:56
jreesebasically, the framework wouldn't know to route data from Github to the Github plugin, without letting all the plugins look at the incoming data beforehand so one of them can claim "ownership" of that data18:56
BalorOkaay now I understand :)18:57
Paul_46jreese; so you work for a games studio now?18:59
jreeseyep18:59
jreeseBioWare San Francisco18:59
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)19:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)19:00
Balorjreese : new pull request that "should" resolve the github hook issue :D19:07
Balorand all other hook that don't use repo_name19:07
jreeseawesome, I'll look at it in a bit19:07
Balorjust changed to not ask for the repo_name19:08
Balorspotted another bug in SourceGithub19:15
Balor$t_branch = $p_data['ref_name'];19:15
Balorref_name is not used anymore19:15
Balorit's just ref19:15
*** Quits: Paul_46 (~IceChat09@2001:470:9310:aaaa:c83a:82dd:1869:de82) (Quit: A day without sunshine is like .... night)19:17
Balorjreese : I can say it :D github hook REPAIRED :D19:25
jreesecongrats19:25
BalorI spotted all the bugs :) well only 2 repo_name that don't exist and ref_name replaced by refs :)19:26
Balor@vBm : you can now use the github hook :)19:29
Balorwell good night everybody ;)19:29
jreesethanks for the help Balor19:29
Balorno problem :) between open source dev, that's normal :)19:30
*** Quits: Balor (3eebcf9c@gateway/web/freenode/ip.62.235.207.156) (Quit: Page closed)19:33
*** Quits: Protogenes (~Protogene@cmnz-4db37660.pool.mediaWays.net) (Disconnected by services)22:09
*** Joins: Protogenes (~Protogene@cmnz-d9bab4dd.pool.mediaWays.net)22:10

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!