-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add new diagnostic check to validate the agent status #126
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
Conversation
38f7215
to
a5e49b3
Compare
74dab13
to
28c5dd3
Compare
54c311d
to
f73323a
Compare
f73323a
to
d5337c2
Compare
print(f"Path to 'dist' directory: {dist_directory}") | ||
|
||
# List files in the directory | ||
files = os.listdir(dist_directory) |
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.
@obs-gh-mattcotter are the test_*
files that are not test_diagnose
just spacing changes? I believe I had used black to format everything but maybe our formatters are different?
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.
Utils has real changes; I moved some docker helpers there to unify that and add better debug logging. test_config also changed since I split up running the init-config from diagnose command.
But yes, the bulk of the diff there is formatting changes, but they were done with black 🤔
@u.print_test_decorator | ||
def run_test_docker(remote_host: u.Host, env_vars: dict) -> None: | ||
container_id = u.get_docker_container(remote_host) | ||
exec_prefix = f"sudo docker exec {container_id} ./observe-agent" |
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.
Awesome! Glad we are adding more testing :)
@@ -185,9 +171,6 @@ Env vars set to: | |||
Testing SSH connection to host 54.177.26.178 with timeout 120s |
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.
More spacing/formatting in this file? @obs-gh-mattcotter
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.
Yes, I just used markdownlint plus a few minor changes;
scripts/test_installation.py
was a typo (or missed name update) forscripts/test_install.py
- removed reference to your local
observe-repos
folder - switched images from html to md
Description
OB-32327 add new diagnostic check to validate the agent status, update integration tests to separate config initialization from running the diagnose check
Checklist