5/16/2025 at 6:10:57 PM
Just this week I tried giving this another chance to debug some weird CI failures for ruby tests. I’m on M-series macs so there is an inherent platform mismatch. That coupled with us using depot images as action runners. I was never able to get it running past the dry-run stage. There is just a lot of differences between CI runners and my local docker images. I even gave the image from catthehacker a try. Which is like >15GB. It still wouldn’t run. Finally gave up.by ryangg
5/19/2025 at 8:06:48 PM
Sounds similar to my own experiences trying to debug GH actions locally.I've tried twice now to get it working, pulling down many GBs of images and installing stuff and then getting stuck in some obscure configuration or environment issue. I was even running Linux locally which I figured would be the happiest path.
I'm not eager to try again, and unless there's a CI that's very slow or GH actions that need to be updated often for some reason, I feel like it's better to just brute-force it - waiting for CI to run remotely.
by Ameo
5/20/2025 at 4:10:20 AM
There's another alternative - debug in CI itself. There's a few ways that you can pause your CI at a specific step and get a shell to do some debugging, usually via SSH. I've found that to be the most useful.by dcherman
5/20/2025 at 6:00:33 AM
https://github.com/namespacelabs/breakpointby anner_
5/20/2025 at 3:53:09 PM
Came here to say this, and to recommend: https://github.com/appleboy/ssh-actionIt’s slow and arduous work to inject at the right point and find out what went wrong. But it’s miles better than act. act is a noble idea, and I hope it can meet its target, but it falls short currently.
ssh-action gets you on the host, and lets you quickly establish what is happening and implement fixes. It’s top notch!
(I’m unaffiliated, just a big fan of ssh-action).
by dayjah
5/20/2025 at 1:20:15 AM
GH Actions have always worked flawlessly for me, as long as I don't ever do anything unusual.Last week I moved from a custom server back to GH Pages + GH Actions, and broke a feature that depended on an out dir existing after one build phase and before another. I have no idea how to fix it. It's probably simple, I'm just burnt out.
by 90s_dev
5/20/2025 at 2:02:06 AM
Each job runs on a separate runner. If you want to pass data across, use artifacts to upload and then retrieve the specified file(s).by lukevp
5/20/2025 at 5:47:15 AM
You can pass outputs between jobs by declaring one job as a dependency of another with needs:, then reference that dependency's outputs with needs.<job>.outputsby cedws
5/20/2025 at 5:45:13 AM
ChristopherHX publishes Docker images which are created directly from packing up the root filesystem into a tarball from inside a runner. The images are huge though.https://github.com/ChristopherHX/runner-image-blobs/pkgs/con...
by cedws
5/17/2025 at 2:47:16 AM
Something like this may help by letting you ssh into the running instance so you can debug with the exact context: https://docs.warpbuild.com/tools/action-debuggerby suryao
5/17/2025 at 2:31:41 AM
It’s even worse than that, it’s 20GB compressed and 60GB uncompressed. Regardless, if your VM runs out of disk space there’s no meaningful error (well 12 months ago) except a failure to start. (Possibly colima-specific I dunno I uninstalled docker-docker)I do find that some things just work locally and fail in real actions and vice versa. For the most part it’s made it easier to move the bar forward though.
by jlongman
5/20/2025 at 1:33:54 PM
This is really only for debugging the logic of your Actions, isn't it?On my team, Nix seems to work pretty well for encapsulating most of the interesting things CI jobs do. We don't use virtualization to run local versions of our jobs, and we don't run into architecture mismatch issues.
by pxc
5/20/2025 at 1:02:39 PM
My experience with Ruby on Apple Silicon as been far from seamless. The only way I could thoroughly get rid of problems was by running the most recent Ruby release and dealing with what THAT causes.I’m pretty sure GH actions don’t run the latest Ruby version.
by philistine
5/20/2025 at 1:11:27 PM
My experience with both Ruby and Python Apple Silicon has been hit or miss. Mise has made it a lot simpler and seamless but if you need an older version or the absolute latest when it is released, you might have some issues. Mise has helped a lot, I generally do not expect to get an error.by hk1337
5/20/2025 at 6:10:20 PM
Are there specific problems? I’ve been primarily Ruby at work the last 6 or so years (before, also doing Ruby, but also lots of Java, Kotlin, Swift, FE stuff, and some Python)… exactly that period… and haven’t really noticed any issues. Granted, I don’t typically use a lot of obscure binary-only dependencies, or things whose C/C++/machine code wouldn’t mostly cross-compile fine.Granted, all this time I’ve always only used rbenv-managed Ruby versions (and rvm before that). I’ve long disliked/avoided Python because its ecosystem lacked any equivalent, but I know “uv” has gained popularity there, and perhaps Mise is good in Python land as well.
by pseudocomposer
5/21/2025 at 3:18:35 AM
Usually just errors building it. Mostly python but I think I had an error with 3.4.3 the other day.by hk1337
5/19/2025 at 7:58:55 PM
I had luck with my actions I tried to debug. But I also had the issue that the runtime difference is simply too big to 100% trust it. Too bad because I think the tool is quite good.by larusso