Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Process: Support configuring log level keywords use #5204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

LowEQ
Copy link
Contributor

@LowEQ LowEQ commented Sep 10, 2024

initial implementation, still need add atest probably to atest\testdata and atest\robot

@@ -323,7 +323,7 @@ def __init__(self):
self._processes = ConnectionCache('No active process.')
self._results = {}

def run_process(self, command, *arguments, **configuration):
def run_process(self, command, log_level=None, *arguments, **configuration):
Copy link
Member

Choose a reason for hiding this comment

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

log_level cannot be a positional argument because it would break pretty much all current usages of this keyword. It should be a keyword-only argument, but I'm not sure is it better to be a separate argument or should it be passed in in **configuration like other such options. The reason we've used **configuration instead of real keyword-only arguments is that this code was written originally for Python 2 that didn't even have keyword-only arguments. It probably should be refactored now, but that should be done separately from this PR. In the current situation including it in **configuration is probably easiest and most consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure, if it is properly done by just adding log_level through ProcessConfiguration __init__.

@LowEQ LowEQ closed this Sep 26, 2024
@LowEQ LowEQ force-pushed the Process--Support-configuring-log-level-keywords-use branch from 6cf8a40 to 1d2086f Compare September 26, 2024 16:48
@LowEQ
Copy link
Contributor Author

LowEQ commented Sep 26, 2024

tried run acceptance tests, all failed, rolling back this branch changes, and try to add the log_level arg into **configuration

@LowEQ LowEQ reopened this Sep 26, 2024
@LowEQ
Copy link
Contributor Author

LowEQ commented Sep 28, 2024

added atests,@pekkaklarck could you do a code review again, when you have time, no hurry, take your time, if any other important to do

@LowEQ LowEQ marked this pull request as ready for review September 28, 2024 16:43
@LowEQ LowEQ changed the title code implementation & doc Process: Support configuring log level keywords use Sep 28, 2024
@franzhaas
Copy link
Contributor

this interacts with this one #5302.

It is likely that there will be some coordination necessary.

@LowEQ
Copy link
Contributor Author

LowEQ commented Apr 15, 2025

this interacts with this one #5302.

It is likely that there will be some coordination necessary.

sorry, I was in an long vacation, will try to merge these changes together

@LowEQ
Copy link
Contributor Author

LowEQ commented Apr 15, 2025

Should be able to review again. when running locally one of the Unit test failed for some reason, but after pushing the change the unit tests passes all?

@LowEQ LowEQ requested a review from pekkaklarck April 15, 2025 20:02
@pekkaklarck
Copy link
Member

I don't have time to review this now and I don't think there's enough time to get this into RF 7.3 either. I added the corresponding issue to RF 7.4 scope, though, so this shouldn't be forgotten.

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