Skip to content

Conversation

rezib
Copy link
Collaborator

@rezib rezib commented Aug 1, 2025

Some code refactoring for the purpose of simplifying some Controller functions (reduce number of branches and arguments) to stay below Pylint thresholds. The pull request allow brings a new test case for TestResults that wasn't covered by isolated tests.

@rezib rezib force-pushed the pr/refactor-pylint branch from 671e1f9 to 5d37f87 Compare August 1, 2025 09:41
@rezib rezib requested review from valeriyoann and qa-cea August 1, 2025 10:08
rezib added 3 commits August 25, 2025 09:20
Refactor action_build() function in Controller module by moving part of
its code in new function build_pkgs(). The purpose is to reduce
complexity of action_build() and avoid reaching Pylint branching limit.
This notably allows removing results argument from many functions in
Controller. One motivation of this change is to satisfy pylint which
emits warnings when there are more than 5 arguments on a function.

A testcase is also introduced to cover all method of TestResults class.
Thanks to refactorings brought by some parent commits, the minimum
expected Pylint score can be increased.
@rezib rezib force-pushed the pr/refactor-pylint branch from 5d37f87 to fe134a1 Compare August 25, 2025 07:22
@rezib rezib requested a review from qa-cea August 25, 2025 07:24
@valeriyoann valeriyoann merged commit 9b37415 into cea-hpc:master Sep 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants