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

exporter: check ser2net version in exporter #1395

Merged
merged 1 commit into from
May 7, 2024

Conversation

threexc
Copy link
Contributor

@threexc threexc commented May 6, 2024

The following ser2net versions return nonzero even on a successful use of the -v flag to get the version:

v4.4.0
v4.5.0
v4.5.1
v4.6.0
v4.6.1

This was fixed in v4.6.2, which was only recently released. Modify _start() so that it uses subprocess.run() to capture stdout and the returncode, then check against the version and effectively ignore the return value if there's a match. If the ser2net version is one of the unaffected ones (e.g. v4.6.2) and still returns nonzero, then raise an ExporterError.

Tested locally by installing in a venv and running the exporter.

Fixes #1383

The following ser2net versions return nonzero even on a successful use
of the -v flag to get the version:

v4.4.0
v4.5.0
v4.5.1
v4.6.0
v4.6.1

This was fixed in v4.6.2, which was only recently released. Modify
_start() so that it uses subprocess.run() to capture stdout and the
returncode, then check against the version and effectively ignore the
return value if there's a match. If the ser2net version is one of the
unaffected ones (e.g. v4.6.2) and still returns nonzero, then raise an
ExporterError.

Signed-off-by: Trevor Gamblin <[email protected]>
@threexc
Copy link
Contributor Author

threexc commented May 6, 2024

Force-pushed an update after I realized the comments I added in exporter.py didn't match the commit message. Sorry about that.

Feedback would be greatly appreciated in case there's a different way this issue should be addressed.

@jluebbe jluebbe merged commit 70232e4 into labgrid-project:master May 7, 2024
9 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.

ser2net fails on place acquire
3 participants