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

Migrate code from wazuh-qa to the new QA repository #5562

Closed
2 tasks done
Tracked by #5558 ...
QU3B1M opened this issue Jul 11, 2024 · 6 comments
Closed
2 tasks done
Tracked by #5558 ...

Migrate code from wazuh-qa to the new QA repository #5562

QU3B1M opened this issue Jul 11, 2024 · 6 comments
Assignees

Comments

@QU3B1M
Copy link
Member

QU3B1M commented Jul 11, 2024

Description

Migrate the relevant content from the repository wazuh-qa(legacy) detected on #5527

To migrate:

  • Environments provisioning module
  • System tests - All
  • End to End tests - Only VD

Tasks

  • Migrate and improve the defined code
  • Update the README.md with the newly migrated content

Conclusion

This migration was separated into two PRs to make the review "easier" as all the changes combined affect many files (close to 400).

@wazuhci wazuhci moved this to Backlog in Release 4.10.0 Jul 11, 2024
@damarisg damarisg changed the title Migrate pertinent code from wazuh-qa to the new QA repository Migrate code from wazuh-qa to the new QA repository Jul 11, 2024
@damarisg damarisg added level/task Task issue and removed level/subtask Subtask issue labels Jul 23, 2024
@QU3B1M QU3B1M self-assigned this Aug 9, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 4.10.0 Aug 9, 2024
@QU3B1M
Copy link
Member Author

QU3B1M commented Aug 9, 2024

Update progress

  • Analyzing dependencies on E2E tests for the migration

@QU3B1M
Copy link
Member Author

QU3B1M commented Aug 12, 2024

On hold 🔐

The migration of the End to End tests is being evaluated, this issue will remain On Hold until this is solved.

@wazuhci wazuhci moved this from In progress to On hold in Release 4.10.0 Aug 12, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.10.0 Aug 14, 2024
@QU3B1M
Copy link
Member Author

QU3B1M commented Aug 14, 2024

After some analysis and debates with the team, the migration scope is expanded, the main goal is to migrate the required code from wazuh-qa to avoid losing coverage, applying the minimal refactoring needed, and trying to keep the new repository "clean".

In summary, we will migrate all the code from this repository used on any Jenkins pipeline required for v4.10.0.


Update 15/08/2024 - Working on https://github.com/wazuh/wazuh-qa-automation/pull/23

  • Vulnerability Detector tests migrated to the new Wazuh QA repository.
  • Tests dependencies were taken from wazuh-testing and moved to a helpers directory to avoid dirtying the repo's tools.
  • All the imports were adapted to use the helpers or the migrated tools from the other repos were possible.

@QU3B1M
Copy link
Member Author

QU3B1M commented Aug 16, 2024

Migration scope update

The scope of the migration is increased, now including the System tests with its dependencies apart from the Vulnerability Detector end-to-end test suite, and the provisioning tool. Taking this into account, the ETA will be updated.

@QU3B1M
Copy link
Member Author

QU3B1M commented Aug 21, 2024

Update report

As the migrated code has grown, we separated it into two different branches.

The tests can now be executed correctly, anyway, some of them are failing due to an issue with the execution of a script on the guest systems (machines on test), this is because Ansible is not copying the script from the local code but its cloning from the GitHub repository instead.

  • Basic_cluster system tests working

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.10.0 Aug 23, 2024
@wazuhci wazuhci moved this from Pending review to In review in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from In review to In progress in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from Pending review to In review in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from In review to On hold in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from On hold to Pending final review in Release 4.10.0 Aug 27, 2024
@wazuhci wazuhci moved this from Pending final review to In final review in Release 4.10.0 Aug 29, 2024
@wazuhci wazuhci moved this from In final review to On hold in Release 4.10.0 Aug 29, 2024
@wazuhci wazuhci moved this from On hold to Pending final review in Release 4.10.0 Aug 29, 2024
@Rebits Rebits moved this from Pending final review to In final review in Release 4.10.0 Aug 30, 2024
@wazuhci wazuhci moved this from In final review to On hold in Release 4.10.0 Aug 30, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.10.0 Sep 3, 2024
@wazuhci wazuhci moved this from In progress to Blocked in Release 4.10.0 Sep 3, 2024
@QU3B1M
Copy link
Member Author

QU3B1M commented Sep 4, 2024

Update report

Test execution in progress using the Wazuh QA Environment provided on https://ci.wazuh.info/job/Wazuh_QA_environment/1216/. The results must be for early tomorrow morning.

@wazuhci wazuhci moved this from Blocked to In progress in Release 4.10.0 Sep 4, 2024
@wazuhci wazuhci moved this from In progress to Pending final review in Release 4.10.0 Sep 4, 2024
@wazuhci wazuhci moved this from Pending final review to In final review in Release 4.10.0 Sep 4, 2024
@damarisg damarisg closed this as completed Sep 4, 2024
@damarisg damarisg moved this from In final review to Done in Release 4.10.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants