Skip to content

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

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

obs-gh-mattcotter
Copy link
Collaborator

@obs-gh-mattcotter obs-gh-mattcotter commented Nov 5, 2024

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

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

print(f"Path to 'dist' directory: {dist_directory}")

# List files in the directory
files = os.listdir(dist_directory)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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"
Copy link
Collaborator

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
Copy link
Collaborator

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

Copy link
Collaborator Author

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) for scripts/test_install.py
  • removed reference to your local observe-repos folder
  • switched images from html to md

@obs-gh-mattcotter obs-gh-mattcotter merged commit 9ade1cf into main Nov 21, 2024
8 checks passed
@obs-gh-mattcotter obs-gh-mattcotter deleted the OB-32327-more-diagnostics branch November 21, 2024 21:21
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.

4 participants