Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-05-24

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 SineSwiper joined #metacpan
00:24 metacpan joined #metacpan
00:24 metacpan [cpan-api01] rwstauner pushed 3 new commits to master: http://git.io/y58jlw
00:25 metacpan cpan-api/master 61b7fa6 Randy Stauner: Limit the places test port 9900 is repeated
00:25 metacpan cpan-api/master b6ce0c6 Randy Stauner: Test that SIGNATURE matching /^=\w/ isn't pod
00:25 metacpan cpan-api/master 0973df1 Randy Stauner: Fix elusive SIGNATURE has pod bug...
00:25 metacpan left #metacpan
00:25 dipsy [ Comparing bcf0c9e62dea...0973df1252a3 · CPAN-API/cpan-api · GitHub ]
00:26 SineSwiper rwstauner: why do we look for POD in strange places, anyway?
00:26 SineSwiper if it's not .pod or .pm, don't bother
00:27 rwstauner what about bin/ scripts ?
00:27 rwstauner also, some people use pod for thins like Changes or README or other files like that
00:27 SineSwiper hmmm, weird, I was going to say to use META information for the bin/ scripts, though
00:28 rwstauner it isn't that we expect all files to have pod, this one just happened to slip through the rules as a bug
00:28 rwstauner what META info would you use?
00:28 rwstauner is there any mention of scripts in the META files?
00:28 rwstauner that is, of course, for dists that ship META files
00:28 SineSwiper oh geesh, I guess those still exist, ugh
00:29 rwstauner that was a serious question though... is there META info about scripts?  i'm not aware, or at least can't think of it
00:29 SineSwiper I thought there was... I'll check CPAN
00:29 rwstauner but sadly yes, there are lots of dists that aren't well-formed
00:31 SineSwiper I was thinking of 'provides', but not even CPAN (the module) has it
00:32 SineSwiper rwstauner: any idea why this would be lacking a bug hash? http://api.metacpan.org/v0/dis​tribution/Dist-Zilla-TravisCI
00:33 rwstauner all of my dists ship provides in the meta (thanks to dzil) but i don't think they include bin scripts, i think just the .pm files
00:33 rwstauner off the top of my head no.  first thing i'd check is if the cron job has been run recently
00:34 rwstauner beyond that i'd have to look up the code for how that happens
00:34 SineSwiper well, it's been out there for a while
00:34 rwstauner i see
00:34 SineSwiper lemme look at Tickets
00:34 rwstauner but there have been some recent changes related to bug indexing
00:34 SineSwiper since I now have this fancy VBox
00:34 rwstauner so i'd have to check and make sure that stuff is working right
00:35 rwstauner are closed issues supposed to be indexed?
00:35 SineSwiper yeah
00:35 rwstauner did you already make a gh issue for this?
00:35 SineSwiper not yet, just noticed it this morning
00:35 rwstauner that would be a good thing to do
00:35 rwstauner oh ok
00:35 rwstauner i recall seeing it in irc log but didn't realize that was only this morning :-)
00:35 SineSwiper I plan on putting out a PR for some extra data in Ticket, anyway
00:36 SineSwiper I can troubleshoot it then
00:36 rwstauner :-)
00:40 SineSwiper shoot, might as well dive into that now; it's my one dependency to getting this vitality score out the door
00:41 SineSwiper are you aware of any other ticket systems used besides RT and Github?
00:41 rwstauner i am not
00:43 rwstauner SineSwiper: https://api.github.com/repos/SineSwiper/​Dist-Zilla-TravisCI/issues?per_page=100
00:43 rwstauner empty
00:43 SineSwiper https://github.com/SineSwiper/Dist-Zilla​-TravisCI/issues?page=1&state=closed
00:43 dipsy [ Issues · SineSwiper/Dist-Zilla-TravisCI · GitHub ]
00:44 rwstauner oh, nm,  that url may not be used anymore
00:44 * rwstauner curses
00:45 rwstauner not sure about that yet... if it isn't now then it never was
00:49 SineSwiper I'm actually trying to run the cronjob, but I can't find the cronjob
00:49 SineSwiper I heard it was out of date?
00:50 SineSwiper on the repo
00:50 trs SineSwiper: `bin/metacpan tickets`
00:53 rwstauner SineSwiper: https://github.com/CPAN-API/cpan-api/blob/​master/lib/MetaCPAN/Script/Tickets.pm#L78
00:53 dipsy [ cpan-api/lib/MetaCPAN/Script/Tickets.pm at master · CPAN-API/cpan-api · GitHub ]
00:53 rwstauner it is supposed to get closed
00:53 rwstauner but i have no idea how Pithub works
00:53 SineSwiper yeah, I'm about to find out, anyway
00:54 SineSwiper though, I think I might have deps and/or perl location problems with the VBox
00:54 SineSwiper bin/metacpan couldn't find Class::MOP, and I could have swore I already did a install_modules
00:56 SineSwiper https://gist.github.com/Sine​Swiper/03109696b9bce3ee1db7
00:56 dipsy [ gist:03109696b9bce3ee1db7 ]
00:57 SineSwiper trs: looks like bin/metacpan is looking for it on standard Perl and install_modules is putting it into a perlbrew
00:58 trs so change the shebang, or run perl bin/metacpan
00:59 SineSwiper oh, cron.d has a specific PATH to isolate that
01:19 sue joined #metacpan
01:31 SineSwiper blah, I might be getting hit by something similar to this bug: https://github.com/CPAN-API/cpan-api/issues/266
01:31 dipsy [ doesn't work with ES 0.90 · Issue #266 · CPAN-API/cpan-api · GitHub ]
01:32 SineSwiper curl http://127.0.0.1:9200/cpan/release/_search -> {"error":"IndexMissingException[[cpan] missing]","status":404}
02:04 oalders SineSwiper: source ~/.metacpanrc on the box if PATH is a problem
02:04 SineSwiper nah, figured that one out
02:04 oalders i'm late to the party :)
02:04 SineSwiper I'm just going through the cpan-api install wiki page first
02:05 oalders good stuff
02:05 SineSwiper I guess I thought the VBox would have everything pre-loaded
02:05 oalders the box is still a work in progress
02:05 oalders but it's mostly there
02:05 SineSwiper no worries, happy to test it out
02:05 oalders SineSwiper++
02:06 SineSwiper there we go, _status gives me better output
02:06 SineSwiper really, I just needed a 'bin/metacpan mapping --delete' first
02:08 oalders right. feel free to tidy up any docs you think are lacking
02:08 SineSwiper yeah, I'll keep some notes
02:08 SineSwiper it's mostly around me not poking around the wiki docs, though
02:08 oalders :)
02:23 SineSwiper rwstauner: http://developer.github.com/v3/iss​ues/#list-issues-for-a-repository
02:23 dipsy [ Issues | GitHub API ]
02:23 SineSwiper state defaults to open, no closed
02:24 SineSwiper I'll grab both
03:02 Kovensky joined #metacpan
03:54 preflex_ joined #metacpan
04:02 Kovensky joined #metacpan
04:25 Amrita joined #metacpan
04:31 Kovensky joined #metacpan
04:46 alnewkirk joined #metacpan
04:52 ether_ joined #metacpan
06:32 Mike-PerlRecruiter_ joined #metacpan
06:42 ecocode joined #metacpan
06:44 bouncy joined #metacpan
06:48 dpetrov_ joined #metacpan
09:13 tobyink joined #metacpan
09:16 tobyink For metacpan GET searches, is there any way to apply aggregates? e.g. instead of getting back a list of foo, get back a count of foo?
09:19 ranguard http://explorer.metacpan.org/ has a 'size of CPAN' example, but that's a POST
09:19 dipsy [ MetaCPANExplorer ]
09:21 tobyink ElasticSearch documentation suggests "_count" instead of "_search" in the URL, but this 404s.
09:21 ranguard sorry my ES foo is weak
09:22 tobyink I should also add, that I don't want a single count; given a CPANID, I want a list of all their distributions, with a count of ++ for each one. (Distributions with 0 can be omitted.)
09:23 tobyink I think I'll probably just stick to getting back each ++, and aggregate the data at client side, because I can't imagine anybody getting more than 5000 ++s in the near future.
09:24 * ranguard suggests open a ticket in https://github.com/CPAN-API/metacpan-examples as a request for this to be an example :)
09:25 ranguard out of interest why GET and not POST?
09:41 tobyink just adding it to an existing script that already uses GET for everything and too lazy^H^H^H^H^H much of a fan of consistency to add a POST.
09:44 ranguard heh
12:05 Mithaldu joined #metacpan
12:19 Mithaldu joined #metacpan
12:53 SineSwiper ugh, $self->index->type('release')->scroll->total is still giving me zero
12:56 SineSwiper I think part of the problem is that none of these /home/metacpan crons appear to be running
13:45 meraxes joined #metacpan
14:01 Mithaldu joined #metacpan
14:04 Kovensky joined #metacpan
14:10 dolmen joined #metacpan
14:19 Kovensky joined #metacpan
14:39 Amrita left #metacpan
15:30 rwstauner tobyink: i'm not sure how your queries would like (and therefore, if this applies) but one way to get counts for ES is with "facets"
15:30 rwstauner s/would like/would look/
15:40 oalders to me, GET seems painful for anything but the simplest queries
15:52 rwstauner me as well
16:10 dpetrov_ joined #metacpan
16:18 ilmari_ joined #metacpan
17:41 thaljef1 joined #metacpan
18:58 tobyink joined #metacpan
19:03 meraxes joined #metacpan
19:31 dpetrov_ joined #metacpan
20:16 ecocode joined #metacpan
20:45 ecocode joined #metacpan
21:16 castaway joined #metacpan
23:35 mo rwstauner: you can keep the --latest even if its not the latest dist
23:35 mo rwstauner: --status latest, however, will force the status to latest
23:36 rwstauner ok
23:36 rwstauner what does the --latest flag do?
23:36 mo reads 02packages
23:36 mo to decide whether its latest or not
23:36 rwstauner oh, ok
23:36 mo also --detect_backpan if you are indexing backpan dists
23:37 rwstauner ok

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary