-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
5
-
False
-
-
False
-
-
-
Networking Sprint 13, Networking Sprint 14
Summary
The goal is to merge the existing CI nightly run script with the ansible-network-triager tool and provide enhanced functionality via a single CLI interface. The tool will be capable of generating bug scrub reports and CI reports, both using a single configuration file (config.yaml) for all inputs and options. The tool will also handle logging, email notifications, and present information in a table format on the CLI.
CLI Commands:
- Bug Scrub Command:
triager --bugs -c config.yaml --log --send-email
- CI Report Command:
triager --ci -c config.yaml --log --send-email
Key Features:
- Single Configuration File: All information, such as repository details, email recipients, and credentials, will be stored in config.yaml.
- Logging: The tool will log all operations gracefully.
- Table Output: Bug and CI reports will be displayed in a structured table format in the CLI.
- Email Notifications: Common logic for sending emails will be shared across the bug and CI report options.
Definition of Done
- Tool Integration:
-
- The CI nightly run script is successfully integrated with the ansible-network-triager tool.
- CLI Options:
-
- Bug scrub reports can be generated with triager --bugs.
- CI reports can be generated with triager --ci.
- The tool can read inputs and configurations from a single config.yaml file.
- Email sending is triggered using the --send-email option and is common for both bug and CI reports.
- Logging:
-
- The tool supports graceful logging using the --log flag.
- CLI Table Output:
-
- Bug and CI reports are presented in a clear table format within the CLI.
- Email Sending:
-
- The tool reads email credentials from the configuration file or prompts for input if not provided.
- Emails are sent based on the command options provided.
- Code Structure:
-
- Shared logic for sending emails is reused across multiple options.
- The tool is cleanly integrated and runs without issues on both local and containerized environments.
- Testing:
-
- The tool has been tested to verify that bug scrub and CI report functionalities work as expected.
- Logging, email sending, and CLI table output are tested for both bug and CI report use cases.
- relates to
-
ANA-535 Containerising and automating the tools that we use for Bug triage and CI health reports.
- Closed