From e5ec81c6e3ecc4b7c982a3c34e971f9207ad5097 Mon Sep 17 00:00:00 2001 From: ohcohen Date: Sun, 15 Nov 2026 12:43:57 +0200 Subject: [PATCH 1/4] docs: say when a range really moves Refs #79 --- packages/leeway/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/leeway/README.md b/packages/leeway/README.md index 13391cc..f9f16b0 100644 --- a/packages/leeway/README.md +++ b/packages/leeway/README.md @@ -88,8 +88,9 @@ shares both, so no two folders get the same ports. - A range is exactly as wide as the catalogue. Adding, reordering or renaming port names moves no port; removing one moves only the ports that fell outside the narrower range. -- A folder keeps its range while its ports are free (or held by its own servers). Otherwise the range moves to free ports and leeway warns: - restart anything still on the old ports. +- A folder keeps its range until `leeway move`, or until it no longer fits: it no longer sits inside one pool, the OS won't let it bind + one of its ports, or a grown catalogue stretches it onto another folder's range or a new port already in use. Then the range moves to + free ports and leeway warns: restart anything still on the old ports. - leeway can't tell the folder's own servers from something else on one of its ports, so a claim that finds one in use keeps the range and names the holder with the fix: `leeway kill` for a server of this folder that should not still be running, [`leeway move`](#leeway-move) for anything else. From 2f97907ecf3c5b520db2a327d60a0e83815efd35 Mon Sep 17 00:00:00 2001 From: ohcohen Date: Sun, 15 Nov 2026 12:44:00 +0200 Subject: [PATCH 2/4] ci: check the release tag before the matrix Refs #79 --- .github/workflows/release.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f70d8c..fa42b02 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,13 +7,28 @@ on: permissions: {} jobs: + tag: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v7 + - name: Tag matches package version + run: | + version=$(node -p "require('./packages/leeway/package.json').version") + if [ "${GITHUB_REF_NAME#v}" != "$version" ]; then + echo "::error::tag $GITHUB_REF_NAME does not match packages/leeway version $version" + exit 1 + fi + ci: + needs: tag uses: ./.github/workflows/ci.yml permissions: contents: read publish: - needs: ci + needs: [tag, ci] runs-on: ubuntu-latest permissions: contents: write @@ -21,13 +36,6 @@ jobs: pull-requests: read steps: - uses: actions/checkout@v7 - - name: Tag matches package version - run: | - version=$(node -p "require('./packages/leeway/package.json').version") - if [ "${GITHUB_REF_NAME#v}" != "$version" ]; then - echo "::error::tag $GITHUB_REF_NAME does not match packages/leeway version $version" - exit 1 - fi - uses: pnpm/action-setup@v6 - uses: actions/setup-node@v7 with: From a62c42c3a2181622a19dc4ab509ca7c8447e09bb Mon Sep 17 00:00:00 2001 From: ohcohen Date: Sun, 15 Nov 2026 12:50:35 +0200 Subject: [PATCH 3/4] docs: adding a port name moves no port only while the wider range fits --- packages/leeway/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/leeway/README.md b/packages/leeway/README.md index f9f16b0..1696300 100644 --- a/packages/leeway/README.md +++ b/packages/leeway/README.md @@ -86,8 +86,8 @@ A folder's range comes from the machine's pools, 21000-29999 unless set otherwis [`leeway pools`](#leeway-pools-set-start-end--reset), and recorded in the registry, `~/.leeway/ranges.json`. Every repo on the machine shares both, so no two folders get the same ports. -- A range is exactly as wide as the catalogue. Adding, reordering or renaming port names moves no port; removing one moves only the ports - that fell outside the narrower range. +- A range is exactly as wide as the catalogue. Reordering or renaming port names moves no port, and neither does adding one while the + wider range fits; removing one moves only the ports that fell outside the narrower range. - A folder keeps its range until `leeway move`, or until it no longer fits: it no longer sits inside one pool, the OS won't let it bind one of its ports, or a grown catalogue stretches it onto another folder's range or a new port already in use. Then the range moves to free ports and leeway warns: restart anything still on the old ports. From a0d4804e2b4add02a37dc56f2c4332092b50b6da Mon Sep 17 00:00:00 2001 From: ohcohen Date: Sun, 15 Nov 2026 12:54:50 +0200 Subject: [PATCH 4/4] docs: Ranges bullets read on one pass and cover renaming --- packages/leeway/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/leeway/README.md b/packages/leeway/README.md index 1696300..edbedb0 100644 --- a/packages/leeway/README.md +++ b/packages/leeway/README.md @@ -86,11 +86,11 @@ A folder's range comes from the machine's pools, 21000-29999 unless set otherwis [`leeway pools`](#leeway-pools-set-start-end--reset), and recorded in the registry, `~/.leeway/ranges.json`. Every repo on the machine shares both, so no two folders get the same ports. -- A range is exactly as wide as the catalogue. Reordering or renaming port names moves no port, and neither does adding one while the +- A range is exactly as wide as the catalogue. Reordering port names or renaming one moves no port, and neither does adding one while the wider range fits; removing one moves only the ports that fell outside the narrower range. -- A folder keeps its range until `leeway move`, or until it no longer fits: it no longer sits inside one pool, the OS won't let it bind - one of its ports, or a grown catalogue stretches it onto another folder's range or a new port already in use. Then the range moves to - free ports and leeway warns: restart anything still on the old ports. +- A folder keeps its range until `leeway move`, or until the range no longer fits: it leaves its pool, the OS refuses one of its ports, or + a grown catalogue reaches into another folder's range or onto a port in use. Then the range moves to free ports and leeway warns: + restart anything still on the old ports. - leeway can't tell the folder's own servers from something else on one of its ports, so a claim that finds one in use keeps the range and names the holder with the fix: `leeway kill` for a server of this folder that should not still be running, [`leeway move`](#leeway-move) for anything else.