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

[#612] test: cleanup shuffleServer instance for each test #658

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

zuston
Copy link
Member

@zuston zuston commented Feb 25, 2023

What changes were proposed in this pull request?

Cleanup shuffleServer instance for each test

Why are the changes needed?

When digging into the root cause of #612, I found some problems that the shuffle server instance should be released after each test case is finished.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Don't need

@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2023

Codecov Report

Merging #658 (066d3ce) into master (18c738e) will increase coverage by 2.28%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #658      +/-   ##
============================================
+ Coverage     60.60%   62.89%   +2.28%     
- Complexity     1799     1800       +1     
============================================
  Files           216      202      -14     
  Lines         12458    10494    -1964     
  Branches       1052     1052              
============================================
- Hits           7550     6600     -950     
+ Misses         4500     3547     -953     
+ Partials        408      347      -61     
Impacted Files Coverage Δ
...rnetes/operator/pkg/webhook/inspector/inspector.go
...pkg/controller/sync/shuffleserver/shuffleserver.go
...eploy/kubernetes/operator/pkg/utils/coordinator.go
deploy/kubernetes/operator/pkg/utils/certs.go
...oy/kubernetes/operator/pkg/utils/shufflerserver.go
...bernetes/operator/pkg/controller/controller/rss.go
deploy/kubernetes/operator/pkg/utils/util.go
...tor/pkg/controller/sync/coordinator/coordinator.go
...oy/kubernetes/operator/pkg/controller/util/util.go
...y/kubernetes/operator/pkg/webhook/inspector/pod.go
... and 5 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@zuston zuston requested a review from jerqi February 25, 2023 02:55
@advancedxy
Copy link
Contributor

LGTM. Is there any other occurrences(tests) to stop shuffle server for each test?

@zuston
Copy link
Member Author

zuston commented Feb 27, 2023

LGTM. Is there any other occurrences(tests) to stop shuffle server for each test?

It depends on whether the test cases use exclusive or shareable shuffle servers.

@advancedxy
Copy link
Contributor

LGTM. Is there any other occurrences(tests) to stop shuffle server for each test?

It depends on whether the test cases use exclusive or shareable shuffle servers.

OK. Let's fix that when other test cases have similar problem.

@zuston zuston merged commit b19c8e3 into apache:master Feb 27, 2023
@zuston
Copy link
Member Author

zuston commented Feb 27, 2023

Thanks @advancedxy

@zuston zuston deleted the issue-612 branch February 27, 2023 07:23
@jerqi
Copy link
Contributor

jerqi commented Feb 27, 2023

@zuston Could you cherrypick and commit to branch 0.7 branch, too.

zuston added a commit that referenced this pull request Mar 7, 2023
### What changes were proposed in this pull request?

Cleanup shuffleServer instance for each test

### Why are the changes needed?

When digging into the root cause of #612, I found some problems that the shuffle server instance should be released after each test case is finished.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Don't need
advancedxy pushed a commit to advancedxy/incubator-uniffle that referenced this pull request Mar 21, 2023
…he#658)

### What changes were proposed in this pull request?

Cleanup shuffleServer instance for each test

### Why are the changes needed?

When digging into the root cause of apache#612, I found some problems that the shuffle server instance should be released after each test case is finished.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Don't need
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.

None yet

4 participants