Automating cherry-picks between OSS and private forks — PlanetScale
PlanetScale replaced its weekly cron-based cherry-picking and its conflict-replaying git-replay tool with a stateful Vitess cherry-pick bot that continuously syncs OSS Vitess into a private fork. The bot runs hourly in GitHub Actions and stores state in a PlanetScale database. It fetches merged PRs with go-github and cherry-picks them from OSS main into private upstream, opening draft PRs labeled as conflicts when they don't apply cleanly. Backports to private latest-x.0 branches are triggered by labels. Weekly reconciliation checks flag missed cherry-picks, open PRs and non-backport merges, giving the team confidence to rely on the bot for over a year and a half.
Related posts
- Simple trick to save environment and money when using GitHub Actions
Turso mediumAdeptGitHub Actions keeps running workflows for outdated pull request commits until they finish or fail. That wastes runner time, money on private repos, and quota on open source ones. Adding a `concurrency` block keyed on workflow name and PR number (falling back to the ref) with `cancel-in-progress: true` makes GitHub cancel stale runs when a PR is updated. In the first week after this change, 56 runs were cancelled in the LibSQL repository.
- Federation Platform and Privacy Waves: How Meta distributes compliance-related tasks at scale
Meta Engineering mediumAdeptMeta's Federation Platform turns large compliance initiatives into code-defined workstreams that scrape privacy flags, resolve asset ownership via a central catalog, group related flags, and either file tasks or send automated diffs, with resolution logic that auto-closes or reopens tasks. Privacy Waves batches these tasks monthly with shared deadlines, lint-based filtering of low-value work, a matching algorithm that weighs teams' competing priorities, wizard-style structured tasks, and tracked health metrics such as completion and deferral rates. The system handles over 100,000 tasks a year, cuts effort on some tasks by around 50%, and is estimated to have saved hundreds of thousands of engineering hours. It is now being extended to security, accessibility and engineering-excellence work such as API migrations.
- How River takes security work from a fix to merge
Shopify Engineering mediumAdeptRiver, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure. It revalidates each ledger entry against the live repository head, PR state and vulnerability tracker before editing. It replays upgrades on the current head, grafts changes into the current lockfile, and ignores CI results from superseded commits. When it reaches a decision it cannot make, it hands owners one narrow question. After merge it confirms the default branch no longer carries the vulnerability. In the first 11 days the dependency backlog fell about 70%, and security merges through the freshness-gated merge queue rose from about 10% to 80%. The key lesson is that prompts can express judgment, but guarantees such as enumeration, deduplication and current-head identity must be enforced in code.
- 20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog
Datadog Engineering mediumAdeptDatadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP. Because Git objects are content-addressed, relays install received packfiles without re-indexing. A pack cache serves about half of pack-building fetches without redoing delta compression. Traffic grew 20× in four months while median latency held near 40 ms, and fetch-serving CPU on the old backend fell 3–4×. A read-only HTTP API for ref resolution and file reads also replaced many full clones by internal tools and AI agents.
- How We’re Building Git for Infrastructure
Railway mediumAdeptRailway's Changesets let teams fork an infrastructure environment like a Git branch, record each config or service change as a changeset, and merge it back into the parent environment. Instead of storing Git-style parent pointers (too many sequential queries) or rebuilding the tree in memory (too memory-heavy), each changeset has a single original environment and an ordering id from a PostgreSQL serial column, and each environment records its parent and fork point, so a diff is one simple query. The scope was deliberately limited to fork-and-merge-into-parent, with no arbitrary environment merges or merge requests. Tests use a Mermaid gitGraph-like DSL helper that can also print a Mermaid diagram of the test state for visual debugging.