[codex] add npm compilePackages sweep#4350
Draft
andrewtdiz wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue: #805
Summary
Adds an advisory npm package sweep for
perry.compilePackages:test-compat/npm-sweep/run.pyrunner that generates one temporary fixture per package, installs npm dependencies, compiles a tiny namespace import withperry.compilePackages, optionally runs the output, and writes JSON/CSV/Markdown artifacts plus per-package logs;nanoid,ms,zod,uuid,dayjs,chalk) and issue-body targets (express,hono,pino,vitest,prisma) ready for wider manual/nightly runs;test-compat/npm-sweep-history.csvso scheduled runs append trend rows before uploading artifacts;NPM Package Sweepworkflow that builds Perry, runs the sweep, uploads artifacts, and stays advisory unless manually dispatched withstrict=true;Why this cut
#805 asks for continuous npm-package validation and trendable first-failure reporting. This is intentionally separate from
tests/release/packages, which remains the pinned deterministic release tier. Keeping the runner, package manifest, artifact schema, and scheduled workflow together makes the CI signal usable without mixing in package-compat fixes.Validation
python3 -m unittest tests.test_npm_sweeptest-compat/npm-sweep/packages.jsonand.github/workflows/npm-package-sweep.ymlpython3 test-compat/npm-sweep/run.py --dry-run --packages nanoid,ms --out-dir /tmp/perry-npm-sweep-dry-2 --history /tmp/perry-npm-sweep-history-2.csvpython3 test-compat/npm-sweep/run.py --packages ms --limit 1 --perry-bin /bin/false --out-dir /tmp/perry-npm-sweep-install-classify-2 --history /tmp/perry-npm-sweep-install-classify-history-2.csv --install-timeout 120 --compile-timeout 10 --run-timeout 5compile-failartifacts.cargo fmt --all -- --checkgit diff --checkgit diff --cached --check./scripts/check_file_size.shKnown limitations
perry-runtime,perry-stdlib, andperrybefore running the sweep.Non-goals