Skip to content

Instantly share code, notes, and snippets.

View ryan-williams's full-sized avatar
🚆

Ryan Williams ryan-williams

🚆
View GitHub Profile
@ryan-williams
ryan-williams / stdlb#2.md
Created October 26, 2025 16:12
runsascoded/stdlb#2 (pr) - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[runsascoded/stdlb#2] Snapshot testing, collision fixes, and src/ layout

Summary

This PR adds comprehensive snapshot testing to prevent regressions, fixes name collision issues discovered when comparing to v0.0.4, and reorganizes the codebase with a src/ layout.

Key Changes

  • Snapshot testing (scripts/snapshot_exports.py, tests/test_exports_snapshot.py)
  • Tracks all 2127 exported symbols with their FQNs
@ryan-williams
ryan-williams / marin#1773.md
Last active October 24, 2025 22:19
marin-community/marin#1773 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[marin-community/marin#1773] "Workspace" monorepo plan

(Versioned write-up [here][gist], synced via [ghpr])

Problem

Marin and [Levanter] repos contain components that depend on one another in ways that the current repo split doesn't reflect well, and makes awkward for co-development.

Proposed solution: [uv workspaces][workspaces]

"Workspaces" provide a way to colocate distinct libraries in one repo, such that they can be published and depended on independently (by external users), but naturally depend on each others' HEAD commits (and can easily be updated in lockstep, during common internal / co-development cases).

@ryan-williams
ryan-williams / marin#1723.md
Last active October 25, 2025 19:08
marin-community/marin#1723 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[marin-community/marin#1723] "Workspace" step 2: levanter

Second step in the "uv workspace migration plan" ([#1773]): ingests [Levanter] as a workspace member with full Git history preserved.

Builds on: [#1690] (workspace initialization)

Changes

  • Merge [Levanter] into lib/levanter/ (preserving full Git history)
  • Add Levanter member to workspace root pyproject.toml
@ryan-williams
ryan-williams / marin#1690.md
Last active October 25, 2025 19:08
marin-community/marin#1690 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[marin-community/marin#1690] "Workspace" step 1: marin

First step in the "uv workspace migration plan" ([#1773]): initializes a uv workspace and moves the marin package into lib/marin/.

Next step: [#1723] (Levanter integration)

Changes

  • Creates workspace root pyproject.toml
  • Moves src/lib/marin/src/
@ryan-williams
ryan-williams / marin#1646.md
Last active September 25, 2025 15:16
marin-community/marin#1646 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[marin-community/marin#1646] Pin levanter[serve] to 775ac7c6

  • Since Sept '24[^1], Marin's Levanter dep was a "pin" of the form >=1.2.devNNNN
    • When Levanter PRs land, 1.2.devNNNN versions are published by [publish_dev.yml]
      • e.g. [levanter#1127] → [publish_dev#315] → [1.2.dev1500]
    • If Marin needs the changes, it may bump its pin
      • e.g. [marin#1522][#1522] / [pin][levanter>=1.2.dev1500 pin]
      • Marin may have frequently skipped a Levanter bump, when it actually needed more recent changes, since the convention was use >= rather than ==
  • [#1591] moved to a == pin ([levanter==1.2.dev1535])
  • [#1616] moved to a "floating" dep (against [levanter@main])
@ryan-williams
ryan-williams / git-helpers#104.md
Created September 24, 2025 17:27
ryan-williams/git-helpers#104 (issue) - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[ryan-williams/git-helpers#104] 'add-global-file' is not a git command

I took this for a spin and encountered an issue with what I'm guessing is an unported script...

> . .git-rc
git: 'add-global-config-file' is not a git command. See 'git --help'.

I dug into this a bit and ended up provisionally including the config/.gitconfig into my ~/.gitconfig by hand. Then...

@ryan-williams
ryan-williams / git-helpers#1.md
Created September 24, 2025 17:16
ryan-williams/git-helpers#1 (issue) - 2-way sync via github-pr.py (ryan-williams/git-helpers)

ryan-williams/git-helpers#1 Add issues command, which opens github issues for a repo

Just came up with this command, I think it's gonna be great!

While you're in a git repo on your command line, you run issues and it opens the github issues for that repo in your browser.

@ryan-williams
ryan-williams / .00-Marin-Levanter.md
Last active September 25, 2025 05:15
Analyze the Marin → Levanter dependency over time: https://openathena.s3.amazonaws.com/marin-levanter.html

Marin/Levanter Version Tracker

Analyze the [Marin] → [Levanter] dependency over time: [openathena.s3.amazonaws.com/marin-levanter.html][demo]

[![Marin/Levanter Version Tracker][og.png]][demo]

Overview

This tool analyzes the Git history and PyPI releases to visualize:

  • 404 commits to [Marin]'s main branch (since [#224], Sept 11, 2024)
@ryan-williams
ryan-williams / marin#1567.md
Last active September 16, 2025 20:24
marin-community/marin#1567 - 2-way sync via github-pr.py (ryan-williams/git-helpers)
@ryan-williams
ryan-williams / thalas#4.md
Last active September 16, 2025 18:37
marin-community/thalas#4 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

[marin-community/thalas#4] Factor executor code+history from marin-community/marin

Extend/Replace #3

Marin test: [#1567][marin#1567]

[marin#1567] uses this branch, and has green CI.