#metabrainz

/

      • BrainzGit
        [critiquebrainz] release v-2021-02-24.0 has been published by github-actions[bot]: https://github.com/metabrainz/critiquebrainz/re...
      • adk0971 has quit
      • [listenbrainz-server] mayhem opened pull request #1292 (master…add-mbid-mapping-to-labs-api): Add mbid mapping to labs api https://github.com/metabrainz/listenbrainz-serv...
      • alastairp
        !m _lucifer
      • BrainzBot
        You're doing good work, _lucifer!
      • _lucifer
        new version of cb has been released :D
      • atj
        *sigh* execute failed: ERROR: relation "cover_art_archive.index_listing" does not exist
      • _lucifer
        alastairp: should i update beta as well?
      • alastairp
        yeah, go for it
      • _lucifer
        done :D
      • ruaok
        yay, for releasing stuff on your first full day.
      • !m _lucifer
      • BrainzBot
        You're doing good work, _lucifer!
      • yvanzo
        alastairp: Sorry, it seems it cannot be implemented with consul-template 0.16 being used by LB containers, it does not support keyOrDefault either.
      • alastairp
        yvanzo: ok, no problem. I'll finish the consul-template 0.18 PR today and we'll release that too
      • yvanzo
        Only solution that worked for listenbrainz-websockets-test is to hardcode "rabbitmq-prince" in template for now.
      • alastairp
        thanks for folowing up the cause
      • yvanzo
        Hi roger_that, I can try to help you with if you provide more info please: raw log excerpt (please use pastebin or gist) and the output of "admin/configure show".
      • roger_that has quit
      • ruaok
        alastairp: quick question: where it the config.py file that is used by jenkins for testing?
      • alastairp
        ruaok: in LB? I think it's just copied from the example file
      • ruaok
        ah, ok.
      • alastairp
        just looking
      • ruaok
        thx
      • I see now -- one test fails because typescript expects an API key -- which key doesn't matter since the actual search call is mocked.
      • putting a garbage key in config.py.sample seems bad.
      • mocking the typesense setup call is doable, but also less good.
      • how would you solve this, alastairp ?
      • actually other config items set dummy keys too. I'll just do that for now.
      • alastairp
        right, so it's looking for config.TYPESENSE_KEY ?
      • yeah, I don't think there's a problem setting a dummy (or empty) value in config.py.sample
      • shivam-kapila
        We may fill it like we do for spotify token `typesense needs a non-empty key to run tests`
      • ruaok nods around himself
      • ruaok
        oh yes, I keep forgetting. MetaBrainz has dropbox for business for free.
      • if anyone would like to have a MeB dropbox account for free, its better equipped than a free account.
      • hit me up!
      • 🤣
      • _lucifer
        ruaok, i would like one :)
      • shivam-kapila
        ruaok: Will it be available to non team members 😅
      • ruaok
        sorry, no.
      • shivam-kapila
        np
      • CatQuest
        does Voluntary Project Leaders count? :D
      • ruaok
        I've just made it so that anyone with a @metabrainz.org address can ask to join the team automatically.
      • CatQuest: do you have a @meb addy?
      • CatQuest
        right on.
      • no ruaok :)
      • ruaok
        would you like one?
      • CatQuest
        uh. wow sure?
      • ruaok
        catcat@ ?
      • alastairp
        (I think I can hear the squee all the way over here in Spain)
      • CatQuest
        CatQuest pls
      • alastairp: :P
      • ruaok
        pm me the email address where I should send the invite.
      • shivam-kapila
        atj: whats your LB username?
      • outsidecontext
        _lucifer: congrats on your new job :D
      • ruaok
        ok https://github.com/metabrainz/listenbrainz-serv... is ready for review for anyone who has time.
      • I have one more endpoint to add, but I will do so in another PR, this one is large enough already.
      • _lucifer
        thanks outsidecontext!
      • atj
        shivam-kapila: atj
      • shivam-kapila
        gotcha thanks
      • atj
        Anyone seeing "Failed process was running: CREATE INDEX recording_idx_name ON recording (name);" when attempting to import the sample data into the docker db instance?
      • ruaok
        check diskspace?
      • atj
        unfortunately not - 932GiB free
      • ruaok
        are you trying for a clean DB import?
      • if you really want to full start over, consider removing the postgres volume.
      • atj
        yep, I've tried that and it happens again
      • exact same message
      • I've tried about 4 times now
      • ruaok
        yvanzo: ^^ any idea?
      • atj
        Docker on MacOS
      • using master on MB server and MB docker
      • shivam-kapila
        atj: I was able to reproduce your issue.
      • atj
        shivam-kapila: that's good :)
      • shivam-kapila
      • So the WS listen has quite much of redundant info like PRIVATE_KEYS SUPPORTED KEYS etc. Shall I nuke it too?
      • _lucifer
        shivam-kapila: fixing on the server-side?
      • shivam-kapila
        cleint side
      • client*
      • _lucifer
        👍
      • yvanzo
        atj: Never since this before, I ran it successfully again just on Monday.
      • BrainzGit
        [musicbrainz-server] atj opened pull request #1932 (master…MBS-10312-fix): MBS-10312: Fix tracking parameter removal in Firefox 44 https://github.com/metabrainz/musicbrainz-serve...
      • atj
        yvanzo: how often are the dumps generated?
      • yvanzo
        there was a new one this morning, I’m testing it
      • atj
        yvanzo: I'm using a sample by the way, not a full dump
      • yvanzo
        it's generated on every Wednesday and Saturday
      • ho, ok, sample dump is monthly generated, so it cannot the problem here.
      • +be
      • The index it fails to create has been added in 2013, it's not the problem either.
      • shivam-kapila
        Mr_Monkey: ping
      • Mr_Monkey
        pong
      • shivam-kapila
        Can you take a look at the gist I posted above
      • yvanzo
        atj: Is 932GiB free for your disk or the partition being used by Docker?
      • atj
        yvanzo: it's MacOS, so it's just one big FS
      • shivam-kapila
        Why do the unnecessary fields persist even after serialising it as a Listen in frontenf
      • yvanzo
        df -h $( sudo docker system info --format '{{.DockerRootDir}}' )
      • shivam-kapila
      • These fields are not declared in the Listen type
      • atj
        yvanzo: I'm using docker desktop so that doesn't work
      • I'll try on my Linux box and see if it happens there
      • yvanzo
        Ok, it could be helpful to watch your system resources when trying to run it on macOS.
      • atj
        The Docker prefs shows "Disk image size: 59.6 GB (16.2 GB used)"
      • Mr_Monkey
        shivam-kapila: TBH I think the cleaning up should be done server-side befoere sending through websockets. Where can I see the code you talk about in "even after serialising it as a Listen in frontend"?
      • I can see that track_metadata doesn't have recording_msid in the WS listen (it's instead one level up)
      • shivam-kapila
        its top level
      • and there are a lot of things like SUPPORTED_KEYS, date, dedup_tag etc which we dont need
      • Here we convert the ws message to listen
      • yvanzo
        I just ran it succesfully again (in a linux box).
      • Mr_Monkey
        That line does no transformation, it's just a typescript hint about what it should expect the type to be.
      • So as far as I know we don't transfrom or sanitize the arriving WS message
      • atj
        yvanzo: thanks appreciate you checking, it must be something on my side. I seem to spend more time battling with getting the docker instances working than actually doing any coding, so it's a bit frustrating!
      • shivam-kapila
        Mr_Monkey: oh okay my bad. Is there a better way to discard these unnecessary keys rather than deleting them individually
      • Mr_Monkey
        That should be done server-side to avoid sending a whole bunch of data we don't need
      • and also to fix the original issue which is the misplaced recording_msid key
      • shivam-kapila
        okay. IIRC ruaok had some concerns about doing this server side when _lucifer was onto it.
      • _lucifer
        that was the original intent. but it adds another serializing/deserializing step so it was decided to do on the client side
      • shivam-kapila
        Imo we can move the recording_msid to the required position and add a comment that ws message contains a lot of unnecessary info. Does this sound okay?
      • _lucifer
        it is intended to use protobuf or some other solution and then do this server side
      • shivam-kapila
        _lucifer: how does the above solution sound to you?
      • _lucifer
        shivam-kapila: sounds good to me. but Mr_Monkey might have a better solution
      • Mr_Monkey
        Can't really think of anything better to do if we don't want to handle it server-side.
      • We're already deserializing so there's that.
      • shivam-kapila
        okay. I will add a comment till then and also add a test for moving keys in the ws message
      • atj
        Is JSON sent over the WS connection?
      • _lucifer
        yes
      • shivam-kapila
        yep
      • atj
        So you're instantiating an object from JSON sent by via WS?
      • s/by//
      • alastairp
        atj: did you sort out the docker+mac issue?
      • atj
        alastairp: no not yet
      • alastairp
        I've seen errors importing the full MB database before when the docker machine didn't have enough memory allocated to it
      • that is, shared buffers * 4 was > memory allocated to docker VM
      • atj
        alastairp: I left it for a while to reduce the risk of me throwing my Macbook out of the window :)
      • alastairp: thanks, good point, I've bumped the memory up to 5GB
      • shivam-kapila
        > So you're instantiating an object from JSON sent by via WS?
      • atj: yeah
      • atj
        shivam-kapila: on that line you linked to you have "json as Listen', where is the JS Listen object defined? (sorry might be a stupid question)
      • yvanzo
      • shivam-kapila
        atj: the listen typescript type is declared here: https://github.com/metabrainz/listenbrainz-serv...
      • atj
        yvanzo: sorry no I didn't. I never ran into any memory issues in Docker on Linux so I didn't think about it.
      • shivam-kapila: thanks :) just trying to understand how the JS side of things work.
      • yvanzo
        atj: No worry, it is normally not needed to create database, but maybe it will unblock something on your macOS, or not.
      • atj
        yvanzo: the sample import just completed without error. Please accept my apologies for wasting your time! *embarrassed*
      • thanks for the tip alastairp
      • Arlo joined the channel
      • arlo_ joined the channel
      • arlo_ has left the channel