#metabrainz

/

      • akshat
        I finally added a barcode scanner to the upcoming work of mb!!
      • peterhil has quit
      • legoktm[m] has quit
      • legoktm[m] joined the channel
      • reosarevok
        Haven't seen any reports of serious issues with beta, so I'll release
      • peterhil joined the channel
      • antlarr joined the channel
      • Updating beta (just new translations)
      • Updating main servers
      • Huh
      • zas / yvanzo: "ssh: Could not resolve hostname paco_mb.metabrainz.org: Name or service not known"
      • Any idea what's with that? When trying to release MB
      • I updated my ssh config based on the automatic docker-server-configs script and whatnot
      • Etua joined the channel
      • Is this an error in docker-server-configs?
      • lucifer
        reosarevok: i think it should be paco.metabrainz.org . which script is this?
      • texke has quit
      • texke joined the channel
      • Etua has quit
      • Etua1 joined the channel
      • Etua1 is now known as Etua
      • trolley has quit
      • trolley joined the channel
      • reosarevok
      • Seems connected to this zas commit https://github.com/metabrainz/docker-server-con...
      • lucifer
        yeah, that paco_mb.sh looks unusual to me. it should probably be removed but best to wait for zas to confirm.
      • zas
        oh, it shouldn't have been committed
      • djinni`_ has quit
      • removed
      • that said, it shouldn't create problems, what if we want to add extra scripts (like a common script to be included in others) in this directory? Which script is relying on all scripts on this structure?
      • lucifer
        reosarevok mentioned generate_ssh_config.sh. it looks like it is https://github.com/metabrainz/docker-server-con...
      • djinni` joined the channel
      • ruaok: monkey: alastairp: any PRs to merge? I have a bug fix to deploy.
      • also moin!
      • yvanzo
        mo’’in’
      • akshat
        moin!
      • lucifer when do we play to release huesound? Asking since we need the frontend tests added
      • Plan^
      • If the rest of the work is done and only this remains, I think I could put it on high priority
      • lucifer
        whenever its ready. iiuc only tests are remaining before submitting the PR for review.
      • akshat
        Sounds nice. I'll try to proceed on it today as much as I can
      • ruaok
        I hope to finish the huesound tests today.
      • Are there PRs i should review before you release?
      • I have time set aside for that this morning.
      • lucifer
        oh nice, there are quite a few open. let's trim those down.
      • also, i'd like a comment on this PR from both you and alastairp https://github.com/metabrainz/listenbrainz-serv...
      • there's also 1629 and 1632. alastairp reviewed 1629 and 1632 is similar so i think he can probably do those but feel free to give a review.
      • ruaok
        year, the list if a bit loong now.
      • #1639 looks ok, but honestly my spark SQL is pretty crap.
      • I trust you've sufficiently tested it?
      • lucifer
        yes, i had generated a batch of stats with it and it looked fine.
      • BrainzGit
        [listenbrainz-server] 14amCap1712 merged pull request #1666 (03master…fix-privacy-policy-crash): Remove unused flask route - /privacy https://github.com/metabrainz/listenbrainz-serv...
      • [listenbrainz-server] 14amCap1712 merged pull request #1676 (03master…invalid-listen-count): LB-982: User page does not load because of borked listen counts https://github.com/metabrainz/listenbrainz-serv...
      • [listenbrainz-server] 14amCap1712 merged pull request #1674 (03master…invalid-user-api): LB-978: API should return 404 for non-existing user https://github.com/metabrainz/listenbrainz-serv...
      • [listenbrainz-server] 14amCap1712 merged pull request #1639 (03master…optimize-listening-activity): LB-643: Simplify listening activity query https://github.com/metabrainz/listenbrainz-serv...
      • ruaok
        on 1652, the duplication of the user_name/user_id is part of maintaining backward compatibility?
      • lucifer
        yes
      • ruaok
        backward compatibility with... what? people who have the page open and are receiving info?
      • monkey
        Moin!
      • ruaok
        moooin!
      • lucifer
        there are two issues: 1) The normal listens have a user_name field in each item in listens array. in the PR, I have added "user_name" field to the item inside the array as well for consistency with the normal listens. the rationale is that this make frontend code less error prone, we have had a couple of bugs in the last few weeks around playing now listens which were caused due to missing fields (either due to ws or such stuff).
      • monkey
        I have a quick fix I need to make a PR for
      • lucifer
        the outer "user_id" field is not removed because of backward compat
      • ruaok
        backwards compat with what?
      • lucifer
        the endpoint already used to send that field so some client might be depending on it being present there.
      • ruaok
        a websockets client or a random API client?
      • lucifer
        api client.
      • sorry the PR is misnamed, its not about only WS.
      • i'll split it into two: one for api change and another WS change.
      • ruaok
        don't worry about it. its fine.
      • I'm just trying to understand why we really need the duplicate key there at all.
      • lucifer
        ah ok. we actually do it with the normal listens endpoint too https://api.listenbrainz.org/1/user/amCap1712/l...
      • ruaok
        if it is only in websocket responses, then the only backward compatibility will be with users who have the page open right now, right?
      • lucifer
        yes right.
      • ruaok
        but those will be broken by updating the container, so users will need to reload, which then means all clients have been updated.
      • which means we dont need the duplicate.
      • lucifer
        right.
      • ruaok
        (other than for consistency sake)
      • lucifer
        the issue is this in api response too.
      • ruaok
        yes, understaood. those will be harder to clean up and that is not the point of this PR.
      • I guess my question is this: if there is no real need for backward compatibility, why add a duplicate key for consistency, when we should be cleaning up the API endpoint?
      • perhaps we should decide what we what things to look like in the future and aim for that, rather than consistency that is duplicative.
      • ruaok is really not trying to be a pain in theass
      • lucifer
        makes sense. hah don't worry. this is what i want to get the advice on, consistency now and cleanup at once later or clean what we can now and leave some inconsistency.
      • reosarevok
        zas, lucifer: thanks, worked fine now :)
      • ruaok
        My take: design for the future and aim for consistency for that. accepted some inconsistencies for the moment.
      • reosarevok
        zas: if the scripts shouldn't assume those things, then we should mark stuff in some way, because the update_containers script we use for deploying MB also depends on docker-server-configs
      • yvanzo would know more since IIRC he wrote it
      • lucifer
        sounds good.
      • zas
        reosarevok: I'm fixing the script, in progress
      • Etua has quit
      • ruaok
        lucifer: does that mean you adjust the PR a bit, then we merge and release?
      • ruaok could use the moment to move to the office
      • lucifer
        i think this PR can wait then. we release others.
      • ruaok
        ok, sounds good.
      • reosarevok
        zas: there's also https://github.com/metabrainz/musicbrainz-serve... but I guess we can adjust that as needed
      • ruaok
        I'll deal with BS matters for the day and then try to get some huesound tests in.
      • BrainzGit
        [listenbrainz-server] 14amCap1712 merged pull request #1665 (03master…primitive-release-submitter): AISOTT: Adding rough version of release submitter https://github.com/metabrainz/listenbrainz-serv...
      • ruaok
        after the release you could start reviewing the huesound PR. should mostly be missing tests for now. perhaps a couple of TODO cleanups.
      • BrainzGit
        [listenbrainz-server] 14MonkeyDo opened pull request #1677 (03master…monkey-brainzplayer-event): Use correct BrainzPlayer event key https://github.com/metabrainz/listenbrainz-serv...
      • lucifer
        sure will do
      • monkey
        I'd like to merge this PR before the release lucifer :)
      • lucifer
        sure, no hurry.
      • reviewing it.
      • monkey
        Glaring mistakes in a previous PR of mine…
      • reosarevok
        yvanzo: anything for this musicbrainz-docker release?
      • lucifer
        monkey: approved.
      • monkey
        🎉
      • lucifer
        i see they made MessageEvent generic in ts 4 so that might help in future.
      • monkey
        OK, let's merge this quick before everyone realizes it's broken 😅
      • Yeah, definitely need typing on that, but couldn't figure it out at the time
      • yvanzo
        zas: For two years, MB deployment scripts retrieve hosts/containers by listing/parsing files under "scripts/nodes/". Before that, it was hard-coded in MBS repo which had to be synchronized with docker-server-configs repo. We can document the current structure in a README.md file and stick to it, or have another (duplicate) structure dedicated to that.
      • BrainzGit
        [listenbrainz-server] 14MonkeyDo merged pull request #1677 (03master…monkey-brainzplayer-event): Use correct BrainzPlayer event key https://github.com/metabrainz/listenbrainz-serv...
      • lucifer
        👍, the calendar height one also looks good
      • BrainzGit
        [listenbrainz-server] 14MonkeyDo merged pull request #1675 (03master…monkey-calendar-picker-height): Prevent calendar picker from changing height https://github.com/metabrainz/listenbrainz-serv...
      • monkey
        Boom :)
      • Thanks !
      • BrainzGit
        [listenbrainz-server] 14amCap1712 merged pull request #1670 (03master…spotify-logging): Remove redundant db query from spotify reader https://github.com/metabrainz/listenbrainz-serv...
      • reosarevok
        yvanzo: oh, I see there's a draft already :)
      • zas
        yvanzo: I'm fine with such structure, but yes, we need to document it, and do not assume all scripts match actual servers. I'm working on it right now. I guess we could have a function to provide a clean list
      • reosarevok
        Nothing new after that?
      • yvanzo
        “common script to be included in others” can go in a separate directory.
      • BrainzGit
        [listenbrainz-server] release 03v-2021-10-25.0 has been published by 14github-actions[bot]: https://github.com/metabrainz/listenbrainz-serv...
      • yvanzo
        zas: See "scripts/list_nodes.sh" (in docker-server-configs)
      • reosarevok
        yvanzo: when you have some time, please check the blog draft too :)
      • yvanzo
        reosarevok: yes, it isn’t complete yet.
      • monkey
        > listen count < 0, oh yeah that's possible. Wonder how? So did I on a Sunday afternoon. Let's see how this happens.
      • :heart:
      • zas
        yvanzo: yes, I saw, but none of those scripts checks if the node actually exists (for example, we still have boingo.sh). And this last one, assume start scripts start with "start_" (well, they do, but did we ever actually document that?)
      • yvanzo
        yes, this script assumes undocumented habits
      • Shouldn’t boingo.sh be removed?
      • CatQuest
        busy busy worker bee 🐝 https://heavymoons.bandcamp.com/track/lkw #mbees
      • (seeing you all work hard on pull requests and the like for release today)
      • ruaok
        grrrr, docker still hangs on my tests. whyyyyy?
      • ok, its hangs on bono too.
      • lucifer: when you're done with the release could you please try to run `./test.sh listenbrainz/webserver/views/test/test_color.py` on the latest huesound branch?
      • monkey
        Developers: "whew ! it's also broken elsewhere, I feel so relieved !"
      • ruaok
        repeatability is a thing, afterall
      • zas
      • I think we should move this function to another file so we can easily include it in scripts that needs it
      • and I removed boingo.sh
      • akshat
        ruaok I ran your test which you've mentioned
      • It works and shows `collected 1 item`
      • Wait I think this is what you meant by hanging lol
      • It does hang after this
      • ruaok
        I finally declared config.py bankruptcy and copied over a new one.
      • now it no longer hangs!
      • akshat
        Great!