You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "cchung100m (via GitHub)" <gi...@apache.org> on 2023/08/11 16:06:52 UTC
[GitHub] [incubator-uniffle] cchung100m opened a new pull request, #1134: [#722] imporvement: Cleanup residue files in tmp directory after tests
cchung100m opened a new pull request, #1134:
URL: https://github.com/apache/incubator-uniffle/pull/1134
Hi @kaijchen @zuston @jerqi @xianjingfeng
Any comments and suggestions would be appreciated if you are available, thank you.
### What changes were proposed in this pull request?
Cleanup residue files in tmp directory after tests
### Why are the changes needed?
Fix: #722
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
current UT
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
[GitHub] [incubator-uniffle] codecov-commenter commented on pull request #1134: [#722] imporvement: Cleanup residue files in tmp directory after tests
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1134:
URL: https://github.com/apache/incubator-uniffle/pull/1134#issuecomment-1684915187
## [Codecov](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1134?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#1134](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1134?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (5790273) into [master](https://app.codecov.io/gh/apache/incubator-uniffle/commit/26c3eecea6385f1fa28b5b8a6b7f5643dc5cad81?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (26c3eec) will **increase** coverage by `0.51%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## master #1134 +/- ##
============================================
+ Coverage 53.62% 54.14% +0.51%
+ Complexity 2577 2107 -470
============================================
Files 391 319 -72
Lines 22359 14440 -7919
Branches 1875 1314 -561
============================================
- Hits 11991 7819 -4172
+ Misses 9660 6202 -3458
+ Partials 708 419 -289
```
[see 75 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1134/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
[GitHub] [incubator-uniffle] kaijchen merged pull request #1134: [#722] test: cleanup residue files in tmp directory after tests
Posted by "kaijchen (via GitHub)" <gi...@apache.org>.
kaijchen merged PR #1134:
URL: https://github.com/apache/incubator-uniffle/pull/1134
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
[GitHub] [incubator-uniffle] kaijchen commented on a diff in pull request #1134: [#722] imporvement: Cleanup residue files in tmp directory after tests
Posted by "kaijchen (via GitHub)" <gi...@apache.org>.
kaijchen commented on code in PR #1134:
URL: https://github.com/apache/incubator-uniffle/pull/1134#discussion_r1299176499
##########
common/src/test/java/org/apache/uniffle/common/util/ChecksumUtilsTest.java:
##########
@@ -21,18 +21,27 @@
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
-import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Random;
import java.util.zip.CRC32;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.io.TempDir;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class ChecksumUtilsTest {
+ @TempDir File tempDir;
+
+ @BeforeEach
+ void beforeEach() {
+ assertTrue(this.tempDir.isDirectory());
+ }
+
Review Comment:
This beforeEach is not necessary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
[GitHub] [incubator-uniffle] cchung100m commented on a diff in pull request #1134: [#722] imporvement: Cleanup residue files in tmp directory after tests
Posted by "cchung100m (via GitHub)" <gi...@apache.org>.
cchung100m commented on code in PR #1134:
URL: https://github.com/apache/incubator-uniffle/pull/1134#discussion_r1299185819
##########
common/src/test/java/org/apache/uniffle/common/util/ChecksumUtilsTest.java:
##########
@@ -21,18 +21,27 @@
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
-import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Random;
import java.util.zip.CRC32;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.io.TempDir;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class ChecksumUtilsTest {
+ @TempDir File tempDir;
+
+ @BeforeEach
+ void beforeEach() {
+ assertTrue(this.tempDir.isDirectory());
+ }
+
Review Comment:
Thank you for the feedback and I updated the part you mentioned.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org