Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Storment33
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
Storment33
7mo ago
Fair enough if you've some development environment automation and you want the CI to run it as well so CI is consistent with local development. Don't know exactly what your doing but others(myself included) are using Mise or Nix o
2.
▲
by
Storment33
7mo ago
The problem is some stuff is a real pain to test with static assertions. Such as I was saying about compilers. It would be a real pain to maintain an expected AST in a unit test, then you'd have to go rework it all if you change the sh
3.
▲
by
Storment33
7mo ago
I mean... They told you why it takes so long no? the runners come by default with loads of programming languages installed like Rust, Haskell, Node, Python, .Net etc so it sets all that up per user add. I would also question why your adding
4.
▲
by
Storment33
7mo ago
cringe
5.
▲
by
Storment33
7mo ago
Ansible is CaC(Config as Code) not IaC(Infrastructure as Code) they're for different things.
6.
▲
by
Storment33
7mo ago
This is what I done, GitHub Actions is basically a command line as a service for my projects. It does nothing but checkout the code, means I can do all the releasing, artefact uploading, compiling & testing etc locally.
7.
▲
by
Storment33
7mo ago
I mean all CIs work out of the box, although I have no interest in self hosting CI. Jenkins is probably a bit like Java, technically it is fine. The problem is really where/who typically uses it and as there is so much freedom it is re
8.
▲
by
Storment33
7mo ago
It is called snapshot testing, very valid technique. Maybe not best suited to a mathematical function like they have here, but I have found it useful for stuff like compilers asserting on the AST, where it would be a pain to write out and a
9.
▲
by
Storment33
8mo ago
Yes I am seeing what your saying, it can start of simple and people will choose the path of least resistance and you'll end up with a ball of mud eventually. Fortunately I have not come across anything that bad yet. I know it is a made
10.
▲
by
Storment33
8mo ago
I replaced building/testing etc inside Docker containers to just using Nix. * https://github.com/DeveloperC286/clean_git_history/commit/f8...
11.
▲
by
Storment33
8mo ago
Java has numerous problems, it's not as simple as use Java not Rust. To be honest I actively avoid any tooling written in Java.
12.
▲
by
Storment33
8mo ago
Jobs run in parallel, so if you used Make you could have one job called 'formatting' calling 'make check-formatting', one called linting calling ''make check-linting', one called 'compiling' call
13.
▲
by
Storment33
8mo ago
I use to have my Makefile call out and do `docker build ...` and `docker run ...` etc with a volume mount of the source code to manage and maintain tooling versions etc. It works okay, better than a lot of other workflows I have seen. But i
14.
▲
by
Storment33
8mo ago
> However it’s really easy to go from a simple shell script running a few commands to something significantly more complex just to do something seemingly simple, like parse a semantic version, make an api call and check the status code e
15.
▲
by
Storment33
8mo ago
I had no idea 'pwsh' was PowerShell. Personally not interested, maybe if your a Microsoft shop or something then yeah.
16.
▲
by
Storment33
8mo ago
I don't touch Windows so I would not know. > The same Python testing code runs on all three platforms. I have no objections to Python being used for testing, I use it myself for the end to end tests in my projects. I just don't
17.
▲
by
Storment33
8mo ago
> UV scripts are great for this type of workflow So previously when I have seen Python used as a task runner I think they used UV to call it. Although I don't think they had as a complete solution as your here auto-installing UV etc
18.
▲
by
Storment33
8mo ago
Personally, I have never found the Python as a task runners to be less code, more readable or maintainable.
19.
▲
by
Storment33
8mo ago
I was doing something similar when moving from Earthly. But I have since moved to Nix to manage the environment. It is a lot better of a developer experience and faster! I would checkout an environment manager like Nix/Mise etc so you
20.
▲
by
Storment33
8mo ago
Yes exactly! I am using Nix/Make and I can prompt Claude to use Nix/Make, it uses these local feedback loops and corrects itself sometimes etc.
21.
▲
by
Storment33
8mo ago
> Yeah, tends to happen a lot when you hold strong opinions with strong conviction :) Not that it's wrong or anything, but it's highly subjective in the end. Strong opinions, loosely held :) > Typically I see larger issues b
22.
▲
by
Storment33
8mo ago
> Huh? Who cares if the script is .sh, .bash, Makefile, Justfile, .py, .js or even .php? Me, typically I have found it to be a sign of over-engineering and found no benefits over just using shell script/task runner, as all it should
23.
▲
by
Storment33
8mo ago
Just use a task runner(Make, Just, Taskfile) this is what they were designed for.
24.
▲
by
Storment33
8mo ago
> If your CI can do things that you can't do locally: that is a problem. Completely agree. > I'm a huge fan of "train as you fight", whatever build tools you have locally should be what's used in CI. That is w
25.
▲
by
Storment33
8mo ago
I agree with #2, I meant more if you are calling out to something that is not a task runner(Make, Taskfile, Just etc) or a shell script thats a bit of a smell to me. E.g. I have seen people call out to Python scripts etc and it concerns me.
26.
▲
by
Storment33
8mo ago
> For the love of all that is holy, don’t let GitHub Actions > manage your logic. Keep your scripts under your own damn > control and just make the Actions call them! I mean your problem was not `build.rs` here and Make
27.
▲
by
Storment33
8mo ago
I would disagree with 1. if you need anything more than shell that starts to become a smell to me. The build/testing process etc should be simple enough to not need anything more.
28.
▲
by
Storment33
8mo ago
I agree there is stuff you can't test locally, but in my experience people most of the time are complaining about stuff they should have local feedback loops for such as compiling, testing, end to end testing etc. You give some good ex
29.
▲
by
Storment33
8mo ago
I agree, yet unfortunately most of the time I personally see people complaining it is about builds or tests unable to reproduce failures etc locally or unable to run end to end tests and have to push to CI to get them ran.
30.
▲
by
Storment33
8mo ago
Yeah everytime I see logic in YAML I cringe. Trying at work to get people to use a task runner or even call out to scripts was a fight...
More ›