Skip to content

Instantly share code, notes, and snippets.

@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.
from sqlalchemy import create_engine, Column, Integer
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
engine = create_engine('postgresql+psycopg2://testman:testmanpass@localhost:5432/testman')
class TestMan(Base):
__tablename__ = "testman"
from sqlalchemy import create_engine, Column, Integer
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
engine = create_engine('postgresql+psycopg2://testman:testmanpass@localhost:5432/testman')
class TestMan(Base):
__tablename__ = "testman"