Skip to content

Instantly share code, notes, and snippets.

@willkelly
willkelly / gvisor-host-mounts.md
Last active June 2, 2026 22:51
gVisor host mount modes for local Loom sandboxes

gVisor Host Mounts

Scope

This document covers local Loom usage where cf-harness creates local gVisor sandboxes and selectively exposes host directories to those sandboxes.

It is specifically about host mounts: host paths such as a workspace, cache, or run output directory that become visible inside the sandbox. It is not trying to cover the sandbox root filesystem in general.

@willkelly
willkelly / sync-protocol-vs-memoryv2.md
Created April 1, 2026 23:12
Grounded comparison of stitch sync-protocol vs memory-v2

Sync protocol vs memory-v2, grounded in real repo pain

Framing

This version is intentionally narrower and more grounded.

It does not compare the proposals in the abstract. It compares them against pain we can point to in this repo’s history and in prior PRs.

The standard here is:

@willkelly
willkelly / flaky-tests-report.md
Created January 8, 2026 00:30
Flaky Test Analysis - commontoolsinc/labs (2026-01-07)

Flaky Test Analysis Report

Generated: 2026-01-07
Analyzed: 7 workflow reruns from recent PRs
Repository: commontoolsinc/labs

Executive Summary

Analyzed workflow runs that failed initially but succeeded on rerun without code changes. Found 4 distinct flaky tests across 3 integration test suites, with the shell charm test being the most frequent offender (3 occurrences).

@willkelly
willkelly / zfs-gcs-benchmark-results.md
Last active January 6, 2026 23:33
ZFS GCS Replication Benchmark Results - ClusterDuck

ZFS GCS Replication Benchmark Results

Date: January 6, 2025
Worker: clusterduck-worker-spot-stage-whz7 (c3-standard-22)
Region: us-west1-b
GCS Bucket: clusterduck-zfs-snapshots-stage (same region)
ZFS Pool: spaces (encrypted AES-256-GCM, compression=zstd-3)

Key Findings

@willkelly
willkelly / TRAVERSE_PERFORMANCE_FIX.md
Created December 4, 2025 19:50
traverseDAG performance fix - diamond problem solution with WeakMap memoization

traverseDAG Performance Fix

Problem

CPU pegging at 100% when displaying many charms (7+) due to excessive traverseDAG calls. The system was making 18,623 traversal calls to traverse only 338 unique objects - a 55x repetition factor.

Root Cause: The Diamond Problem

CharmA ──→ SharedDocX
@willkelly
willkelly / ircbouncersetup.md
Last active March 10, 2017 18:30
IRC Bouncer Setup

HELLO

There is only one proper irc setup. Many people will tell you to use a bouncer. These people area silly and wrongheaded folk whose brains are filled with stupid ideas about irc. Let me explain.

What, exactly, is a bouncer? I will tell you! An irc bouncer is an irc client that is written in an irc server. Should you choose to use a bouncer, you will need an irc client to connect to your irc client.

@willkelly
willkelly / identity.rs
Created June 9, 2015 19:36
identity issues
$ rustc main.rs
main.rs:7:21: 7:29 error: unable to infer enough type information about `_`; type annotations required [E0282]
main.rs:7 let f = identity(identity);
^~~~~~~~
error: aborting due to previous error
#!/usr/bin/python
# apt-get install python-pip cgroup-bin
# pip install cgroups
import cgroups
import os
import time
import subprocess
DEBIAN_FRONTEND=noninteractive apt-get install -y mdadm
mdadm -C -l0 --raid-devices=2 /dev/md0 /dev/xvdb /dev/xvdc
mkfs.ext4 /dev/md0
perl -pi -e 's@/dev/xvdb@/dev/md0@g' /etc/fstab
mount -a
#if [[ -d /var/lib/elasticsearch ]]; then
# mv /var/lib/elasticsearch /mnt/elasticsearch
#else
# mkdir /mnt/elasticsearch
# ln -sf /mnt/elasticsearch /var/lib/elasticsearch

What is Aptly

Aptly is software for managing apt repositories.

Features we use

  • Quick package addition / removal.