Top
Best
New

Posted by tamentis 4 hours ago

Subminute CI(engineering.moab.com)
116 points | 44 comments
brennerm 3 hours ago|
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

phil-martin 40 minutes ago||
That sounds awesome!

Related only that it’s also a shameful plug (sans links because I don’t have any)

I’ve built a proof-of-concept CI yaml compiler that converts it all into runnable nodes that track dependencies appearing it to figure out and flag where there are missed opportunities for parallelism

Once it has this new compiled DAG a schedule goes and sends out the work across available build agents, using a scheduler that continually measures and optimises for earliest completion time or whatever metric matters to you

It sounds like wasted effort but the ability to dynamically prioritise at a broad or granular level, and to not depend on the CI systems scheduler, and control how results are cached has been a really big deal for us

bravura 1 hour ago||
Support blacksmith.sh?
brennerm 1 hour ago||
AFAIK they just provide the runners that Github Actions will put your pipelines on. So the CI provider is still Github Actions which is supported. (y)
Kinrany 2 hours ago||
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.
jayyhk 2 hours ago||
One of the post authors here.

The metric we used is the median (P50) of the critical path time (aka the amount of time it takes all required checks to complete).

P50 is a good metric, because CI time varies little between runs. In practice, P50, P90, and P95 often end up being the same.

KneeAwn 1 hour ago||
Wouldn’t you want P90 or P95 for when those times aren’t the same?
sbysb 45 minutes ago||
P90/95 might make the better internal measure, but I bet they use p50 because it hits 1 minute and is a better blog title. If you are choosing between p90 at 1:30/ P95 at 2:15 or p50 at 0:58 - one of these makes a much more eye catching article title
xishi 1 hour ago||
median != mean
bobjordan 3 hours ago||
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 2 hours ago||
One other approach I’ll throw in the mix too: Using git trailers to avoid repeated work. https://jonathannen.com/abusing-git-trailers/
IshKebab 1 hour ago|
That seems... pretty janky to be honest. Not compatible with merge queues (which should be the default). The way it should really work is you have an accurate build graph with sandboxing and cache the results. Basically Bazel, Buck2, etc. Then when your agent runs tests the results get cached, and when CI does it again it uses the cache... but it also works if something has changed.
jwilliams 33 minutes ago||
I wouldn't disagree - the post calls it a poor man's Bazel. Jumping to Bazel isn't always a natural increment though, and the trailer works for things outside the build graph too. It works well for our case.
iveqy 3 hours ago||
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.

arialdomartini 2 hours ago||
You might like https://dagger.io/
binsquare 51 minutes ago||
+1, i like dagger
vodol 28 minutes ago||
[dead]
martin_drapeau 3 hours ago||
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.
axelfontaine 3 hours ago||
If you want to go further down this route, we built Sprinters (https://sprinters.sh) where you get a fresh ephemeral EC2 instance for each build at $0.01/job + AWS cost (you bring your own account).
helsenki 3 hours ago||
[dead]
joe-esquibel 4 hours ago||
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.
outageroom 1 hour ago|
I’m glad that our biggest projects are open source, so we don’t have to pay $3k a month for CI...
kccqzy 4 hours ago||
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.
byroot 3 hours ago||
You can fork and use threads, what POSIX disallow is to fork after having started threads, as long as you fork before you're in the clear.

And in practice, at least on Linux, forking after having spawned threads is possible if done extremely carefully, but hard to do.

Culmone 3 hours ago||
Forking is a parallelization strategy, not evidence of an absence of multithreading.

I'm skeptical that pure threading would improve throughput here.

colek42 4 hours ago|
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.

CBLT 3 hours ago||
I agree with the premise, but why did you chose signatures and attestation over just job caching? Having job infra that can be driven by CI or local, and caches by input hashes, is the "traditional" way of doing this in big tech.
philipp-gayret 4 hours ago||
> The key part is building a layer of trust around everything the agent does or schedules.

I can attest to this, the way I approach it is to give my agents (inside of a private software factory running all day) tooling to run their CI-equivalent processes on the same machines they build and deploy to. Every build, test, deploy and so forth is attested by the server and there's no way around it, entire process takes about 5 seconds to get a Docker image minus tests. Tests are measured outside of individual tasks to keep it sub 10-sec. Has been working amazingly well.

More comments...