News for hackers. Stuff that matters.
Re:Release engineering is exhausting so here's cargo-dist by IshKebab on Wednesday February 01, 2023 @02:48PM (#34616525)
> Congrats kid you're A Release Engineer now and your life is hell. Enjoy debugging basic typos on a remote machine with 20 minute latency because you sure can't run those Github CI bash-scripts-in-yaml files locally!

Yes! Why is this accepted??

Gitlab has a way of running CI locally (for Docker based builds anyway; who knows about Windows or Mac) but a) it doesn't support the same features at the "proper" one (even basic ones like the `default` key) and b) they deprecated it!

Ok in fairness they've stated in a random comment that they won't remove it before providing an alternative.... But still, how is this not a core feature of all CI systems?

Re:Release engineering is exhausting so here's cargo-dist by sedatk on Wednesday February 01, 2023 @02:54PM (#34616613)
You can run GitHub workflows locally with act: https://github.com/nektos/act
Re:Release engineering is exhausting so here's cargo-dist by frodowtf on Wednesday February 01, 2023 @03:17PM (#34616959)
Act is okay, but the runner image behaves quite differently than a GitHub runner would. The original image would just be too big for reasonable local workflows.

Also artifacts don't seem to be supported.

Re:Release engineering is exhausting so here's cargo-dist by netr0ute on Wednesday February 01, 2023 @08:39PM (#34620899)
> The original image would just be too big for reasonable local workflows.

Is there a way so I can still do this? I have terabytes of SSD just waiting to be used.

Re:Release engineering is exhausting so here's cargo-dist by ollien on Wednesday February 01, 2023 @03:03PM (#34616737)
This is far from perfect, IME. The big problem I have (and maybe there's a solution I don't know about) is that there's no easy way to test getting event data, unless you wanna rebuild the events yourself (which is hardly reliable if the problem is something like verifying a conditional that enables/disables a stage).
Re:Release engineering is exhausting so here's cargo-dist by adrienthebo on Wednesday February 01, 2023 @03:08PM (#34616797)
Seconding this; act has a lot of potential but misses a number of features such as support for deployment environment variables (eg `${{ var.DEPLOY_SPECIFIC_ENV_VAR }}`) and only recently added support for reusable workflows (https://github.com/nektos/act/issues/826). It looks like fine software and the maintainers deserve praise for their work but it's not yet a drop-in replacement for GitHub Actions.
Re:Release engineering is exhausting so here's cargo-dist by wizzwizz4 on Wednesday February 01, 2023 @03:30PM (#34617161)
> But still, how is this not a core feature of all CI systems?

Vendor lock-in, presumably.

Re:Release engineering is exhausting so here's cargo-dist by WorldMaker on Wednesday February 01, 2023 @03:58PM (#34617632)
In multiple directions, too. It's easier to build the CI system itself if you are only targeting one class of servers/one means of hosting servers/one specific "cloud".
Re:Release engineering is exhausting so here's cargo-dist by capableweb on Wednesday February 01, 2023 @03:45PM (#34617429)
CircleCI solved this so many years ago, allow users to SSH into the environment the build happens.

Workflow is something like:

- Guess together a random CI or CD workflow, this is just to kick off the process. You can also start with a empty config.

- Something fails, get SSH host+port to connect to

- Enter environment and manually do everything you want to be able to automatically do

- Execute `history` and copy output, trim it into something nicer and put in your config

Re:Release engineering is exhausting so here's cargo-dist by brundolf on Wednesday February 01, 2023 @03:50PM (#34617513)
What we need is a standard CI language/config format across vendors (stuffing a custom DSL inside YAML doesn't count)

That would allow for a tooling ecosystem of static checkers, offline runners, IDE integrations, etc etc, and would also cut down on the learning barrier every time you switch to a new company that uses a different vendor

Re:Release engineering is exhausting so here's cargo-dist by angio on Wednesday February 01, 2023 @05:57PM (#34619283)
If you're using nix to build your repo, it's worth adding scripts for releases etc and run them locally and as part of the ci https://determinate.systems/posts/nix-github-actions
Re:Release engineering is exhausting so here's cargo-dist by nsteel on Thursday February 02, 2023 @05:07AM (#34624524)
If you just want to solve fundamental build issues (rather than say, uploading artefacts etc), I open a PR, make the silly small edits/experiments using the in-browser file editor, then it runs the CI each time. If I ever get it working, I then squash all the crappy debug I did to get there. Miles from ideal but a slight improvement.