Rolling, rolling, rolling back nothing I love more than communicating why we had to roll back again (⁠ノ⁠ಠ⁠益⁠ಠ⁠)⁠ノ

  • ViatorOmnium@piefed.social
    link
    fedilink
    English
    arrow-up
    58
    ·
    11 hours ago

    Question 1: Where’s the CI/CD pipeline?
    Question 2: Why can one person change production alone without peer review (outside of an emergency)?

    You don’t have a job, you have a ticking time bomb.

    • ComfortableRaspberry@feddit.orgOP
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      10 hours ago

      It’s internal development (Portugal) developing something for an internal department (Germany). There’s nothing professional going on here so we are far from any ci/cd pipeline. One person can change everything, because it’s just two developers (1 frontend, 1 backend).

      Plus things are busy and we (team in Germany) are way more interested in this thing working well than they (team in Portugal) are since they have higher priority tasks…

      Of course I can say fuck it and live with the poor quality caused by circumstances that were partially caused by poor management decisions of the company but I’m not able to care little enough.

      • surewhynotlem@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        8 hours ago

        I demand CI/CD for my scripts. If it runs in prod or against prod or anywhere near prod, it gets a pipeline.

        Technical maturity isn’t just for big companies and important things. It’s a practice. Why half-ass something when you could whole ass it?

      • JackLSauce@lemmy.world
        link
        fedilink
        English
        arrow-up
        16
        arrow-down
        1
        ·
        11 hours ago

        Pre-commit hooks don’t require a pipeline nor any money. In most cases it’s one line of code to make the tests run every commit

          • kkj@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            18
            ·
            9 hours ago

            Fix your shit and it won’t stop you from committing.

            It’s also usually only on certain branches, so you can make a branch where you break things and then fix them before you merge to testing/main/whatever.

            • SandmanXC@lemmy.world
              link
              fedilink
              arrow-up
              5
              ·
              8 hours ago

              TIL precommit hooks can be set per branch. I was being facetious to begin with but this sounds pretty good actually.

              • kkj@lemmy.dbzer0.com
                link
                fedilink
                English
                arrow-up
                2
                ·
                6 hours ago

                What do you do if you have code that isn’t complete enough to work? Do you have to just leave it untracked?

                • chellomere@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  3 hours ago

                  I don’t know what others do, but I personally whip out git commit -n and bypass the hooks in this situation.

                • neonred@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  5 hours ago

                  If you have code that is not complete it is not qualified to be deployed. Cut work items into smaller chunks but never deploy not fully, 100% working and tested stuff. Not even on dev.

          • 4am@lemmy.zip
            link
            fedilink
            arrow-up
            3
            ·
            8 hours ago

            Take down prod while I’m on call and seeing my kid and I shall return the favor

          • chellomere@lemmy.world
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            edit-2
            7 hours ago

            I agree. I absolutely hate when some pesky git hook rejects some debug code I wrote that I want to commit. Mind you, commit, not integrate. This is the situation where I whip out git commit -n.

      • neonred@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        3
        ·
        5 hours ago

        If you have tests you have to automate them and have a pipeline which stops any deployments when these tests fail. You definitely have a mindset issue and not a management or tool issue. I am not sorry but as a DevOps Engineer I can only say you guys are a lousy hack and should probably seek a different job.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      The kind of psychos that have “nice to have” tests. If it’s red, it’s not critical, but still worthy of attention… sometime.

    • brezel@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 hours ago

      the real question is why doesn’t the CI/CD prevent merging with failing tests in the first place. i have not worked in any company that allowed that for at least 15 years.

      • fushuan [he/him]@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 hours ago

        Rn I’m in a project where everyone that has access to the code is given the role of owner of the group so we have permissions to skip any and all measures since owners don’t care.

        I’m so happy that tomorrow is my last day. So happy.

  • LegitimateEngineer@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    11 hours ago

    Proper procedure would have been the dev updating the uts so that they pass. If all they updated was adding ignore or commenting out code in the ut, even better!