Skip to content
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

[py]: Propagate stderr to exceptions when selenium manager fails #11329

Merged
merged 11 commits into from Dec 1, 2022

Conversation

symonk
Copy link
Member

@symonk symonk commented Nov 28, 2022

Capture stderr when calling selenium manager and propogate the error to the user. This propagates stderr to the user (and stdout for now). When selenium manager exits 0 we pass on the stripped path returned from its stdout.

adds some unit tests for the manager aswell as we currently have none. I've made the SeleniunManager class require an instance to use as its a single place we use it and I think we may want to build some internal state soon, rather than have a bunch of static methods in a class calling each other from the class directly.

Thanks!

Relates to #11301

@symonk symonk added this to the 4.7 milestone Nov 28, 2022
@symonk
Copy link
Member Author

symonk commented Nov 28, 2022

Did CI change? I'd definitely expect full python tests to run against this diff?

@symonk
Copy link
Member Author

symonk commented Nov 29, 2022

selenium-manager binary is not .gitignored in /py/* so i've accidentally committed here, will fix this PR when I have free time after work

@titusfortner
Copy link
Member

Hah, yes, we need to add them to .gitignore. Sorry & thanks.

@symonk symonk changed the title Propagate stderr to exceptions when selenium manager fails [py]: Propagate stderr to exceptions when selenium manager fails Nov 30, 2022
@symonk
Copy link
Member Author

symonk commented Nov 30, 2022

important to squash here

@titusfortner titusfortner merged commit 8b6dbb3 into trunk Dec 1, 2022
@titusfortner titusfortner deleted the selenium-manager-python-stderr-handling branch December 1, 2022 14:28
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.

None yet

2 participants