-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#3024] improvement(IT): close containers and upload container log after all tests are finished #3197
Conversation
…tests are finished
…tests are finished
...on/src/test/java/com/datastrato/gravitino/integration/test/util/CloseContainerExtension.java
Outdated
Show resolved
Hide resolved
@yuqi1129 This PR is ready for review. BTW, can you add |
…ntegration-test-common` (#3201) ### What changes were proposed in this pull request? Trigger integration test when there is a change in module `integration-test-common`. ### Why are the changes needed? We should start the integration test if there are changes in module `integration-test-common`. however, CI https://github.com/datastrato/gravitino/actions/runs/8872110159/job/24356012525?pr=3197 of PR #3197 can't start the CI pipeline. Fixed: #3207 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? CI passed.
…ntegration-test-common` (#3201) ### What changes were proposed in this pull request? Trigger integration test when there is a change in module `integration-test-common`. ### Why are the changes needed? We should start the integration test if there are changes in module `integration-test-common`. however, CI https://github.com/datastrato/gravitino/actions/runs/8872110159/job/24356012525?pr=3197 of PR #3197 can't start the CI pipeline. Fixed: #3207 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? CI passed.
…ntegration-test-common` (#3208) ### What changes were proposed in this pull request? Trigger integration test when there is a change in module `integration-test-common`. ### Why are the changes needed? We should start the integration test if there are changes in module `integration-test-common`. however, CI https://github.com/datastrato/gravitino/actions/runs/8872110159/job/24356012525?pr=3197 of PR #3197 can't start the CI pipeline. Fixed: #3207 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? CI passed. Co-authored-by: Qi Yu <[email protected]>
@xiaozcy |
@yuqi1129 I use #3213 to test if logs are uploaded as expected when some tests failed, the results indicate that everything is fine in this situation. |
I see, thanks for your work. |
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class CloseContainerExtension implements BeforeAllCallback { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiaozcy
Adding a comment about this class is preferred.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
LGTM except for one small problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ter all tests are finished (#3197) ### What changes were proposed in this pull request? close containers and upload container log after all tests are finished ### Why are the changes needed? Fix: #3024 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? existing ITs --------- Co-authored-by: zhanghan18 <[email protected]> Co-authored-by: Qi Yu <[email protected]>
…ule `integration-test-common` (apache#3201) ### What changes were proposed in this pull request? Trigger integration test when there is a change in module `integration-test-common`. ### Why are the changes needed? We should start the integration test if there are changes in module `integration-test-common`. however, CI https://github.com/datastrato/gravitino/actions/runs/8872110159/job/24356012525?pr=3197 of PR apache#3197 can't start the CI pipeline. Fixed: apache#3207 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? CI passed.
…log after all tests are finished (apache#3197) ### What changes were proposed in this pull request? close containers and upload container log after all tests are finished ### Why are the changes needed? Fix: apache#3024 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? existing ITs --------- Co-authored-by: zhanghan18 <[email protected]> Co-authored-by: Qi Yu <[email protected]>
What changes were proposed in this pull request?
close containers and upload container log after all tests are finished
Why are the changes needed?
Fix: #3024
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
existing ITs