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 missing local cluster logs when running integration test #3453

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Apr 28, 2023

Description

Fix missing local cluster logs when running integration test.
Currently the local cluster is wiped out before the logs recorded. Rearrange the logics and record the logs after remove everything including the local cluster logs.

This is an alternative way of #3404 to resolve the issue.

Issues Resolved

#3382

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2023

Codecov Report

Merging #3453 (12fbdf8) into main (cdf86d5) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #3453      +/-   ##
==========================================
- Coverage   91.74%   91.72%   -0.03%     
==========================================
  Files         172      172              
  Lines        4991     4991              
==========================================
- Hits         4579     4578       -1     
- Misses        412      413       +1     
Impacted Files Coverage Δ
src/test_workflow/integ_test/service.py 92.85% <ø> (-0.09%) ⬇️
src/test_workflow/test_cluster.py 85.52% <100.00%> (+0.19%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Member Author

@zelinh zelinh left a comment

Choose a reason for hiding this comment

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

On my tests locally, the integration tests are able to run either by each component or sequentially with all components with all missing logs present now.

Reproducible with command: ./test.sh integ-test manifests/2.7.0/opensearch-2.7.0-test.yml -p opensearch=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.7.0/7771/linux/x64/tar

@zelinh zelinh merged commit 68a2fe7 into opensearch-project:main Apr 29, 2023
@zelinh zelinh deleted the fix-miss-local-logs branch April 29, 2023 00:17
@zelinh zelinh self-assigned this Apr 29, 2023
@dblock
Copy link
Member

dblock commented May 1, 2023

You should be writing tests for these, because it fixes a real problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants