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

[#649] test: remove mini-cluster in ClientConfManagerTest #650

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

smallzhongfeng
Copy link
Contributor

@smallzhongfeng smallzhongfeng commented Feb 22, 2023

What changes were proposed in this pull request?

Mini-cluster need take some time to initialize, after the current path detection is triggered manually, we do not need to manually write the file to mini-cluster. So we can remove the dependency of this mini-cluster in Coordinator.

Why are the changes needed?

Fix: #649

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Before:

[INFO] Running org.apache.uniffle.coordinator.ClientConfManagerTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.28 s - in org.apache.uniffle.coordinator.ClientConfManagerTest

After:

[INFO] Running org.apache.uniffle.coordinator.ClientConfManagerTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.071 s - in org.apache.uniffle.coordinator.ClientConfManagerTest

@codecov-commenter
Copy link

Codecov Report

Merging #650 (499456e) into master (b3a10d3) will increase coverage by 2.24%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #650      +/-   ##
============================================
+ Coverage     60.63%   62.88%   +2.24%     
  Complexity     1799     1799              
============================================
  Files           216      202      -14     
  Lines         12455    10491    -1964     
  Branches       1052     1052              
============================================
- Hits           7552     6597     -955     
+ Misses         4496     3547     -949     
+ Partials        407      347      -60     
Impacted Files Coverage Δ
...oy/kubernetes/operator/pkg/utils/shufflerserver.go
deploy/kubernetes/operator/pkg/utils/util.go
...bernetes/operator/pkg/controller/controller/rss.go
deploy/kubernetes/operator/pkg/webhook/manager.go
...tor/pkg/controller/sync/coordinator/coordinator.go
...oy/kubernetes/operator/pkg/controller/util/util.go
...y/kubernetes/operator/pkg/webhook/inspector/rss.go
...rnetes/operator/pkg/webhook/inspector/inspector.go
deploy/kubernetes/operator/pkg/utils/rss.go
...pkg/controller/sync/shuffleserver/shuffleserver.go
... and 4 more

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

@jerqi jerqi changed the title [ISSUE-649] test: Remove mini-cluster in ClientConfManagerTest [#649] test: Remove mini-cluster in ClientConfManagerTest Feb 23, 2023
@smallzhongfeng
Copy link
Contributor Author

smallzhongfeng commented Feb 23, 2023

PTAL @kaijchen thanks!

@kaijchen kaijchen changed the title [#649] test: Remove mini-cluster in ClientConfManagerTest [#649] test: remove mini-cluster in ClientConfManagerTest Feb 23, 2023
Copy link
Contributor

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @smallzhongfeng.

@kaijchen kaijchen merged commit dd50282 into apache:master Feb 23, 2023
@smallzhongfeng
Copy link
Contributor Author

Thanks for your review. @kaijchen

xianjingfeng pushed a commit to xianjingfeng/incubator-uniffle that referenced this pull request Apr 5, 2023
…he#650)

### What changes were proposed in this pull request?
Mini-cluster need take some time to initialize, after the current path detection is triggered manually, we do not need to manually write the file to mini-cluster. So we can remove the dependency of this mini-cluster in Coordinator.

### Why are the changes needed?
Fix: apache#649

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

### How was this patch tested?
Before:
```
[INFO] Running org.apache.uniffle.coordinator.ClientConfManagerTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.28 s - in org.apache.uniffle.coordinator.ClientConfManagerTest
```

After:
```
[INFO] Running org.apache.uniffle.coordinator.ClientConfManagerTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.071 s - in org.apache.uniffle.coordinator.ClientConfManagerTest
```
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.

[Improvement] Remove mini-cluster in ClientConfManagerTest
3 participants