-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
1,113 additions
and
1,562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
centaur/src/it/scala/centaur/callcaching/CromwellDatabaseCallCaching.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package centaur.callcaching | ||
|
||
import cats.effect.IO | ||
import centaur.CromwellDatabase | ||
import com.typesafe.scalalogging.StrictLogging | ||
|
||
import scala.concurrent.ExecutionContext | ||
|
||
object CromwellDatabaseCallCaching extends StrictLogging { | ||
import centaur.TestContext._ | ||
|
||
private val cromwellDatabase = CromwellDatabase.instance | ||
|
||
def clearCachedResults(workflowId: String)(implicit executionContext: ExecutionContext): IO[Unit] = { | ||
IO.fromFuture(IO(cromwellDatabase.engineDatabase.invalidateCallCacheEntryIdsForWorkflowId(workflowId))) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
centaur/src/main/resources/standardTestCases/fast_fail_noAddress.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# NB: To request this test by name, make it lowercase, eg sbt "centaur/it:testOnly * -- -n fast_fail_noaddress" | ||
name: fast_fail_noAddress | ||
backends: [Papi,Papiv2] | ||
backendsMode: any | ||
testFormat: workflowfailure | ||
|
||
files { | ||
workflow: fast_fail_noAddress/fast_fail_noAddress.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: fast_fail_noAddress | ||
"failures.0.causedBy.0.message": "Task fast_fail_noAddress.task_with_noAddress:NA:1 failed. The job was stopped before the command finished. PAPI error code 9. The worker was unable to check in, possibly due to a misconfigured network" | ||
status: Failed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
centaur/src/main/resources/standardTestCases/ignore_noAddress.test
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
centaur/src/main/resources/standardTestCases/papi_delocalization_required_files.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: papi_delocalization_required_files | ||
testFormat: workflowfailure | ||
backends: [Papiv2] | ||
|
||
files { | ||
workflow: papi_delocalization_required_files/papi_delocalization_required_files.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: required_files | ||
"calls.required_files.check_it.executionStatus": "Done" | ||
"calls.required_files.do_it.executionStatus": "Failed" | ||
"calls.required_files.do_it.retryableFailure": "false" | ||
"calls.required_files.do_it.failures.0.message": "Task required_files.do_it:NA:1 failed. Job exited without an error, exit code 0. PAPI error code 9. Please check the log file for more details: gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/required_files/<<UUID>>/call-do_it/do_it.log." | ||
} |
40 changes: 40 additions & 0 deletions
40
...andardTestCases/papi_delocalization_required_files/papi_delocalization_required_files.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version 1.0 | ||
|
||
task do_it { | ||
input { | ||
String sync | ||
} | ||
command { | ||
echo "foo" > file.txt | ||
} | ||
output { | ||
# Intentionally not the right file name. Cromwell's file evaluation should make 'oops.txt' | ||
# required so this job should fail. | ||
String value = read_string("oops.txt") | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} | ||
|
||
task check_it { | ||
command <<< | ||
# Create the expected output. | ||
echo "foo" > file.txt | ||
|
||
# Make sure the expected output was specified as "required" in the delocalization script. | ||
set -euo pipefail | ||
grep -A 1 '"/cromwell_root/file.txt"' /cromwell_root/gcs_delocalization.sh | tail -1 | grep '"required"' | ||
>>> | ||
output { | ||
String value = read_string("file.txt") | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} | ||
|
||
workflow required_files { | ||
call check_it | ||
call do_it { input: sync = check_it.value } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.