You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by af...@apache.org on 2015/11/12 21:32:11 UTC

incubator-reef git commit: [REEF-938] Runtime folder path is too long in some tests

Repository: incubator-reef
Updated Branches:
  refs/heads/master 1e21ecafa -> 748421aa1


[REEF-938] Runtime folder path is too long in some tests

* Limit the folder name to have 4 sub strings from a GUID and fix issue in TestSimpleEventHandlers

JIRA:
  [REEF-938](https://issues.apache.org/jira/browse/REEF-938)

Pull Request:
  Closes #633


Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/748421aa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/748421aa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/748421aa

Branch: refs/heads/master
Commit: 748421aa1231ffe08a9e6f8224cd1ed9e641c7be
Parents: 1e21eca
Author: Julia Wang <ju...@microsoft.com>
Authored: Thu Nov 12 11:59:15 2015 -0800
Committer: Andrew Chung <af...@gmail.com>
Committed: Thu Nov 12 12:30:41 2015 -0800

----------------------------------------------------------------------
 .../Functional/Bridge/TestSimpleEventHandlers.cs             | 2 +-
 .../Utility/TestDriverConfigGenerator.cs                     | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/748421aa/lang/cs/Org.Apache.REEF.Tests/Functional/Bridge/TestSimpleEventHandlers.cs
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Tests/Functional/Bridge/TestSimpleEventHandlers.cs b/lang/cs/Org.Apache.REEF.Tests/Functional/Bridge/TestSimpleEventHandlers.cs
index d19cf9f..380e72f 100644
--- a/lang/cs/Org.Apache.REEF.Tests/Functional/Bridge/TestSimpleEventHandlers.cs
+++ b/lang/cs/Org.Apache.REEF.Tests/Functional/Bridge/TestSimpleEventHandlers.cs
@@ -48,7 +48,7 @@ namespace Org.Apache.REEF.Tests.Functional.Bridge
         [Timeout(180 * 1000)]
         public void RunSimpleEventHandlerOnLocalRuntime()
         {
-            string testFolder = DefaultRuntimeFolder + Guid.NewGuid().ToString("N").Substring(4);
+            string testFolder = DefaultRuntimeFolder + Guid.NewGuid().ToString("N").Substring(0, 4);
             CleanUp(testFolder);
             TestRun(DriverConfigurations(), typeof(HelloSimpleEventHandlers), 2, "simpleHandler", "local", testFolder);
             ValidateSuccessForLocalRuntime(1, testFolder);

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/748421aa/lang/cs/Org.Apache.REEF.Tests/Utility/TestDriverConfigGenerator.cs
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Tests/Utility/TestDriverConfigGenerator.cs b/lang/cs/Org.Apache.REEF.Tests/Utility/TestDriverConfigGenerator.cs
index c3dd335..d4111f5 100644
--- a/lang/cs/Org.Apache.REEF.Tests/Utility/TestDriverConfigGenerator.cs
+++ b/lang/cs/Org.Apache.REEF.Tests/Utility/TestDriverConfigGenerator.cs
@@ -33,7 +33,7 @@ namespace Org.Apache.REEF.Tests.Utility
             {
                 DriverMemory = 1024,
                 DriverIdentifier = "juliaDriverId",
-                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 8),
+                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 4),
                 IncludingHttpServer = true,
                 IncludingNameServer = true,
                 ClrFolder = ".",
@@ -50,7 +50,7 @@ namespace Org.Apache.REEF.Tests.Utility
             {
                 DriverMemory = 1024,
                 DriverIdentifier = "juliaDriverId",
-                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 8),
+                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 4),
                 IncludingHttpServer = false,
                 IncludingNameServer = true,
                 ClrFolder = ".",
@@ -67,7 +67,7 @@ namespace Org.Apache.REEF.Tests.Utility
             {
                 DriverMemory = 1024,
                 DriverIdentifier = "juliaDriverId",
-                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 8),
+                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 4),
                 IncludingHttpServer = true,
                 IncludingNameServer = false,
                 ClrFolder = ".",
@@ -84,7 +84,7 @@ namespace Org.Apache.REEF.Tests.Utility
             {
                 DriverMemory = 1024,
                 DriverIdentifier = "juliaDriverId",
-                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 8),
+                SubmissionDirectory = "reefClrBridgeTmp/job_" + Guid.NewGuid().ToString("N").Substring(0, 4),
                 IncludingHttpServer = false,
                 IncludingNameServer = false,
                 ClrFolder = ".",