Skip to content

[Python][CodeQL] Add explicit ownership check#22715

Open
siliataider wants to merge 3 commits into
root-project:masterfrom
siliataider:code-quality-3
Open

[Python][CodeQL] Add explicit ownership check#22715
siliataider wants to merge 3 commits into
root-project:masterfrom
siliataider:code-quality-3

Conversation

@siliataider

@siliataider siliataider commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

Small cleanup:

  • CodeQL flags if True: as a constant conditional.
    Replaced it with explicit __python_owns__ checks before/after addOwned which is what we really want to verify.

  • Also fixed the duplicate TestRooArgList test class: two classes in this file were both named TestRooArgList, so the second silently overwrote the first and its test never ran. Renamed it to TestRooCmdArg

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 11h 10m 7s ⏱️
 3 872 tests  3 821 ✅   0 💤 51 ❌
74 722 runs  74 294 ✅ 377 💤 51 ❌

For more details on these failures, see this check.

Results for commit 1db090f.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants