You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/01/26 04:25:11 UTC
[GitHub] [dolphinscheduler] kezhenxu94 opened a new pull request #8197: Clean up the E2E with Java API to avoid platform sensitive
kezhenxu94 opened a new pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197
And enhance the docker-compose file to make it more stable
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] SbloodyS commented on a change in pull request #8197: Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
SbloodyS commented on a change in pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197#discussion_r792313788
##########
File path: dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/FileManageE2ETest.java
##########
@@ -95,18 +98,14 @@ public static void setup() {
}
@AfterAll
+ @SneakyThrows
public static void cleanup() {
- String[] command = {"/bin/bash", "-c", String.format("sudo rm -f %s && sudo rm -f %s && sudo rm -rf %s", testUnder1GBFilePath, testOver1GBFilePath, Constants.HOST_CHROME_DOWNLOAD_PATH)};
-
- try {
- Process pro = Runtime.getRuntime().exec(command);
- int status = pro.waitFor();
- if (status != 0) {
- throw new RuntimeException(String.format("Failed to call shell's command: %s", Arrays.toString(command)));
- }
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
+ Files.deleteIfExists(testUnder1GBFilePath);
+ Files.deleteIfExists(testOver1GBFilePath);
+ Files.walk(Constants.HOST_CHROME_DOWNLOAD_PATH)
Review comment:
I have a question. The folder deleted in this place is a folder created by root user. Why is there no permission exception? I tried this method before, but threw an exception with insufficient permission.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] zhongjiajie commented on pull request #8197: [E2E] Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197#issuecomment-1021909624
@kezhenxu94 I delete the branch `cleanup/e2e` unintentionally, restores it if you still need it. BTW, @SbloodyS add comment in https://github.com/apache/dolphinscheduler/pull/8197#discussion_r792313788
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] kezhenxu94 commented on pull request #8197: Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197#issuecomment-1021857285
FYI @SbloodyS
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] kezhenxu94 commented on pull request #8197: [E2E] Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197#issuecomment-1021911001
> @kezhenxu94 I delete the branch `cleanup/e2e` unintentionally, restores it if you still need it.
We should always delete branches after PR merged, thanks.
> BTW, @SbloodyS add comment in [#8197 (comment)](https://github.com/apache/dolphinscheduler/pull/8197#discussion_r792313788)
Will take a look
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] zhongjiajie merged pull request #8197: Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
zhongjiajie merged pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] sonarcloud[bot] commented on pull request #8197: Clean up the E2E with Java API to avoid platform sensitive
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on pull request #8197:
URL: https://github.com/apache/dolphinscheduler/pull/8197#issuecomment-1021855686
Kudos, SonarCloud Quality Gate passed! 
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=8197&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=8197&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=8197&metric=duplicated_lines_density&view=list) No Duplication information
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org