And it’s been nine days since we learned 0.19.1 didn’t fix the problem. There’s a lesson to be learned here: don’t push a massive update close to the holidays because, ya know, you might break federation and go on vacation for a week+.

  • rglullis@communick.news
    link
    fedilink
    English
    arrow-up
    61
    arrow-down
    4
    ·
    7 months ago

    There is also a lesson in implementing proper tests. During these holidays I started to play a bit more with Rust and went on to look at Lemmy’s backend code. Not a single unit test in sight…

    • Spuddlesv2@lemmy.ca
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      26
      ·
      7 months ago

      We all await your commit containing all those simple unit tests with bated breath.

      • rglullis@communick.news
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        3
        ·
        edit-2
        7 months ago

        I want to work an issue that is open since 2020, but I can only justify dropping all my other work for that if I have enough paying customers interested in some new feature. So, help me get 50 customers to my “all in one” hosting service and I will dedicate a week to it, which should be more than enough time for even a Rust newbie like me to submit a proper PR to that issue. Ok?

        • nutomic@lemmy.ml
          link
          fedilink
          English
          arrow-up
          5
          ·
          7 months ago

          There is already an open PR for Oauth, though Im not sure whats the difference to LDAP. Regarding tests you must have looked in the wrong place, we have a couple hundred already. Docs are here.

          • rglullis@communick.news
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            7 months ago

            Unless there is some thing inherent to how Rust runs tests, the test script seems be mostly integration tests exercising the API. There does not seem to be unit tests which would be the first thing you’d need to have to test like the function that seems to be the source of the bug. (Hint, if your test suite needs to have a running db, you are not unit testing.)

            As for OAuth vs LDAP: both could be used as part of a Single Sign-On solution, but the actual use cases are completely different. Having LDAP authentication would allow, e.g., to let users authenticate to Lemmy using an intranet account or (in the case of Communick) customers could use the same credentials for their Mastodon or Matrix accounts.

            • nutomic@lemmy.ml
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              7 months ago

              Sounds like you are looking at the api tests then. There are also unit tests which you can run with ./scripts/test.sh. The database is a fundamental part of Lemmy, so its obviously required for many of the unit tests. It may be possible to mock the db, but that would be a lot of effort for very little benefit, and might even introduce additional bugs.

    • JGrffn@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      23
      ·
      7 months ago

      To be fair, I’ve yet had a job that actually pulls off unit testing. Most either don’t bother or just go for the grunt work bare minimum to force pass tests. Most friends in my field have had pretty much the same experience. Unit tests can be just a chore with little to no real benefit. Maybe an opensource project that actually cares about its code can pull it off, but I wouldn’t bat an eye if they never get to it.

      • rglullis@communick.news
        link
        fedilink
        English
        arrow-up
        30
        arrow-down
        4
        ·
        7 months ago

        If you go through the comments, you will see that the devs talk about an issue with the logic in the for loop, which “may be stopping before it should”. Writing a couple of test cases that check whether this is true or not should be trivial.

        I’d expect at the very least some type of regression tests to be implemented for every bug that makes into production, to avoid cases like this one where the developers spend weeks figuring out whether their patches even fix the bug in the first place.

      • ShunkW@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        7 months ago

        I’m surprised that’s your experience. I’ve worked 4 software engineering jobs now, and every single project has had well done unit test suites.

        • JGrffn@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          7 months ago

          Usually a React dev, have been some other stuff, but generally yeah, websites. Anything from resort chain websites to complex internal applications. Unit tests were optional at best in most jobs I’ve been at. I’ve heard of jobs where they’re pulled off, but from what I’ve seen, those are the exception and not the rule.

          Edit: given the downvotes on my other comment, I should add that this is both anecdotal and unopinionated from my behalf. My opinion on unit testing is “meh”, if I’m asked to do tests, I’ll do tests, if not, I won’t. I wouldn’t go out of my way to implement them, say, on a personal project or most work projects, but if I was tasked to lead certain project and that project could clearly benefit from them (i.e. Fintech, data security, high availability operation-critical tools), I wouldn’t think twice about it. Most of what I’ve worked on, however, has not been that operation-critical. What few things were critical in my work experience, would sometimes be the only code being unit tested.

          • Valmond@lemmy.mindoki.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 months ago

            That explains why you haven’t seen many unit tests then.

            I guess you haven’t really worked on complex software just yet too, like a 2GB sourscode 700 projects all in one where tests saves the day all the time.

            So maybe you’re the lucky one :-D

            Cheers

      • 👍Maximum Derek👍@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        7 months ago

        Same. Every team talks a good game about unit testing but in nearly 20 years I’ve yet to see a single worthwhile test in a company’s code base. I eventually stopped asking about it when doing M&A research.

    • Illecors@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 months ago

      That fix is for another issue. I’ve had to do it once already, other admins - twice. It’s a bug since at least 0.18.4

  • Adam@doomscroll.n8e.dev
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    26
    ·
    7 months ago

    There’s a lesson to be learned here: don’t push a massive update close to the holidays because, ya know, you might break federation and go on vacation for a week.

    I mean, no one has forced any admins to deploy a new version. But yeah, this is an annoying one.

    • Klaatu@lemmy.world
      link
      fedilink
      English
      arrow-up
      51
      arrow-down
      15
      ·
      7 months ago

      Devs break federation.

      You: here’s why it’s everyone else’s fault

      • surewhynotlem@lemmy.world
        link
        fedilink
        English
        arrow-up
        27
        arrow-down
        13
        ·
        7 months ago

        It’s valid to point out when amateurs do amateur stuff, in the hopes they one day become experts.

        Backup before upgrade. If you can’t, don’t be the first to upgrade. Have a test instance.

        And if all of that sounds like too much, then just accept downtime as a lifestyle.

        • Dankry@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          34
          arrow-down
          4
          ·
          edit-2
          7 months ago

          It’s valid to point out when amateurs do amateur stuff, in the hopes they one day become experts.

          I agree, it’s valid to point out amateurish behavior, like devs releasing a highly anticipated major update that breaks core functionality… Then pushing an emergency “fix” that didn’t actually fix the problem and going radio silent for over a week because it’s the holidays. But sure, we can focus on server admins if you want.

          • Kool_Newt@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            7 months ago

            It’s not a devs vs admins, this was a failure on both sides. This is early days for the Fediverse, I’d imagine this will shake out over time as unreliable instances are abandoned and we get more devs and they learn to or get what the resources needed for better testing.

  • Chr0nos1@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    7 months ago

    It’s been one week since you looked at me Cocked your head to the side and said, “I’m angry”

  • vojel@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    I am confused but it seems most other instances besides feddit.de works quite well. I moved my account because the federation on feddit was (is?) broken. But yeah this was a major change and I guess most instances are sidecar projects and not professionally hosted nor maintained. I would definitely pay for a proper hosted and maintained Lemmy instance.

  • hydroptic@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    124
    ·
    7 months ago

    There’s a lesson to be learned here

    The lesson is don’t trust a fucking tankie to be able to run a development project

    • 1984@lemmy.today
      link
      fedilink
      English
      arrow-up
      39
      arrow-down
      12
      ·
      edit-2
      7 months ago

      That’s ridiculous and you are letting your brain get clouded by your political views.

    • andrew_bidlaw@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      18
      ·
      7 months ago

      I don’t think any political stance can guarantee that one would (not) make a fuck up at any given time. The shit they do is lit, it lets me consume that post and then answer you, us being from different volunteer-run instances. Give these guys some credit. At least, they put their code where their mouth is and let us all use it.

      In the language of 1900’s socialists, I can’t care whose gold in a cart that is, if I can appropriate it to serve our means.

      If that’s not the case, we all can fork it. But I doubt you or I have enough spite to compete with them and continuously support it. With all problems, if they haven’t started their project, we couldn’t have these nice places, so even though I disagree with them, I can’t really devalue the labor they put in there, for everyone’s pleasure.

    • maegul (he/they)@lemmy.ml
      link
      fedilink
      English
      arrow-up
      20
      arrow-down
      6
      ·
      7 months ago

      In my experience the worst thing about tankies is all the loud anti-tankie noise they attract like this comment.

      I’m not one myself, but venom like this very much outweighs anything I’ve found untoward from any tankie here.

    • mosiacmango@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      7 months ago

      Youre on that tankies platform right now, bro.

      You love tankies or something? Using tankie-ware like you are?

    • Aniki 🌱🌿@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      4
      ·
      7 months ago

      Why are you even bothering to post here, fucking hypocrite. Go cry on your nazi substack.

    • syd@lemy.lol
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 months ago

      If you don’t like their way of developing, then do it yourself, cunt.

      • hydroptic@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        9
        ·
        edit-2
        7 months ago

        Remember this comment the next time you say you dislike a movie, book, game or food. If you don’t like it, do it yourself cunt, criticism is not allowed unless you do it yourself

        • syd@lemy.lol
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          7 months ago

          If I dislike a movie, book, game or food; I would criticise the movie, book, game or food and not the director’s, writer’s, developer’s or chef’s political views.

          Don’t get me wrong, I’m not saying don’t criticise their political views. I’m saying don’t criticise the product because of their political views.

    • Hjalmar@feddit.nu
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      2
      ·
      7 months ago

      Well then, take your beloved capitalism and get the hell out of here. There are lots of profit driven social media platforms that you could try out.