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

Fix unstable cluster reliability tests #5477

Merged
merged 7 commits into from
Jun 10, 2024

Conversation

nico-stefani
Copy link
Member

Description

This PR closes #4385. It adds more intelligence to tests, considering when the master closes the connection with the workers, to get these working correctly.

Using the artifacts from the last workload benchmarks metrics we got these results:

artifacts.zip

(wqa) ➜  wazuh-qa git:(fix/4385-unstable-realiability-tests) pytest -s --artifacts_path=/home/nstefani/Downloads/542 tests/reliability/test_cluster/test_cluster_logs
================================================================================================ test session starts ================================================================================================
platform linux -- Python 3.9.16, pytest-7.1.2, pluggy-0.13.1
rootdir: /home/nstefani/git/wazuh-qa/tests, configfile: pytest.ini
plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4
collected 6 items

tests/reliability/test_cluster/test_cluster_logs/test_cluster_connection/test_cluster_connection.py .
tests/reliability/test_cluster/test_cluster_logs/test_cluster_error_logs/test_cluster_error_logs.py .
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py .
tests/reliability/test_cluster/test_cluster_logs/test_cluster_sync/test_cluster_sync.py .
tests/reliability/test_cluster/test_cluster_logs/test_cluster_task_order/test_cluster_task_order.py .
tests/reliability/test_cluster/test_cluster_logs/test_cluster_worker_logs_order/test_cluster_worker_logs_order.py .

=========================================================================================== 6 passed in 175.91s (0:02:55) ===========================================================================================

@rauldpm rauldpm merged commit 70b6c48 into 4.9.0 Jun 10, 2024
@rauldpm rauldpm deleted the bug/4385-unstable-realiability-tests branch June 10, 2024 16:11
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.

Unstable connection between master and workers according cluster.log in Reliability test
3 participants