Repository navigation
Add Sourcery CI workflow - #948
Merged
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds Sourcery static analysis to the project via pre-commit and small refactors suggested by Sourcery in qmctl, along with cleanup of an unnecessary pass statement. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
ArtiomDivak
force-pushed
the
sourcery
branch
3 times, most recently
from
November 12, 2025 11:46
99a8707 to
36c2ec7
Compare
Collaborator
Author
|
@sourcery-ai review |
Collaborator
|
Please take a look here https://github.com/containers/qm/actions/runs/19296341436/job/55179130811?pr=948 There are output and ideas to fix |
Yarboa
reviewed
Nov 13, 2025
ArtiomDivak
force-pushed
the
sourcery
branch
4 times, most recently
from
November 20, 2025 12:20
a3c713b to
6b6e6e0
Compare
ArtiomDivak
force-pushed
the
sourcery
branch
2 times, most recently
from
November 20, 2025 12:47
f8f28be to
0573ac4
Compare
ArtiomDivak
force-pushed
the
sourcery
branch
3 times, most recently
from
December 16, 2025 05:23
398415e to
6c2a7b5
Compare
ArtiomDivak
force-pushed
the
sourcery
branch
2 times, most recently
from
December 16, 2025 06:44
1eef217 to
c1f445b
Compare
ArtiomDivak
marked this pull request as ready for review
December 16, 2025 06:59
ArtiomDivak
requested review from
aesteve-rh,
dougsland,
kleinffm,
nsednev,
pengshanyu and
rhatdan
as code owners
December 16, 2025 06:59
Contributor
There was a problem hiding this comment.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `tools/qmctl/qmctl.py:264-269` </location>
<code_context>
- options = kwargs if kwargs else defaults
+ options = kwargs or defaults
try:
- result = subprocess.run( # nosec B603
+ return subprocess.run( # nosec B603
cmd,
**options,
)
- return result
except Exception as e:
raise RuntimeError(f"subprocess.run failed: {e}") from e
</code_context>
<issue_to_address>
**issue (bug_risk):** Narrow the exception type around `subprocess.run` to avoid swallowing interrupts and unrelated errors.
Catching `Exception` here will also intercept `KeyboardInterrupt` and `SystemExit`, making the CLI harder to interrupt and potentially hiding unrelated problems. Prefer catching specific errors (e.g., `OSError`, `subprocess.SubprocessError`) so only subprocess-related failures are wrapped in `RuntimeError` and truly exceptional conditions still propagate.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
ArtiomDivak
force-pushed
the
sourcery
branch
from
December 16, 2025 07:05
c1f445b to
9fcf02f
Compare
ArtiomDivak
force-pushed
the
sourcery
branch
from
December 16, 2025 09:31
9fcf02f to
b4db463
Compare
- Add Sourcery pre-commit hook with exclusions for demos and test directories - Fix syntax error in tests/qm-ipc/server/server.py closes https://issues.redhat.com/browse/VROOM-34063 Signed-off-by: Artiom Divak <adivak@redhat.com>
ArtiomDivak
force-pushed
the
sourcery
branch
from
December 16, 2025 09:52
b4db463 to
304f2c7
Compare
Member
|
triggering CI/CD failure. |
Member
|
Related: #951 |
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.
Summary by Sourcery
resolve #940
Add a new GitHub Actions workflow to run Sourcery code reviews on pull requests.
CI:
Summary by Sourcery
Integrate Sourcery static analysis into local tooling and apply minor code cleanups to qmctl.
Enhancements: