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

patch(integration_test_charm.yaml): Display status and logs from multiple models #194

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Jun 17, 2024

Issue

For integration tests like the one for async replication, it would be helpful to have status and logs from multiple models.

Solution

In .github/workflows/integration_test_charm.yaml:

  • Loop over the existing models (except the controller model) and run the juju status and juju debug-log (or convert-logsink-to-debug-log for LXD clouds) commands for each model, appending the output to the status and the log files, respectively.

  • For the logs, write the model name before writing the logs to the logs file.

In python/cli/data_platform_workflows_cli/convert_logsink_to_debug_log.py:

  • Get the first model from the juju show-model command output because a second model has a name different from the test (example: test-other in the PostgreSQL charms async replication integration tests).

  • Append the logs to the already existing log file to support logs from multiple models.

Fixes #193.

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@marceloneppel
Copy link
Member Author

Superseded by #195.

@marceloneppel marceloneppel deleted the dpe-4685-multiple-models-status-and-logs branch June 17, 2024 20:37
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.

Display status and logs from multiple models
1 participant