Skip to content

Move the packaging guard and dist-packages fix off the release branch - #49

Merged
nedonatelli merged 2 commits into
mainfrom
fix/unstrand-packaging
Aug 4, 2026
Merged

Move the packaging guard and dist-packages fix off the release branch#49
nedonatelli merged 2 commits into
mainfrom
fix/unstrand-packaging

Conversation

@nedonatelli

Copy link
Copy Markdown
Owner

Relocation, not new work. Two fixes were parked on release/v0.122.4 because I
was in release mode when I wrote them. Neither has anything to do with cutting a
release, and leaving them there had a live consequence.

The consequence

Building from main — which is what anyone does — produced a 126 MB package
with a 139 MB Python virtualenv inside it
, and verify-package.mjs passed it
without comment. I hit exactly that while verifying #48.

before (main lineage):   4,785 files, 126.31 MB   ✓ check passed
after:                     604 files,  97.74 MB   ✓ 603/1200

What moves

The packaging guard (cherry-picked whole): .vscodeignore venv exclusions,
plus verify-package.mjs gaining a venv deny-list and a file-count ceiling. That
check previously asked only whether required runtime dependencies were PRESENT,
never whether anything unwanted had joined them — it printed the file count in
its own success line without reacting to it.

dist-packages: Debian and Ubuntu system Python installs there. Excluding
only site-packages fixed the venv problem on the machine it was found on and
left it on the platform where a system interpreter is most likely to sit on the
workspace path. Both are now pinned by the test, which had covered neither.

What stays behind

release/v0.122.4 keeps only the version bump, the changelog, and the doc stat
sync — the things that genuinely belong to a release decision.

npm run check: green. Package from this branch: 604 files, 97.74 MB.

🤖 Generated with Claude Code

nedonatelli and others added 2 commits August 4, 2026 13:02
…ck passed

`npm run package` for 0.122.4 produced 4,785 files and 126 MB, of which 4,181
files and 139 MB were `.graphify-venv` — the virtualenv built for the code-graph
differential. `.gitignore` covers it; `.vscodeignore` is a separate list and
covered nothing venv-shaped.

`verify-package.mjs` passed it. That check asks whether required runtime
dependencies are PRESENT and never whether anything unwanted has joined them,
so a package eight times its normal size drew no comment — it even printed the
file count in its success line. Same shape as the rest of this release: a check
reporting success while measuring the wrong thing.

Two guards, because the deny-list only ever catches what someone thought to
name:

- venv paths added to the deny-list, matched by the packages directory as well
  as the name, so a virtualenv called anything is caught
- a file-count ceiling (1200 against a normal ~600) that fails on bulk nobody
  named, and prints the largest directories so the cause is visible rather than
  guessable

Verified by repackaging with the exclusion removed: the old tree is rejected
naming `.graphify-venv`, and the current one passes at 603/1200.

Package is now 604 files, 97.74 MB.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Debian and Ubuntu system Python installs to `dist-packages`. Excluding only
`site-packages` fixed the venv-drowns-the-graph problem on the machine it was
found on and left it on the platform where a system interpreter is most likely
to sit on the workspace path.

Caught while writing the 0.122.4 changelog: the entry claimed both were
excluded and only one was. The claim described the intent correctly; the code
was the incomplete thing. Both are now pinned by the test, which had covered
neither.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ All checks passed

Check Status
Type check ✅ success
Lint ✅ success
Tests ✅ success

Posted by SideCarAI-Bot

@nedonatelli
nedonatelli merged commit 99dc4da into main Aug 4, 2026
3 checks passed
@nedonatelli
nedonatelli deleted the fix/unstrand-packaging branch September 1, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant