feat(repro): --lint runs lintrunner on a CPU box#218
Merged
Conversation
…ild) gpu-dev repro --lint reserves a CPU warm box (cpu-x86, gpu_count=0), checks out the ref source-only, and runs lintrunner instead of a python test. Bare 'repro --lint' lints current main (--all-files); a PR ref lints the diff (--merge-base-with origin/main, CI-equivalent); extra args pass through to lintrunner. ref is now optional (defaults to main with --lint). Bumps gpu-dev to 0.7.13.
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.
What
Adds
gpu-dev repro --lint— run a PyTorch lint job on a CPU box instead of a python test.--gpu-type cpu-x86and forcesgpu_count=0(the lambda rejects CPU reservations with gpus>0). Same warm-claim-first path → instant CPU warm pod when available.pip install -e .. Lint only needs source, staged at the ref (clones partial if the pod has no tree).lintrunner initthen lint.repro --lint→ lints main,--all-files(ref is now optional, defaults to main).repro --lint pr/N→ lints the PR diff (--merge-base-with origin/main, CI-equivalent).--all-files).--keepleaves it running;--no-connectis CI mode (exit code = lint result).Tests
8 new unit tests in
test_repro.py(cpu-x86 + gpu_count=0, default scopes for PR vs main, extra-arg passthrough, lint verdict, ref-required for test path). Full suite: 1207 passed, 3 pre-existing xfails.Bumps
gpu-dev→ 0.7.13 (CLI-only; no tofu apply needed).