-
Notifications
You must be signed in to change notification settings - Fork 24
Feat/app integration #530
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
base: main
Are you sure you want to change the base?
Feat/app integration #530
Conversation
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.
Thank you!
@@ -247,6 +250,12 @@ def _common_install_code(self) -> bool: | |||
logger.error("Failed to setup runner manager user") | |||
raise | |||
|
|||
try: | |||
manager_service.install_package() |
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.
What about upgrading? How is this handled?
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.
It is a local python package.
Installing it with code changes would update the installation.
The _common_install_code
function is called on charm upgrade as well. So it should cover the charm upgrade event.
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.
So due to the --ignore-installed
flag it would just install without caring about a previous installation?
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 have updated the install_package
method to uninstall the packages prior to installing them.
def test_install_package_success(mock_execute_command: MagicMock): | ||
""" | ||
arrange: Mock execute command. | ||
act: Run install_package. | ||
assert: No errors raised. | ||
""" | ||
manager_service.install_package() |
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.
Is this test really adding value?
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.
Personally, I think it does not add value right now.
But it does increase the code coverage.
Test results for commit 57ad4c7Test coverage for 57ad4c7
Static code analysis report
|
TICS Quality Gate✔️ Passedgithub-runner-operatorAll conditions passedSee the results in the TICS Viewer The following files have been checked for this project
|
Applicable spec: ISD-202
Overview
The github-runner-manager service is enabled in the charm now.
Rationale
This allow us to check logs of the service, to monitor if the service is stable.
Checklist
urgent
,trivial
,complex
).The changelog is not updated, since the usage of service does not impact the users.