1 day ago · Tech · hide

A blog post about work-stealing for CI caught my attention. Instead of splitting the tests into shards before the jobs start, put every test file in one queue and let each worker take a batch, then another, until the queue is empty. A fast worker takes more batches, a slow one takes fewer, and nobody waits for the unluckiest shard. Their specbandit implementation keeps that queue in Redis, which every worker must be able to reach. This didn’t seem possible on GitHub-hosted runners without running a database somewhere else since GitHub Actions jobs can’t reach each other, runners accept no inbound connections, and a job’s outputs only become visible after it ends. Where there’s a will, there’s a way. We just need a TCP tunnel that can be shared. Here’s how it works. A first job of the workflow starts Valkey in a container and exposes it through a free Pinggy TCP tunnel. It uploads the tunnel’s address as a workflow artifact, and the worker jobs download it, prove with a GitHub OIDC…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town