logoalt Hacker News

Subminute CI

118 points • by tamentis • today at 5:54 PM • 44 comments • view on HN

Comments

brennerm • today at 6:45 PM

Quick shameful plug because it fits the topic very well. I'm currently building pipescan, a tool to gather insight about your CI pipelines and visualize the data. The goal is to easily identify the jobs/step that yield the most potential for improvements.

It's currently in beta and only supports Github Actions, but I'm actively working on supporting other CI systems such as Gitlab CI, Jenkins, etc.

Have a look at the demo and feel free to give a try with your repo.

Site: https://pipescan.shipit.dev/ Demo: https://pipescan.shipit.dev/demo

➕ show 2 replies
Kinrany • today at 7:53 PM

I'm surprised they measure the median time. It would be a very bad CI setup if 60% of runs were taking one second and 40% were taking one hour.

➕ show 2 replies
bobjordan • today at 7:23 PM

My main project now has a pytest suite with over ~75,000 tests. I had to shut off the github actions and just rely on using a local 10+yr old workstation with an Intel Xeon E5-2696 v4 with 22 cores and 44 threads for our testing. Paying for a VM with similar compute is priced nuts right now while this system can be built for hundreds of dollars. This local test rig is constantly utilized and well worth the one-time investment.

jwilliams • today at 8:12 PM

One other approach I’ll throw in the mix too: Using git trailers to avoid repeated work. https://jonathannen.com/abusing-git-trailers/

➕ show 1 reply
iveqy • today at 7:13 PM

caching in a CI is terribly hard to do correct. Specially if you can't trust all code starting a CI run. It's really easy to end up with poisonous cache.

Apart from that managing hardware bugs is a pita. Your build manifest should be able to tell which hardware built what code, I bet most cache solutions can't share that information.

➕ show 1 reply
martin_drapeau • today at 6:32 PM

Just did a similar thing for Laravel + Vue. CI runs on a dedicated AWS instance, builds assets and publishes them to CDN, runs smoke tests (headless browser) and then lets Laravel Forge deploy to web servers. Down to 5 minutes. I would love to bring that down further.

➕ show 2 replies
joe-esquibel • today at 6:26 PM

I've also been trying to squeeze the maximum amount of juice from my CI pipeline. It's typically the bottleneck in my agentic code factory. I don't think I did anything too novel just applied all the typical skips, smart loading of jobs, sharding, O(N) reduction, analyses of all the jobs to minimize time. It really helped. I built a little feed back loop, I measure my CI back log estimate and that dictates the rate at which new agents launch on the repo.

➕ show 1 reply
kccqzy • today at 6:14 PM

I’m surprised that they still use forking. It probably means that they aren’t using threads at all, and are likely leaving performance on the table. Even if they mainly use Python, native code extensions still benefit from threads and thread pools.

➕ show 2 replies
colek42 • today at 6:11 PM

One thing I have been experimenting with in our development lifecycle is moving everything into the agentic loop. The key part is building a layer of trust around everything the agent does or schedules. But there's absolutely no reason why your orchestrator needs to be a CI pipeline. The agent can be the orchestrator itself as long as you can validate what it does matches a policy.

This has cut our compute down to about 50% of what it was before and just removed a lot of the problems we had with integrating code at 20+ PRs an hour. We're probably going to move most of our projects over to this methodology fairly soon.

We have been building this into our open-source project, cilock.dev, which, full disclosure, is the core of a new developer tool we are building, pushgate.dev. This all comes from our work on in-toto and software supply chain provenance at Testifysec over the past 6 years.

➕ show 2 replies
teiferer • today at 7:16 PM

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.

➕ show 1 reply
vpaulus • today at 7:58 PM

I am still wondering what "AI-native" means

➕ show 1 reply
K3UL • today at 6:44 PM

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

➕ show 2 replies
muqsitnawaz • today at 6:39 PM

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 • today at 9:52 PM

Sounds like a nightmare of side effects and non-deterministic tests

pjm331 • today at 6:17 PM

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 • today at 6:13 PM

I'd be curious if anyone with a Rust code base can manage this

➕ show 3 replies
bob1029 • today at 6:31 PM

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 • today at 6:33 PM

How do you get subminute runs on Github Actions ? It's barely working as we speak: https://www.githubstatus.com/incidents/121bhnw0ptrb

vaidyahunt • today at 8:45 PM

[dead]

sumwise • today at 7:05 PM

[dead]

yunyu • today at 6:03 PM

[flagged]

➕ show 1 reply