infer analyzer does not work with --jobs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start in codechecker_analyzer/analyzers/infer/analyzer.py, the file named in the issue’s workaround, and inspect how the Infer command is assembled when CodeChecker runs with --jobs. Compare the generated command with the workaround and run the reproduction using --jobs 1 and a larger job count. Done means Infer’s subprocesses no longer cause the overall process count to substantially exceed the requested jobs.
Written by the indexing model from the issue text.
Description
Describe the bug
When starting CodeChecker analyze with --jobs then most analyzers start only one process per slot. But infer itself starts a lot of sub-processes. So in the end much more processes than indicated by --jobs are running.
Starting infer with --jobs 1 fixes the issue.
CodeChecker version
6.29.1
To Reproduce
Steps to reproduce the behaviour:
Start CodeChecker analyze --jobs $(nproc) --analyzers infer -- compile_commands.json on a big build with many files.
Load goes much higher than $(nproc) since there are more infer processes than allowed by --jobs.
Expected behaviour
Load stays at $(nproc) or slightly above.
Additional context
infer 1.3.0
The following "patch" fixes the issue for me:
sed -i -e "s/--keep-going',/--keep-going', '--jobs', '1',/" codechecker_analyzer/analyzers/infer/analyzer.py
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 494
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 20
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Ericsson/codechecker
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Ericsson/codechecker#5129 ·
Maintainers usually reply within 1 day
-
CodeChecker 6.29+ ignores locale settings and forces UTF-8Possibly taken @ump45nose claimed this 7 days ago. Openbazel :jigsaw: bug :bug: CLI :computer: good first issue good to go :rocket: usability :+1:
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Ericsson/codechecker#5121 · 2 comments ·
Maintainers usually reply within 1 day
-
good to go :rocket:
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Ericsson/codechecker#5118 ·
Maintainers usually reply within 1 day
-
SQLAlchemy deprecation warning in CIPossibly taken @Anandb71 claimed this 2 days ago. Opengood to go :rocket:
Difficulty 1/5 1-3 hours Newbie friendliness 25/100
Ericsson/codechecker#5116 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
Ericsson/codechecker#5112 ·
Maintainers usually reply within 1 day
All issues in Ericsson/codechecker
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
MystenLabs/MemWal#1163 · 2 comments ·
Maintainers usually reply within 1 day
-
infertopics leaves new nodes without a topic when untopiced neighbours outnumber topiced onesPossibly taken @moneebullah25 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FinanceFlash/unvibecode#218 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NVIDIA/earth2studio#1241 ·
Maintainers usually reply within 3 days