Top
Best
New

Posted by tamentis 4 hours ago

Subminute CI(engineering.moab.com)
116 points | 44 commentspage 2
teiferer 3 hours ago|
In my experience, a major reason for CI slowness is that people are just terrible at writing tests. End-to-end style tests that could just be super fast unit tests. And run a test 1000x with random input "just in case" as if that helps. If as much thought would go into testing as the product code then testing would be much better and also much faster. But testing is still treated as the thing the new hire writes, or some low-effort LLM and you just merge it. Of course it ends up terrible with that attitude.
shoo 1 hour ago|
> run a test 1000x with random input "just in case" as if that helps

if the code being tested does something interesting is responsible for processing variably sized inputs that can encode a variety of different situations, if you're throwing randomly generated inputs at broken code, the broken code may succeed for 10,000 random inputs but only start to fail & give you a clue that the defect exists once you throw 100,000+ inputs at it. i've seen this happen a few times when working on domain specific graph algorithm type stuff, where the inputs are some kind of annotated graph & defects only manifest when the input has a graph with a particular topology.

still, probably not worth it to run 10,000+ random inputs each time CI runs -- maybe better to have a protocol of manually doing a run of 100,000 or 1000,000 random test cases whenever someone modifies that code & if that surfaces any cases that cause their proposed change to fail, capture those specific counterexamples to be re-run every build.

could probably be streamlined with sufficiently clever logic to figure out the subset of tests that need to be run for any given code change. most of the time you're not modifying the guts of subsystems like this so running any of its tests is waste.

vpaulus 2 hours ago||
I am still wondering what "AI-native" means
bigfishrunning 1 hour ago|
I think it means "from Anguilla"
K3UL 3 hours ago||
That's great, but when you run on Github Actions, going subminute is actually a waste considering Github bills the first minute as a whole
mystifyingpoi 3 hours ago||
Someone should make it mine some crypto up till :59 mark then.
guhidalg 3 hours ago||
Your time is free?
muqsitnawaz 4 hours ago||
We reduced our CI time from 11 mins to 70 seconds. Best investment we ever made! Pretty much agree with all the techniques mentioned in the article
iamleppert 46 minutes ago||
Sounds like a nightmare of side effects and non-deterministic tests
pjm331 4 hours ago||
just did a similar exercise to get ours from ~20+ mins down to <5, and had by no means exhausted opportunities to go faster, just felt like that was good enough

as a rails shop so much of our test time is spent on factory_bot, if I wanted to get subminute moving to fixtures would do the trick, just a bigger project than it's worth right now

emschwartz 4 hours ago||
I'd be curious if anyone with a Rust code base can manage this
nicoburns 1 minute ago||
My Rust web browser engine (https://github.com/dioxuslabs/blitz) currently has 4-5 minute CI times. It could trivially be brought down to 2-3 minutes by using the faster runners they're using, but so far I haven't judged that difference to be worth the lift. Sub 1-minute would probably be difficult.

This includes running 200k WPT tests. Although that job is already run on a fast runner.

thesurlydev 2 hours ago|||
This is one of the reasons I decided to experiment. I have a platform which has zero dependency "core" apps combined with hexagonal architecture. For example, zero dependency business logic with hand-written reusable modules combined with ops/infra (without the zero dependency constraint). Because you don't want to be hand-rolling things like crypto for TLS termination, etc. I instead use Pingora as a gateway for common things like credential injection and TLS termination. It turns out you can get pretty far with this setup and compile times are extremely fast compared to apps that have dozens or hundreds of crate deps.
rockwotj 4 hours ago|||
unlikely a large rust codebase can compile this fast and run tests without remote caching and incremental test running (they mention at the end they don’t do this)
six_seven 2 hours ago||
Or needs to run tests on embedded devices.
bob1029 4 hours ago||
The gaming industry has been leaning on vendors like Incredibuild to dramatically reduce iteration times.

It looks like they might have a whole new market segment to play with.

esafak 4 hours ago||
How do you get subminute runs on Github Actions ? It's barely working as we speak: https://www.githubstatus.com/incidents/121bhnw0ptrb
vaidyahunt 1 hour ago|
[dead]
More comments...