#metabrainz

/

      • Mr_Monkey
        I'm not even certain type-check throws or fails the testing suite
      • 2020-12-10 34557, 2020

      • alastairp
        let me see
      • 2020-12-10 34520, 2020

      • Mr_Monkey
        Not sure what the `--noEmit` flag does. Docs say "Do not emit outputs."… thanks…
      • 2020-12-10 34526, 2020

      • alastairp
      • 2020-12-10 34557, 2020

      • Mr_Monkey
        Ah, but hang on tsc is for compiling, not tyêchecking
      • 2020-12-10 34558, 2020

      • alastairp
        so, it's actually failing, and it's got a correct status code, so it should affect the build as we expect it to
      • 2020-12-10 34527, 2020

      • Mr_Monkey
        Cool
      • 2020-12-10 34533, 2020

      • alastairp
        maybe it just tries to compile it
      • 2020-12-10 34534, 2020

      • Mr_Monkey
        As for reporting…
      • 2020-12-10 34542, 2020

      • alastairp
        but --noEmit prevents it from making the .js files
      • 2020-12-10 34554, 2020

      • alastairp
        and so if it fails to build you get the failures?
      • 2020-12-10 34504, 2020

      • alastairp
        (does that mean that there are build errors in that branch?)
      • 2020-12-10 34519, 2020

      • Mr_Monkey
        I do think so
      • 2020-12-10 34500, 2020

      • alastairp
        hey, look at that. tests being useful again!
      • 2020-12-10 34514, 2020

      • Mr_Monkey
        Yeah, at least one of the errors is due to an issue with the js Date types. I'm following the open issue, but I haven't told TS to ignore that error. So it is indeed reported
      • 2020-12-10 34526, 2020

      • Mr_Monkey
      • 2020-12-10 34556, 2020

      • Mr_Monkey
        So that all looks set up properly, then
      • 2020-12-10 34523, 2020

      • alastairp
        right, and what does that mean when we actually try to build it?
      • 2020-12-10 34543, 2020

      • alastairp
        will it build despite the fact that it says ERROR ?
      • 2020-12-10 34517, 2020

      • Mr_Monkey
        Yes, webpack should be able to compile it fine (the proof of that being the live version on test.lb)
      • 2020-12-10 34520, 2020

      • alastairp
        kind of makes you wonder what the meaning of 'error' is, then ;)
      • 2020-12-10 34526, 2020

      • Mr_Monkey
        Well, I guess it'll fail the test suite, so there's that… but do remember all that would still be valid javascript, even if it fails dramatically at runtime.
      • 2020-12-10 34506, 2020

      • Mr_Monkey
        But I agree it could be coupled better with webpack, perhaps, so that the webpack build fails on TS errors
      • 2020-12-10 34532, 2020

      • alastairp
        right
      • 2020-12-10 34542, 2020

      • Mr_Monkey goes to read https://webpack.js.org/guides/typescript/
      • 2020-12-10 34504, 2020

      • ruaok
        alastairp: yep, good to merge.
      • 2020-12-10 34516, 2020

      • ruaok will continue to be AFK for most of the afternoon
      • 2020-12-10 34554, 2020

      • alastairp
        Mr_Monkey: strangely, no tsc errors here
      • 2020-12-10 34513, 2020

      • Mr_Monkey
        Here on your machine?
      • 2020-12-10 34536, 2020

      • alastairp
        yes
      • 2020-12-10 34558, 2020

      • alastairp
        oh, wait
      • 2020-12-10 34515, 2020

      • alastairp
        this is because I'm on the jenkins branch, which doesn't have playlist code
      • 2020-12-10 34519, 2020

      • alastairp
        ignore me
      • 2020-12-10 34554, 2020

      • Mr_Monkey ignores alastairp
      • 2020-12-10 34541, 2020

      • Mr_Monkey
        I'm trying locally to add `bail: true` option in webpack config with the goal of failing build in case of typescript errors (without having to run tsc separately).
      • 2020-12-10 34542, 2020

      • Mr_Monkey
        I suppose that's what should happen, instead of reporting errors on one side but allowing build to succeed.
      • 2020-12-10 34514, 2020

      • alastairp
        cool
      • 2020-12-10 34527, 2020

      • Mr_Monkey
        The plot thickens
      • 2020-12-10 34531, 2020

      • Mr_Monkey
        `bail` was a red herring. The `babel-loader` library we use just strips out the typescript instead of validating it.
      • 2020-12-10 34532, 2020

      • Mr_Monkey
        But it looks like with the addition of a plugin to webpack, we can get rid of the `type-checker` container entirely, and do the typescript validation (that will actually fail the build on error) through webpack in a separate thread, with the promise of sped up builds.
      • 2020-12-10 34545, 2020

      • Mr_Monkey
        "bail was a red herring." sounds like beat poetry
      • 2020-12-10 34535, 2020

      • alastairp
        that sounds like a good idea
      • 2020-12-10 34550, 2020

      • alastairp
      • 2020-12-10 34511, 2020

      • alastairp
        OK, fine it says "cobol warnings", that's clearly an error
      • 2020-12-10 34513, 2020

      • alastairp
        but hey!
      • 2020-12-10 34505, 2020

      • Mr_Monkey
        Test reports look like they're working https://ci.metabrainz.org/view/Listenbrainz/job/l…
      • 2020-12-10 34525, 2020

      • alastairp
        yep
      • 2020-12-10 34526, 2020

      • alastairp
      • 2020-12-10 34540, 2020

      • alastairp
        there are the eslint warnings
      • 2020-12-10 34556, 2020

      • alastairp
        great, just got to look at these timing issues in the integration tests, and this will be ready
      • 2020-12-10 34517, 2020

      • Mr_Monkey
        eslint warnings look formatted weirdly for me:
      • 2020-12-10 34533, 2020

      • Mr_Monkey
      • 2020-12-10 34538, 2020

      • Mr_Monkey
        Kind of works, at least, I'm able to see some details of the warnings
      • 2020-12-10 34520, 2020

      • Mr_Monkey
      • 2020-12-10 34529, 2020

      • alastairp
        that's just a weird thing about the reporting system, I think
      • 2020-12-10 34534, 2020

      • alastairp
        they look that weird on python too :-P
      • 2020-12-10 34548, 2020

      • alastairp
        there's a "new" version of that plugin, that might do it better, but I don't know
      • 2020-12-10 34549, 2020

      • alastairp
        and there is a way of showing the source code and highlighting the error, but there's a configuration issue that I have to fix for that to work, I'll only do it if someone asks for it
      • 2020-12-10 34511, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1199 (master…playlist-feature): Playlist feature branch -- interim PR https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34519, 2020

      • alastairp
        there it is!
      • 2020-12-10 34520, 2020

      • Mr_Monkey
        🎉
      • 2020-12-10 34524, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1140 (master…patch-1): Add a note about the spark_reader and link the Spark Architecture document https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34537, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1186 (master…dependabot/pip/flask-admin-1.5.7): Bump flask-admin from 1.5.6 to 1.5.7 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34522, 2020

      • BrainzGit
        [listenbrainz-server] alastair closed pull request #1190 (master…dependabot/pip/pytz-2020.4): Bump pytz from 2020.1 to 2020.4 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34559, 2020

      • alastairp
        hack hack hack hack
      • 2020-12-10 34527, 2020

      • alastairp
        _lucifer: hi, around?
      • 2020-12-10 34538, 2020

      • _lucifer
        alastairp: hi! yes, I am around.
      • 2020-12-10 34552, 2020

      • alastairp
        _lucifer: I wanted to merge https://github.com/metabrainz/listenbrainz-server…, but I don't know how to test it. You were dealing with socket.io when we started on the playlist stuff
      • 2020-12-10 34534, 2020

      • alastairp
        are you able to check out master, merge that branch into it, rebuild, and try and send some websocket messages manually?
      • 2020-12-10 34547, 2020

      • alastairp
        I'm sure that there won't be any issues with it, but just wanted to be sure
      • 2020-12-10 34539, 2020

      • alastairp
        oh, you know what. I don't think that there are any problems. I was just looking through the changelog, and almost nothing has changed
      • 2020-12-10 34545, 2020

      • _lucifer
        alastairp: locally i am using the latest version of websockets. so there should not be any issues
      • 2020-12-10 34510, 2020

      • _lucifer
        s/websockets/flask-scoketio
      • 2020-12-10 34513, 2020

      • alastairp
        https://github.com/miguelgrinberg/Flask-SocketIO/… this the only major code change between the two versions
      • 2020-12-10 34518, 2020

      • alastairp
        perfect, I'll merge it then
      • 2020-12-10 34539, 2020

      • alastairp
        are you waiting on me for anything?
      • 2020-12-10 34547, 2020

      • alastairp
        how are your projects and exams?
      • 2020-12-10 34519, 2020

      • _lucifer
        Projects and exams are going fine. I think everything i need to work is in place.
      • 2020-12-10 34520, 2020

      • alastairp
      • 2020-12-10 34551, 2020

      • _lucifer
        Yes, I had seen that.
      • 2020-12-10 34536, 2020

      • alastairp
        I don't know if you had any questions, or if you wanted to give it a review? If you think everything is OK then we should set up tests on jenkins and fix these db errors that we were having in CB
      • 2020-12-10 34518, 2020

      • _lucifer
        I don't have questions regarding. The changes are mostly what we had already discussed last month. Plus, your comments explain everything very well :)
      • 2020-12-10 34517, 2020

      • alastairp
        yeah, that's why I did them!
      • 2020-12-10 34542, 2020

      • alastairp
        OK, I'll go ahead with jenkins setup. I guess we need to make some tests for these things that fail in CB, too
      • 2020-12-10 34553, 2020

      • _lucifer
        yeah, makes sense
      • 2020-12-10 34518, 2020

      • alastairp
        then we should decide what to do with CB, should we keep testing the db get methods there, or should we move the tests to BU and mock access in CB?
      • 2020-12-10 34550, 2020

      • _lucifer
        i think the latter one makes more sense
      • 2020-12-10 34559, 2020

      • _lucifer
        have all database tests in BU and then mock it for everything in CB.
      • 2020-12-10 34506, 2020

      • alastairp
        oh, the other thing that I was unsure about was how we should do the db session - should we use a specific pytest module to make sqlalchemy connections, or just do it like I was doing
      • 2020-12-10 34530, 2020

      • alastairp
        access to the MB database in BU is read-only, so I don't think we need any specific testing functionality there
      • 2020-12-10 34526, 2020

      • alastairp
        django has a nice setup where it will run everything in a transaction, which means that resetting after a test is as simple as rolling back the transaction. it's much faster and simpler than our process of dropping tables and recreating them
      • 2020-12-10 34538, 2020

      • alastairp
        but this isn't needed in BU, so I think we shouldn't worry about adding more complexity
      • 2020-12-10 34551, 2020

      • _lucifer
        let's just go ahead with what we already have for now and later use the module if it improves the testing process
      • 2020-12-10 34558, 2020

      • alastairp
        agreed, thanks
      • 2020-12-10 34501, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1189 (master…dependabot/pip/flask-socketio-4.3.2): Bump flask-socketio from 4.3.1 to 4.3.2 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34512, 2020

      • _lucifer
        np, thanks
      • 2020-12-10 34524, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1187 (master…dependabot/pip/sphinx-3.3.1): Bump sphinx from 3.2.1 to 3.3.1 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34531, 2020

      • BrainzGit
        [musicbrainz-server] reosarevok opened pull request #1825 (master…MBS-8028): MBS-8028: Allow editing series type to any with same entity type https://github.com/metabrainz/musicbrainz-server/…
      • 2020-12-10 34524, 2020

      • v6lur has quit
      • 2020-12-10 34510, 2020

      • sumedh has quit
      • 2020-12-10 34556, 2020

      • BestSteve has quit
      • 2020-12-10 34523, 2020

      • BestSteve joined the channel
      • 2020-12-10 34540, 2020

      • mckean_ has quit
      • 2020-12-10 34502, 2020

      • BrainzGit
        [bookbrainz-site] dependabot[bot] opened pull request #543 (master…dependabot/npm_and_yarn/ini-1.3.7): chore(deps): bump ini from 1.3.5 to 1.3.7 https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2020-12-10 34551, 2020

      • BrainzGit
        [listenbrainz-server] dependabot-preview[bot] opened pull request #1202 (production…dependabot/npm_and_yarn/production/ini-1.3.7): [Security] Bump ini from 1.3.5 to 1.3.7 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34546, 2020

      • alastairp
        oh come on
      • 2020-12-10 34549, 2020

      • alastairp
        I almost closed all of them!
      • 2020-12-10 34500, 2020

      • Mr_Monkey
      • 2020-12-10 34512, 2020

      • BrainzGit
        [listenbrainz-server] MonkeyDo opened pull request #1203 (master…webpack-typescript-checking): Webpack typescript checking https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-10 34551, 2020

      • thomasross joined the channel
      • 2020-12-10 34547, 2020

      • BrainzGit
        [critiquebrainz] dependabot-preview[bot] opened pull request #324 (master…dependabot/npm_and_yarn/ini-1.3.7): [Security] Bump ini from 1.3.5 to 1.3.7 https://github.com/metabrainz/critiquebrainz/pull…
      • 2020-12-10 34550, 2020

      • hijef joined the channel
      • 2020-12-10 34550, 2020

      • hijef has quit
      • 2020-12-10 34550, 2020

      • hijef joined the channel
      • 2020-12-10 34523, 2020

      • yef has quit
      • 2020-12-10 34528, 2020

      • hijef is now known as yef
      • 2020-12-10 34537, 2020

      • travis-ci joined the channel
      • 2020-12-10 34537, 2020

      • travis-ci
        Project bookbrainz-site build #3582: passed in 4 min 27 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2020-12-10 34537, 2020

      • travis-ci has left the channel
      • 2020-12-10 34522, 2020

      • Pragya joined the channel
      • 2020-12-10 34552, 2020

      • Pragya has quit
      • 2020-12-10 34501, 2020

      • Gazooo79494 has quit
      • 2020-12-10 34540, 2020

      • Gazooo79494 joined the channel
      • 2020-12-10 34530, 2020

      • v6lur joined the channel
      • 2020-12-10 34519, 2020

      • ruaok
        wooo! playlist branch merged. well done everyone!
      • 2020-12-10 34532, 2020

      • SothoTalKer has quit
      • 2020-12-10 34555, 2020

      • SothoTalKer joined the channel
      • 2020-12-10 34545, 2020

      • v6lur has quit
      • 2020-12-10 34545, 2020

      • assink has quit
      • 2020-12-10 34502, 2020

      • assink joined the channel
      • 2020-12-10 34548, 2020

      • v6lur joined the channel