-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: add checks for the appropriate splunktaucclib version #1363
base: develop
Are you sure you want to change the base?
Conversation
447a629
to
70bf755
Compare
raise SplunktaucclibNotFound( | ||
f"splunktaucclib is not found in {path_to_requirements_file}. " | ||
f"Please add it there because this add-on has UI." | ||
f"splunktaucclib is not found in {path_to_requirements_file} or has invalid version. " | ||
f"Please add it there and check if it is at least version 6.4, because this add-on has UI." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to separate this into 2 different exceptions / messages:
- there is no
splunktaucclib
found but this add-ons has UI splunktaucclib
found but the developer needs to update it to the version we specify because of
I think it would be easier to understand why build does not actually work.
@@ -55,6 +61,24 @@ def _subprocess_call( | |||
raise e | |||
|
|||
|
|||
def _subprocess_run( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very similar to _subprocess_call
. I would suggest refactoring _subprocess_call
into returning full response and using it everywhere.
I think that's a |
Issue number:ADDON-74237
Summary
Added splunktaucclib version checking.
Changes
User experience
The build process will be canceled if an incorrect version of the splunktaucclib library is used.
Checklist
If your change doesn't seem to apply, please leave them unchecked.