• mesa ( mesamunefire@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      14
      ·
      10 months ago

      Circleci, Travis, and gitlab all allow you to ssh into the box you are trying your scripts on and fix it there. Much easier and takes a lot less time. Github actions have an unofficial way of doing it and is…not the best. Actions is actually one of the worst CIs I’m my experience.

    • leMe ( leMe@lemmy.dbzer0.com ) 
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      lots of people already pointed out tools to (kind of) dry run locally. they are great to figure out cryptic error messages.

      however, if you have issues with the complexity of the whole pipeline, it is usually easier to just execute the whole pipeline. for that we have the branch prefix cicd/ and treat these exactly as main/master and develop (except the very last deployment step). that way we can see where a whole pipeline will go. and when it is finally doing what it should, we can squash it before merge -> have a nice history.

    • Ephera ( Ephera@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Yeah, we always try to automate as much as possible with generic language build tooling and scripts, so that ideally the call in the runner is just a single command, which can also be triggered locally.

      Unfortunately, if you want to be able to re-run intermediate steps, then you do need to inform the runner of what you’re doing and deal with the whole complexity of up-/downloading intermediate results.

  • exu ( exu@feditown.com ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 months ago

    That’s why I use a separate branch. Use rebase or reset depending on what exactly you need to clean up when it’s working.