• davel [he/him]@lemmy.ml
      link
      fedilink
      English
      arrow-up
      16
      ·
      1 day ago

      True. Nothing beats running your unit tests in the actual container image that will be run in production.

      • HiddenLayer555@lemmy.ml
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        1 day ago

        Race condition that only happens on the much faster production hardware: Allow me to introduce myself

        • Qaz@lemmy.ml
          link
          fedilink
          English
          arrow-up
          4
          ·
          16 hours ago

          Or an issue that only appears when using ARM and not on my AMD64 dev machine

        • davel [he/him]@lemmy.ml
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 day ago

          Unit tests can’t win ’em all. That’s where things like integration tests, staging environments, and load testing come in.

          The final layer of protection is the deployment strategy, be it rolling, canary, or blue-geen.

      • qaz@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

        Yeah, and it’s useful to just check everything so you don’t forget to add some essential system package for e.g. SSL, especially when working with Alpine.