Repository navigation
feat(cli): add -j and --jobs 0 for one process per core instead of an --async mode (#205) - #238
Merged
Merged
Conversation
…the platform's limit (#205)
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.
Contract
ctracedeprecated its--asyncfor-j/--jobs(CoreTrace/coretrace#158, 2026-10-01): tools run on one worker per core by default,--asyncis a deprecated spelling of that default, andctraceruns this analyzer with--check --format sarif <root>, waiting for the result. Rather than adding an--asyncmode the orchestrator has just retired, the analyzer follows the same model:-j Nis--jobs N;--jobs 0analyses in one process per core the process may run on (os.process_cpu_count), asruntime.jobsofctrace; the default stays 1, so a run without the option is unchanged; a negative value is an error.--fail-on, cache, baseline and SBOM/VEX do not depend on the number of processes; worker processes are bounded and cleaned up by the existing process pool.--asyncoption, and no detached job.engine.analyze_projectkeeps itsjobs >= 1contract; the command line resolves0.Verification
New tests in
tests/test_jobs_option.py(red before the change):-jequals--jobs,-j 0uses one process per core and yields the same report, the default stays one, negative values are rejected,--asyncdoes not exist, the help names-jand0. No existing test changed. Full suite green on 3.14 (apart from the localtest_packagingenvironment issue) and 3.11; ruff, mypy clean; regression snapshots unchanged; mitmproxy:-j 0(8 cores) gives a report identical to-j 1.Closes #205