feat #189: introduce max_workers key in app config#201
Merged
sushant-suse merged 3 commits intoopenSUSE:mainfrom Mar 16, 2026
Merged
feat #189: introduce max_workers key in app config#201sushant-suse merged 3 commits intoopenSUSE:mainfrom
sushant-suse merged 3 commits intoopenSUSE:mainfrom
Conversation
Signed-off-by: sushant-suse <sushant.gaurav@suse.com>
Coverage ReportFor commit 723ed58 Click to expand Coverage Report Name Stmts Miss Branch BrPart Cover
--------------------------------------------------------------------------------
+ src/docbuild/models/deliverable.py 180 1 22 0 99.5%
+ src/docbuild/cli/cmd_check/process.py 58 0 22 1 98.8%
+ src/docbuild/models/manifest.py 111 1 12 1 98.4%
+ src/docbuild/cli/cmd_cli.py 93 1 8 1 98.0%
+ src/docbuild/utils/pidlock.py 79 1 14 1 97.8%
+ src/docbuild/cli/cmd_validate/process.py 178 5 52 4 96.1%
+ src/docbuild/cli/callback.py 35 0 10 2 95.6%
- src/docbuild/cli/cmd_config/__init__.py 9 1 0 0 88.9%
- src/docbuild/config/xml/stitch.py 47 5 12 0 88.1%
- src/docbuild/cli/cmd_metadata/metaprocess.py 215 26 66 13 82.6%
- src/docbuild/cli/cmd_check/__init__.py 18 5 2 0 65.0%
- src/docbuild/cli/cmd_build/__init__.py 13 5 0 0 61.5%
- src/docbuild/cli/cmd_metadata/__init__.py 27 10 2 0 58.6%
- src/docbuild/cli/cmd_config/environment.py 11 6 2 0 38.5%
--------------------------------------------------------------------------------
+ TOTAL 2920 67 686 23 97.0%
46 files skipped due to complete coverage. |
tomschr
requested changes
Mar 16, 2026
Contributor
tomschr
left a comment
There was a problem hiding this comment.
Thanks Sushant! The implementation looks fine. 👍 I would suggest some changes in the test cases. I've sketched a possible idea.
tomschr
reviewed
Mar 16, 2026
tomschr
reviewed
Mar 16, 2026
tomschr
reviewed
Mar 16, 2026
tomschr
reviewed
Mar 16, 2026
…r max_workers Signed-off-by: sushant-suse <sushant.gaurav@suse.com>
Collaborator
Author
|
Hi Toms, I've updated the PR based on your feedback. Here is a summary of the changes: 1.
|
tomschr
requested changes
Mar 16, 2026
Contributor
tomschr
left a comment
There was a problem hiding this comment.
Great! I have only two minor things, otherwise good job! 👍
Signed-off-by: sushant-suse <sushant.gaurav@suse.com>
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.
Related Issue #189
This PR introduces a new
max_workerskey to the application configuration to manage concurrency levels dynamically.Changes:
max_workerstoAppConfiginsrc/docbuild/models/config/app.py.field_validatorthat resolves:all-> Total system CPU count.half/all2-> 50% of system CPU count (minimum 1).int-> Strict worker count (minimum 1).halfinsrc/docbuild/cli/defaults.py.Validation:
tests/models/test_config_workers.pyandtest_app_config.pyto verify keyword resolution and boundary conditions."half"correctly resolves to4for an 8-core system.