#musicbrainz-devel

/

      • warp
        /tmp/input.xml:1:86: error: element "tag-list" not allowed here; expected the element end-tag, element "artist", "artist-list", "label", "label-list", "release", "release-group", "release-group-list", "release-list", "track" or "track-list" or an element from another namespace
      • 2011-04-14 10459, 2011

      • ocharles
        and that passes here...
      • 2011-04-14 10408, 2011

      • warp
        ii jing 20091111-3 RELAX NG validator
      • 2011-04-14 10416, 2011

      • warp
        do you have a different jing?
      • 2011-04-14 10416, 2011

      • ocharles
        920c3c63ba6413329b6187964b448884272c93128bfd28518f2ab8d36c7baea3 mmd-schema/schema/musicbrainz_mmd-1.4.rng
      • 2011-04-14 10430, 2011

      • ocharles
        Jing version 20030619
      • 2011-04-14 10435, 2011

      • ocharles
        2003?!
      • 2011-04-14 10442, 2011

      • alastairp
        if it aint broke....
      • 2011-04-14 10446, 2011

      • ocharles
        heh
      • 2011-04-14 10458, 2011

      • ocharles
        warp: let me see what unstable has for it
      • 2011-04-14 10405, 2011

      • ocharles
        2003 is the only version in gentoo's repos it seems
      • 2011-04-14 10419, 2011

      • warp
        well, you have java already
      • 2011-04-14 10428, 2011

      • ocharles
        i'm just making a quick 2009 ebuild
      • 2011-04-14 10428, 2011

      • warp
        it's easy to just unpack and run from there
      • 2011-04-14 10453, 2011

      • ocharles
      • 2011-04-14 10457, 2011

      • warp
      • 2011-04-14 10421, 2011

      • ocharles
        ta
      • 2011-04-14 10421, 2011

      • warp
        16:15 warp [at bullet-bill]:~/opt/jing-20091111$ java -jar bin/jing.jar ~/code/mmd-schema/schema/musicbrainz_mmd-1.4.rng /tmp/input.xml
      • 2011-04-14 10445, 2011

      • warp
        (same result obviously, as that is the version in debian)
      • 2011-04-14 10436, 2011

      • warp
        ocharles: anyway, XML::LibXML::RelaxNG should be using libxml2. is that a different version then too?
      • 2011-04-14 10428, 2011

      • ocharles
        I have dev-libs/libxml2-2.7.8 and dev-perl/XML-LibXML-1.70
      • 2011-04-14 10427, 2011

      • warp
        I also have 2.7.8
      • 2011-04-14 10419, 2011

      • warp
        XML::LibXML is up to date (1.70).
      • 2011-04-14 10438, 2011

      • warp
        so it's quite odd that we also get different results from ws_test.
      • 2011-04-14 10443, 2011

      • ocharles
        yea...
      • 2011-04-14 10400, 2011

      • ocharles
        and you have the same sha for the schema as above?
      • 2011-04-14 10423, 2011

      • warp
        16:20 warp [at bullet-bill]:~/code$ sha256sum mmd-schema/schema/musicbrainz_mmd-1.4.rng
      • 2011-04-14 10426, 2011

      • warp
        f17f1bf166bc84b1d30d3480301cb47c9546710ea3137b5b11d9d8b27f6d819e mmd-schema/schema/musicbrainz_mmd-1.4.rng
      • 2011-04-14 10429, 2011

      • warp
        so, no
      • 2011-04-14 10439, 2011

      • ocharles
        that's what mbtest has too
      • 2011-04-14 10442, 2011

      • ocharles
        (f17)
      • 2011-04-14 10450, 2011

      • ocharles
        svn up?
      • 2011-04-14 10453, 2011

      • warp
        you have local modifications?
      • 2011-04-14 10459, 2011

      • ocharles looks
      • 2011-04-14 10406, 2011

      • ocharles
        haha
      • 2011-04-14 10412, 2011

      • ocharles
        + </optional>
      • 2011-04-14 10414, 2011

      • ocharles
        :)
      • 2011-04-14 10417, 2011

      • warp
        there we go :)
      • 2011-04-14 10421, 2011

      • ocharles
        so... this now begs the question
      • 2011-04-14 10424, 2011

      • ocharles
        should they be there?
      • 2011-04-14 10434, 2011

      • ocharles
        as this is ws/1, i'm assuming ws/1 already returns this xml
      • 2011-04-14 10405, 2011

      • warp
        if the mason ws/1 is not in line with the current schema I do not object to updating the schema
      • 2011-04-14 10414, 2011

      • warp
        (assuming the changes make sense)
      • 2011-04-14 10418, 2011

      • ocharles
        the changse just allow tag-list and user-rating as direct children of <metadata>
      • 2011-04-14 10412, 2011

      • ocharles
        http://musicbrainz.org/ws/1/tag/?type=xml&ent… has <metadata><tag-list> so I think my changes are justifable
      • 2011-04-14 10441, 2011

      • warp
        agreed.
      • 2011-04-14 10416, 2011

      • warp
        so commit your schema changes, then we can update mbtest and those two tests should pass.
      • 2011-04-14 10418, 2011

      • ocharles
        done! time to run master and tests and we could see a green light!
      • 2011-04-14 10432, 2011

      • warp
        Updated to revision 12968.
      • 2011-04-14 10441, 2011

      • ocharles
        great
      • 2011-04-14 10446, 2011

      • ocharles
        you running them or am I?
      • 2011-04-14 10453, 2011

      • warp
        I can run them.
      • 2011-04-14 10428, 2011

      • ocharles
        gogogo
      • 2011-04-14 10438, 2011

      • ocharles
        nikki: ngs has new data
      • 2011-04-14 10445, 2011

      • warp
        running. ofcourse that takes ages nowadays with those selenium tests. quite a workout for hobbes.
      • 2011-04-14 10453, 2011

      • ocharles
        heh, yea
      • 2011-04-14 10415, 2011

      • ocharles
        we should be able to switch 'test.mb' to point to the ngs servers soon I think
      • 2011-04-14 10421, 2011

      • ocharles
        though I'm not sure what rob's plan is there
      • 2011-04-14 10433, 2011

      • warp
        I think we keep test as is.
      • 2011-04-14 10442, 2011

      • ocharles
        well test runs next, ngs runs master
      • 2011-04-14 10446, 2011

      • ocharles
        but ngs is where the testing should take place, oddly
      • 2011-04-14 10455, 2011

      • warp
        we need a test server to test changes after ngs release anyway, I see no need to move that subdomain name somewhere else.
      • 2011-04-14 10403, 2011

      • ocharles
        yea, true
      • 2011-04-14 10432, 2011

      • warp
        functionality changes can still be tested on test. we just need performance testing on ngs.
      • 2011-04-14 10441, 2011

      • warp
        ideally, ngs should only run master IMO.
      • 2011-04-14 10447, 2011

      • ocharles
        yep, agreed there
      • 2011-04-14 10453, 2011

      • ocharles
        ngs is also failing all the performance tests atm
      • 2011-04-14 10412, 2011

      • warp
        I glimpsed some of the discussion with rob on that.
      • 2011-04-14 10417, 2011

      • warp
        but didn't follow it closely.
      • 2011-04-14 10419, 2011

      • ocharles
        t'aint looking too good right now
      • 2011-04-14 10437, 2011

      • warp
        any idea where the trouble is?
      • 2011-04-14 10408, 2011

      • ocharles
        not really at the moment, I'm about to start doing some profiling
      • 2011-04-14 10414, 2011

      • warp
        ah, ok
      • 2011-04-14 10452, 2011

      • ocharles
        warp: are the tests still running?
      • 2011-04-14 10455, 2011

      • ocharles
        there's a report at 44%
      • 2011-04-14 10402, 2011

      • warp
        yes, still running.
      • 2011-04-14 10412, 2011

      • ocharles
        ok, that might have been me
      • 2011-04-14 10416, 2011

      • ocharles removes that report
      • 2011-04-14 10449, 2011

      • warp
        yay! 100%
      • 2011-04-14 10410, 2011

      • ocharles
        sigh, devel-nytprof isn't installed on the new servers so I can't profile there
      • 2011-04-14 10437, 2011

      • ocharles
        i wonder if hobbes can access totoro
      • 2011-04-14 10406, 2011

      • warp does not know.
      • 2011-04-14 10407, 2011

      • ocharles
        shoot, hobbes can't even ping it
      • 2011-04-14 10455, 2011

      • warp
        that doesn't necessarily mean that other kinds of traffic are also not allowed.
      • 2011-04-14 10408, 2011

      • warp
        (depends on how paranoid djce is ;)
      • 2011-04-14 10402, 2011

      • ocharles
        true :) but psql can't connect to it either
      • 2011-04-14 10454, 2011

      • djce
        64 bytes from totoro.localdomain (10.1.1.19): icmp_req=1 ttl=64 time=17.4 ms
      • 2011-04-14 10455, 2011

      • djce
        64 bytes from totoro.localdomain (10.1.1.19): icmp_req=2 ttl=64 time=0.214 ms
      • 2011-04-14 10459, 2011

      • djce
        orly?
      • 2011-04-14 10428, 2011

      • ocharles
        hrm
      • 2011-04-14 10412, 2011

      • ocharles
        --- 10.1.1.9 ping statistics ---
      • 2011-04-14 10420, 2011

      • ocharles
        what the hell djce, you mean I have to ping the RIGHT address too?
      • 2011-04-14 10444, 2011

      • ocharles puts the dunce hat on
      • 2011-04-14 10439, 2011

      • warp suggests 'echo search localdomain >> /etc/resolv.conf' for all our servers.
      • 2011-04-14 10404, 2011

      • djce
        There is a ".mb" domain for lazy typers.
      • 2011-04-14 10416, 2011

      • djce
        hobbes.mb, etc.
      • 2011-04-14 10431, 2011

      • warp
        ah
      • 2011-04-14 10438, 2011

      • hawke_ joined the channel
      • 2011-04-14 10430, 2011

      • ocharles
        warp: ah, good news, ish. if I do time curl "http://127.0.0.1:3000/ws/1/release/138b9e89-e4f0-4bed-99fe-6a963728a292?type=xml&inc=tracks+puids+artist+release-events+labels+isrcs+artist-rels+release-rels+url-rels" on astro, it takes 0.00s, ie - blazingly fast
      • 2011-04-14 10446, 2011

      • MBChatLogger
      • 2011-04-14 10446, 2011

      • ocharles
        but if I do it from my machine to ngs.mb.org, it takes 0.6s
      • 2011-04-14 10408, 2011

      • ocharles
        so it seems for some reason there's more overhead to actually transport the request from server to client for ngs.mb, rather than the normal mb servers
      • 2011-04-14 10417, 2011

      • nikki giggles
      • 2011-04-14 10433, 2011

      • nikki
        thunderbird thinks that profiling script commit is an email scam
      • 2011-04-14 10439, 2011

      • ocharles
        haha
      • 2011-04-14 10428, 2011

      • warp
        ocharles: oh, interesting!
      • 2011-04-14 10455, 2011

      • ocharles
        however, even if I compare the time to do a request to localhost and compare against the logs it still loses
      • 2011-04-14 10413, 2011

      • ocharles
        i guess the next step could be to try and do the tests against an internal catalyst server
      • 2011-04-14 10432, 2011

      • ocharles
        but however you swing it, ngs ws/1 is looking slower
      • 2011-04-14 10453, 2011

      • ocharles
        I timed the portion of /ws/1/release/lookup doing a request and it's about 50/50 for time spent fetching data, and time spent rendering the xml
      • 2011-04-14 10404, 2011

      • ocharles
        it looks like rendering my be the bottleneck
      • 2011-04-14 10417, 2011

      • warp
        real 0m0.084s
      • 2011-04-14 10423, 2011

      • warp
        (from hobbes to ngs.m.o)
      • 2011-04-14 10437, 2011

      • ocharles
        oh, i was reading the wrong time too, which doesn't help :)
      • 2011-04-14 10417, 2011

      • warp
        ocharles: well, we are rendering it properly now. I wouldn't be surprised if that is a bit slower compared to concatenating strings.
      • 2011-04-14 10425, 2011

      • ocharles
        yea
      • 2011-04-14 10440, 2011

      • ocharles
        there's gonna be a overhead from just calling a perl subroutine
      • 2011-04-14 10448, 2011

      • ocharles
        maybe rob will be interested in how much slower it is
      • 2011-04-14 10414, 2011

      • ocharles
        is an example of how ngs is slower, in this case by ~0.06s
      • 2011-04-14 10452, 2011

      • warp
        aka a 50% increase for that particular scenario.
      • 2011-04-14 10437, 2011

      • ocharles
        almost, yea
      • 2011-04-14 10415, 2011

      • warp
        on equivalent hardware?
      • 2011-04-14 10421, 2011

      • ocharles
        on better hardware
      • 2011-04-14 10437, 2011

      • warp
        so the actual difference could be much larger
      • 2011-04-14 10458, 2011

      • warp
        i.e. our code could be taking twice as long
      • 2011-04-14 10422, 2011

      • ocharles
        i mean it's that difference when I run the tests comparing the current solution, to the solution we will deploy in the future
      • 2011-04-14 10437, 2011

      • warp
        yeah.
      • 2011-04-14 10442, 2011

      • warp
        but if that hardware is much beefier, we may be able to find and fix some issues.
      • 2011-04-14 10408, 2011

      • ocharles
        my attempt at briefly profiling it didn't really show any single hotspot
      • 2011-04-14 10456, 2011

      • warp
        how would I go about get a cachegrind file for such a /ws/1 request?
      • 2011-04-14 10403, 2011

      • warp
        s/get/getting/
      • 2011-04-14 10404, 2011

      • ocharles
        I'll send you the nytprof file
      • 2011-04-14 10447, 2011

      • ocharles
        warp: htt://ocharles.org.uk/tmp/nytprof.out
      • 2011-04-14 10453, 2011

      • ocharles
      • 2011-04-14 10406, 2011

      • ocharles
        you'll need to run that through nytprofcg to get a cache grind file
      • 2011-04-14 10414, 2011

      • ocharles
        (part of Devel::NYTProf)
      • 2011-04-14 10430, 2011

      • ocharles
        I have been preferring to use nytprofhtml and reading the html reports though
      • 2011-04-14 10405, 2011

      • warp
        makes sense, kcachegrind is a bit confusing.
      • 2011-04-14 10418, 2011

      • warp
        (but i'm somewhat used to it)
      • 2011-04-14 10445, 2011

      • warp installs Devel::NYTProf
      • 2011-04-14 10411, 2011

      • warp
        Profile data incomplete, inflate error -5 ((null)) at end of input file, perhaps the process didn't exit cleanly or the file has been truncated (refer to TROUBLESHOOTING in the documentation)
      • 2011-04-14 10444, 2011

      • ocharles
        hrm, dunno what to do about that
      • 2011-04-14 10449, 2011

      • ocharles
        try the html reports
      • 2011-04-14 10425, 2011

      • warp
        same thing.
      • 2011-04-14 10451, 2011

      • ocharles
        ok, time to reprofile
      • 2011-04-14 10404, 2011

      • warp
        did the file upload correctly? it's only 307 bytes.
      • 2011-04-14 10413, 2011

      • warp
        fbfb66d5e8397743ce171e32ef78b5549d3dbc869e8245f71152b702383d58cf nytprof.out
      • 2011-04-14 10449, 2011

      • ocharles
        redownload and try that one
      • 2011-04-14 10402, 2011

      • ocharles
        (still uploading, oops) :)
      • 2011-04-14 10425, 2011

      • warp waits until ocharles says go