Harden npm launcher and scale corpus-generate workflow#23
Open
TheColby wants to merge 5 commits into
Open
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.
Motivation
npmlauncher robust in real-world installs by reliably locating Python, capturing child output, and only bootstrapping deps when truly missing.--variants-per-inputruns.Description
npm/verbx.jsto search Python executables ($PYTHON,python3,python, andpyon Windows), capture stdout/stderr for accurateModuleNotFoundErrordetection, and print clearer bootstrap diagnostics when invoking-m pip install --user.verbx batch corpus-generateinsrc/verbx/cli.pywith--jobs,--checkpoint-file,--resume,--num-shards, and--shard-index, streaming JSONL manifest writes, shard-aware planning, and per-run resume/failure accounting._generate_corpus_variantwith deterministic per-variant RNG seeding so parallel generation is reproducible, and usedThreadPoolExecutorto parallelize per-input variant generation.README.md,docs/AI_AUGMENTATION.md) to document launcher fallback/bootstrap behavior and the new corpus-generation flags, and added unit tests covering shard dry-run output, checkpoint/resume, and npm-launcher behavior.Testing
python -m ruff check src/verbx/cli.py tests/test_cli.py tests/test_npm_launcher.pywhich passed.python -m pytest tests/test_cli.py -k "corpus_generate" -qwhich produced4 passed, 104 deselected.python -m pytest tests/test_npm_launcher.py -qwhich produced2 passed.Codex Task