News for hackers. Stuff that matters.
Re:The Pain That Is GitHub Actions by xlii on Thursday March 20, 2025 @03:15AM (#43420462)
There is one thing that I haven’t seen mentioned: worst possible feedback loop.

I’ve noticed this phenomenon few times already, and I think there’s nothing worse than having a 30-60s feedback loop. The one that keeps you glued to the screen but otherwise is completely nonproductive.

I tried for many moons to replicate GHA environment on local and it’s impossible in my context. So every change is like „push, wait for GH to pickup, act on some stupid typo or inconsistency, rinse, repeat”.

It’s like a slot machine „just one more time and it will run”, eating away focus and time.

It took me 25 minutes to get 5s build process. Naive build with GHA? 3 minutes, because dependencies et al. Ok, let’s add caching. 10 hours fly by.

The cost of failure and focus drop is enormous.

Re:The Pain That Is GitHub Actions by kelseydh on Thursday March 20, 2025 @04:03AM (#43420701)
Feel this pain so much. If you are debugging Github Action container builds, and each takes over ~40 minutes to build.. you can burn through a whole work day only testing six or seven changes.

There has to be a better way. How has nobody figured this out?

Re:The Pain That Is GitHub Actions by elAhmo on Thursday March 20, 2025 @04:26AM (#43420832)
There is act, that allows you to run actions locally. Although not exactly the same as the real thing, it can save time.

https://github.com/nektos/act

Re:The Pain That Is GitHub Actions by mab122 on Thursday March 20, 2025 @05:59AM (#43421304)
In organization setting this is almost useless if you are (or forced to) use some pre-made actions and/or actions that are for your organization only (they cannot be downloaded) also useless if you are forced to use self hosted runner with image that you don't have access to. Not to mention env/secrets and networking...
Re:The Pain That Is GitHub Actions by terminalbraid on Thursday March 20, 2025 @06:26AM (#43421457)
This is a great tool, but I always cringe when something so important comes from a third party
Re:The Pain That Is GitHub Actions by cantagi on Thursday March 20, 2025 @10:47AM (#43424228)
act is brilliant - it really helps iterate on github or gitea actions locally.
Re:The Pain That Is GitHub Actions by esafak on Thursday March 20, 2025 @04:45PM (#43428728)
There's dagger; CI as code. Test your pipeline locally, in your IDE.
Re:The Pain That Is GitHub Actions by figmert on Thursday March 20, 2025 @05:56AM (#43421293)
Highly recommend nektos/act, and if it's something complex enough, you can Ssh into the server to investigate. There are many action that facilitate this.
Re:The Pain That Is GitHub Actions by hv42 on Thursday March 20, 2025 @09:46AM (#43423317)
With GitLab, I have found https://github.com/firecow/gitlab-ci-local to be an incredible time-saver when working with GitLab pipelines (similar to https://github.com/nektos/act for GitHub)

I wish GitLab/GitHub would provide a way to do this by default, though.

Re:The Pain That Is GitHub Actions by cantagi on Thursday March 20, 2025 @10:33AM (#43424064)
act is great. I use it to iterate on actions locally (I self-host gitea actions, which uses act, so it's identical to github actions).
Re:The Pain That Is GitHub Actions by lsuresh on Thursday March 20, 2025 @05:17PM (#43429095)
This is exactly a big piece of our frustration -- the terrible feedback loop and how much mental space it wastes. OP does talk about this at the end (babysitting the endless "wip" commits till something works).
Re:The Pain That Is GitHub Actions by tomjakubowski on Saturday March 22, 2025 @04:52PM (#43448518)
I use LLMs for a lot of things these days, but maybe the most important one is as a focus-preserving mechanism for exactly these kinds of middle-ground async tasks that have a feedback loop measured in a handful of minutes.

If the process is longer than a few minutes, I can switch tasks while I wait for it. It's waiting for those things in the 3-10 minute range that is intolerable for me: long enough I will lose focus, not long enough for me to context switch.

Now I can bullshit with the LLM about something related to the task while I wait, which helps me to stay focused on it.