• Gobbel2000
    link
    fedilink
    arrow-up
    11
    ·
    1 month ago

    Debugging CI pipelines is so annoying, why is there no better way than committing a bunch of dumb changes until it works?

    • pwshguy (mdowst)OP
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      That’s why half of my pipelines are just scripts now, so I can run large chunks of them locally. But yeah, commit, test, commit, test, commit, test drive me insane.

    • johntash@eviltoast.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      I like the approach of ci pipelines just running a make command or at least a script, so that it’s easy to run locally too before pushing the changes up.

    • CodeMonkey
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      Do you think that is too slow or too fast? Many of the CICD pipelines I work with take much longer than that. We have integration tests that deploy a fresh Kubernetes instance, install our software stack into it, and run several test suites against it.

      If I am working on bug found by a pipeline that takes more than a couple minutes to run, it is generally worth my time to figure out how to run the failing test individually on my dev machine. That approach does not help when I am debugging issues with the pipeline itself.

      • onlinepersona
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        At least for all the things I’ve worked on 10 minutes are considered unbearable. 20 means it’ll be forgotten because a new task has been started.

        What do you while waiting for the CI? Practice fencing?

        Anti Commercial-AI license

        • pwshguy (mdowst)OP
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          This one in particular takes around an hour to run. It deploys a bunch of resources to Azure and runs a all of our integration tests. It does a complete wipe and redeploy each time, so it takes a while. Fortunately, this pipeline is only run as a final test before prompting to production, so normally I only run it once a month or so. While it’s running I’ll work on my pull requests, release notes, closing user stories, etc.

    • Piatro
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      That’s amateur numbers. We’ve hit 45 minutes+!

    • pwshguy (mdowst)OP
      link
      fedilink
      arrow-up
      2
      ·
      17 days ago

      No Azure DevOps automatically increments it every time you run the pipeline.