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

Release 4.5.0 - Alpha 1 - Integration tests #18114

Closed
2 tasks
roronoasins opened this issue Jul 27, 2023 · 9 comments
Closed
2 tasks

Release 4.5.0 - Alpha 1 - Integration tests #18114

roronoasins opened this issue Jul 27, 2023 · 9 comments

Comments

@roronoasins
Copy link

roronoasins commented Jul 27, 2023

Description

Wazuh QA: Branch Wazuh QA: Commit Wazuh: Tag Wazuh: Commit
v4.5.0-alpha1 wazuh/wazuh-qa@ede149c v4.5.0-alpha1 39df1e7

We are going to check that the integration tests of the 4.5 branch of wazuh-qa work correctly using the v4.5.0-alpha1 version of wazuh.

The tests will be performed in Jenkins using centOS as the manager OS. As for the agents, Linux, Windows , Solaris, macOS will be used as required.

Tests Integration - Status

Main RC issue

References

Color Status
🟢 All tests passed successfully
🟡 All tests passed but there are some warnings
🔴 Some tests have failures or errors
🔵 Test execution in progress
To Do
🟠 Jenkins provision fails
🟣 All skipped

Test Integration - Results

Name Jenkins
OS Linux Windows Solaris macOS
Target Manager Agent Agent Agent Agent
active_response 🟢 🟢 🟢 NA NA
agentd NA 🟢 🟢 NA NA
analysisd 🟢 NA NA NA NA
api 🟢 NA NA NA NA
authd 🟢  NA NA NA NA
enrollment
NA 🟢 🟢 NA NA
fim 🟢 🟢 🟢 🟢 🟢
gcloud
🟢 NA NA NA NA
github
🟢 🟢 NA NA NA
logcollector 🟢 🟢 🟢 🟢 🔴
logtest
🟢 NA NA NA NA
office365
🟢 🟢 NA NA NA
remoted 🟢 NA NA NA NA
rids 🟢 NA NA NA NA
rootcheck 🟢 NA NA NA NA
vulnerability_detector 🔴 NA NA NA NA
wazuh_db 🟢 NA NA NA NA
syscollector 🟢 🟢 🔴 NA 🟢

Evidence

IT Launcher build: https://ci.wazuh.info/job/Test_integration_launcher/180/

Conclusion 🔴

Some tests failed, and a known issue was reported

leading to the creation of some new issues.

Auditors validation

The definition of done for this one is the validation of the conclusions and the test results from all auditors.

All checks from below must be accepted in order to close this issue.

@roronoasins
Copy link
Author

Some of them failed. After a quick review a few are expected(vd, logcollector, syscollector). Tomorrow all the reports will be added

@roronoasins
Copy link
Author

roronoasins commented Jul 28, 2023

FIM 🔴 (not valid tag used - it does not apply to this testing)

non-valid jenkins tag used

Agent

Details

Build: https://ci.wazuh.info/job/Test_integration/41715/
Report: agent_solaris_html_report_Test_integration_B41715_20230727102907.zip

Failed tests:

  • test_fim/test_files/test_basic_usage/test_basic_usage_realtime_unsupported.py::test_realtime_unsupported[get_configuration0]

Issue:

Description

The test_execd_firewall_drop test aims to verify if the current OS platform falls to the 'scheduled' mode when 'realtime' is not available. To achieve this, the test performs a CUD set of operations to a file with 'realtime' mode set as, but the test fails due to a TimeoutError.

        regular_file_cud(directory_str, log_monitor, file_list=[test_file], time_travel=False, triggers_event=True,
>                        event_mode="scheduled", min_timeout=15)

test_fim/test_files/test_basic_usage/test_basic_usage_realtime_unsupported.py:144: 
                        logger.error(error_message)
                        logger.error(f"Results accumulated: "
                                     f"{len(result) if isinstance(result, list) else 0}")
                        logger.error(f"Results expected: {accum_results}")
>                   raise TimeoutError(error_message)
E                   TimeoutError: TimeoutError was raised because a single 'added' event was expected for ['/dir/testfile.txt'] but was not detected.

@roronoasins
Copy link
Author

roronoasins commented Jul 28, 2023

Logcollector 🔴

Agent

Details

Build: https://ci.wazuh.info/job/Test_integration/41761/
Report:

MacOS error
15:28:59  TASK [Launch macos pytests] ****************************************************
15:28:59  task path: /home/ec2-user/workspace/Test_integration/quality/tests/integration/test_integration.yaml:25
15:28:59  fatal: [vagrant_host]: UNREACHABLE! => {
15:28:59      "changed": false,
15:28:59      "unreachable": true
15:28:59  }
15:28:59  
15:28:59  MSG:
15:28:59  
15:28:59  Data could not be sent to remote host "10.10.0.251". Make sure this host can be reached over ssh: ssh: connect to host 10.10.0.251 port 63805: Connection timed out

15:28:59  
15:28:59  
15:28:59  PLAY RECAP *********************************************************************
15:28:59  vagrant_host               : ok=0    changed=0    unreachable=1    failed=0    skipped=1    rescued=0    ignored=0   

Issue:

Description

The test for MacOS failed due to the machine connectivity

@roronoasins
Copy link
Author

Vulnerability Detector 🔴

Manager

Details

Build: https://ci.wazuh.info/job/Test_integration/41727/
Report: manager_html_report_Test_integration_B41727_20230727102433.zip

Failed tests:

  • test_vulnerability_detector/test_feeds/test_download_feeds.py
    • SUSE Linux Enterprise Server 11
    • SUSE Linux Enterprise Server 12
    • SUSE Linux Enterprise Server 15
    • SUSE Linux Enterprise Desktop 15

Issue:

Description

The test_execd_firewall_drop test aims to verify if modulesd downloads successfully the feeds from different providers and os, and check that. the feed update date does not exceed a set limit. A timeout is raised like

>                   raise TimeoutError(error_message)
E                   TimeoutError: Could not find SUSE Linux Enterprise Server 12 feed finished log                  TimeoutError: TimeoutError was raised because a single 'added' event was expected for ['/dir/testfile.txt'] but was not detected.

It could be related to a download that exceeds the timeout

@roronoasins
Copy link
Author

roronoasins commented Jul 28, 2023

Syscollector 🔴

Details

Build https://ci.wazuh.info/job/Test_integration/41729/ https://ci.wazuh.info/job/Test_integration/41705/
Issue:

Description

Syscollector IT module fails. It is because the monitoring file is not being initialized properly, leading to the issue above

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.5.0 Jul 28, 2023
@wazuhci wazuhci moved this from Pending review to In review in Release 4.5.0 Jul 28, 2023
@pro-akim
Copy link
Member

pro-akim commented Jul 28, 2023

Update

Moved to on hold,
Tests will be relaunched

@wazuhci wazuhci moved this from In review to In progress in Release 4.5.0 Jul 28, 2023
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.5.0 Jul 31, 2023
@pro-akim
Copy link
Member

LGTM

@wazuhci wazuhci moved this from Pending review to Pending final review in Release 4.5.0 Jul 31, 2023
@davidjiglesias
Copy link
Member

The conclusion is not updated in the main page. This is mandatory so the reviews can be performed in a fast and efficient manner.

@wazuhci wazuhci moved this from Pending final review to On hold in Release 4.5.0 Aug 1, 2023
@wazuhci wazuhci moved this from On hold to Pending final review in Release 4.5.0 Aug 1, 2023
@davidjiglesias
Copy link
Member

LGTM!

@wazuhci wazuhci moved this from Pending final review to Done in Release 4.5.0 Aug 1, 2023
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

3 participants