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

Engine - Add automated tests with git hub actions for helper functions #23424

Conversation

NahuFigueroa97
Copy link
Member

@NahuFigueroa97 NahuFigueroa97 commented May 14, 2024

Related issue
#23404

Summary

This Pull Request (PR) addresses the critical need to enhance the testing framework for Wazuh-Engine's helper functions by automating test execution through GitHub Actions. Following the initial development stages focused on test generation and execution tools, Stage 2 concentrates on setting up CI for continuous validation and feedback during the development lifecycle.

Changes

  • Continuous Integration Setup: Implement GitHub Actions workflows to automatically run tests upon code changes, facilitating continuous validation.
  • Result Reporting: Configure CI to report test outcomes, ensuring developers have timely access to feedback for code review.
  • Resilience and Scalability: Enhance GitHub Actions setup to handle potential scalability issues and integrate seamlessly with future enhancements.

Implementation Details

  • Automation of Test Execution: Created GitHub Actions workflows triggered by code commits and pull requests to key branches.
  • Utilization of Test Tools: Configured workflows to utilize the test generation and execution tool developed in Stage 1B, ensuring comprehensive test coverage.
  • Reporting Mechanisms: Set up workflows to capture and report test results, including success, failure, and logs, aiding developers in debugging.
  • Error Handling: Implemented error handling within GitHub Actions to gracefully manage test failures and exceptions.
  • Documentation: Documented the setup and configuration of GitHub Actions workflows, providing clear guidelines for future modifications and enhancements.

@NahuFigueroa97 NahuFigueroa97 self-assigned this May 14, 2024
@NahuFigueroa97 NahuFigueroa97 force-pushed the 23404-engine-integration-of-automated-tests-with-gitHub-actions-for-wazuh-engine-helper-functions branch from 68d2b60 to a1507a4 Compare May 14, 2024 23:09
@NahuFigueroa97 NahuFigueroa97 changed the title 23404 engine integration of automated tests with git hub actions for wazuh engine helper functions Engine - Add automated tests with git hub actions for helper functions May 14, 2024
@NahuFigueroa97 NahuFigueroa97 force-pushed the 23404-engine-integration-of-automated-tests-with-gitHub-actions-for-wazuh-engine-helper-functions branch 3 times, most recently from 55af397 to ecb7337 Compare May 15, 2024 20:58
@NahuFigueroa97 NahuFigueroa97 marked this pull request as draft May 15, 2024 23:08
@NahuFigueroa97 NahuFigueroa97 marked this pull request as ready for review May 15, 2024 23:08
@NahuFigueroa97 NahuFigueroa97 force-pushed the 23404-engine-integration-of-automated-tests-with-gitHub-actions-for-wazuh-engine-helper-functions branch from ecb7337 to 7a7da2f Compare May 16, 2024 12:58
Copy link
Member

@JavierBejMen JavierBejMen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@JcabreraC JcabreraC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@JcabreraC JcabreraC merged commit 5e3a67c into 11334-dev-new-wazuh-engine May 17, 2024
4 checks passed
@JcabreraC JcabreraC deleted the 23404-engine-integration-of-automated-tests-with-gitHub-actions-for-wazuh-engine-helper-functions branch May 17, 2024 12:05
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.

Engine - Integration of Automated Tests with GitHub Actions for Wazuh-Engine Helper Functions
3 participants