Skip to content

Commit

Permalink
test(DeployJob): Use /tmp (no permissions in CI for /var)
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Oct 5, 2021
1 parent 37dd103 commit 86b4335
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ else if ("true".equals(System.getenv("RUN_E2E"))) {
// Generate a basic otp-runner manifest
OtpRunnerManifest manifest = new OtpRunnerManifest();
// add common settings
manifest.baseFolder = String.format("/var/%s/graphs", getTripPlannerString());
manifest.baseFolder = String.format("/tmp/%s/graphs", getTripPlannerString());
manifest.baseFolderDownloads = new ArrayList<>();
manifest.jarFile = getJarFileOnInstance();
manifest.nonce = this.nonce;
Expand All @@ -344,7 +344,7 @@ else if ("true".equals(System.getenv("RUN_E2E"))) {
? "2.x"
: "1.x";
manifest.prefixLogUploadsWithInstanceId = true;
manifest.statusFileLocation = String.format("%s/%s", "/var/log", OTP_RUNNER_STATUS_FILE);
manifest.statusFileLocation = String.format("%s/%s", "/tmp/log", OTP_RUNNER_STATUS_FILE);
manifest.uploadOtpRunnerLogs = false;
manifest.buildGraph = true;
try {
Expand Down Expand Up @@ -402,10 +402,6 @@ else if ("true".equals(System.getenv("RUN_E2E"))) {
return;
}

// Install otp-runner globally, as in EC2 startup scripts.
// Assumes yarn is available, which is the case in E2E CI environment.
Runtime.getRuntime().exec("yarn global add https://github.com/ibi-group/otp-runner.git");

// Run otp-runner with the manifest produced earlier.
Process p = Runtime.getRuntime().exec(String.format("otp-runner %s", otpRunnerManifestFile));
p.waitFor();
Expand Down

0 comments on commit 86b4335

Please sign in to comment.