-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
bd2bbe5
commit d5cc343
Showing
30 changed files
with
227 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
For information on Cromwell's Integration Testing Suite, see the [Cromwell documentation on Centaur](https://cromwell.readthedocs.io/en/develop/developers/Centaur/). | ||
For information on Cromwell's Integration Testing Suite, see the [Cromwell documentation on Centaur](https://cromwell.readthedocs.io/en/develop/developers/Centaur/). | ||
|
||
### `centaur/src/it` | ||
|
||
Classes extending `org.scalatest` that ingest `.test` files and turn them into runnable test suites. | ||
|
||
### `centaur/src/main` | ||
|
||
#### `/resources` | ||
|
||
Collection of `.test` cases. In `test.inc.sh` we map Github Action jobs to case directories with `create_centaur_variables()`. Not all cases are run! | ||
|
||
As of July 2024, Centaur searches **recursively** for `.test` files, so they can be placed in subdirectories along with their resources. | ||
|
||
#### `/scala` | ||
|
||
Functionality to start, stop, and restart the Cromwell server under test. Also contains abstractions for asserting on metadata and workflow outputs. | ||
|
||
### `centaur/src/test` | ||
|
||
Tests for Centaur itself. |
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
22 changes: 0 additions & 22 deletions
22
centaur/src/main/resources/resultsCopyingTestCases/gcpWdlResultsCopying.test
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
centaur/src/main/resources/resultsCopyingTestCases/gcpWdlResultsCopyingRelative.test
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
centaur/src/main/resources/resultsCopyingTestCases/wdlResultsCopying/gcp/options.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...aur/src/main/resources/resultsCopyingTestCases/wdlResultsCopying/gcp/optionsRelative.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...dTestCases/large_final_workflow_outputs_dir/large_final_workflow_outputs_dir.options.json
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"final_workflow_outputs_dir": "gs://cloud-cromwell-dev-self-cleaning-fast" | ||
"final_workflow_outputs_dir": "gs://centaur-ci-us-east1" | ||
} |
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
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
...ur/src/main/resources/standardTestCases/resultsCopyingTestCases/gcpWdlResultsCopying.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,31 @@ | ||
name: gcpWdlResultsCopying | ||
testFormat: workflowsuccess | ||
tags: ["copyGcp"] | ||
|
||
# Will run on a Cromwell that supports any one of these backends | ||
backendsMode: any | ||
|
||
# Asserting on the source file `gs://cloud-cromwell-dev-self-cleaning/.../simpleStdoutTask.log` currently fails on Batch. | ||
# This is because Batch does not produce a `simpleStdoutTask.log` and instead sends logs go to Cloud Logging. Burwood is going to add a config to allow the old behavior. | ||
# backends: [Papi, Papiv2, GCPBatch] | ||
backends: [Papi, Papiv2] | ||
|
||
files { | ||
workflow: wdlResultsCopying/simpleWorkflow.wdl | ||
options: wdlResultsCopying/gcp/options.json | ||
} | ||
|
||
metadata { | ||
status: Succeeded | ||
} | ||
|
||
fileSystemCheck: "gcs" | ||
outputExpectations: { | ||
"gs://centaur-ci-us-east1/wf_results/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 1 | ||
"gs://centaur-ci-us-east1/wf_logs/workflow.<<UUID>>.log": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/stderr": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/stdout": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/simpleStdoutTask.log": 1 | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/simpleStdoutTask.log": 1 | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 1 | ||
} |
31 changes: 31 additions & 0 deletions
31
...ain/resources/standardTestCases/resultsCopyingTestCases/gcpWdlResultsCopyingRelative.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,31 @@ | ||
name: gcpWdlResultsCopyingRelative | ||
testFormat: workflowsuccess | ||
tags: ["copyGcp"] | ||
|
||
# Will run on a Cromwell that supports any one of these backends | ||
backendsMode: any | ||
|
||
# Asserting on the source file `gs://cloud-cromwell-dev-self-cleaning/.../simpleStdoutTask.log` currently fails on Batch. | ||
# This is because Batch does not produce a `simpleStdoutTask.log` and instead sends logs go to Cloud Logging. Burwood is going to add a config to allow the old behavior. | ||
# backends: [Papi, Papiv2, GCPBatch] | ||
backends: [Papi, Papiv2] | ||
|
||
files { | ||
workflow: wdlResultsCopying/simpleWorkflow.wdl | ||
options: wdlResultsCopying/gcp/optionsRelative.json | ||
} | ||
|
||
metadata { | ||
status: Succeeded | ||
} | ||
|
||
fileSystemCheck: "gcs" | ||
outputExpectations: { | ||
"gs://centaur-ci-us-east1/wf_results/output.txt": 1 | ||
"gs://centaur-ci-us-east1/wf_logs/workflow.<<UUID>>.log": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/stderr": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/stdout": 1 | ||
"gs://centaur-ci-us-east1/cl_logs/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/simpleStdoutTask.log": 1 | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/simpleStdoutTask.log": 1 | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 1 | ||
} |
23 changes: 23 additions & 0 deletions
23
...aur/src/main/resources/standardTestCases/resultsCopyingTestCases/gcpWdlResultsMoving.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,23 @@ | ||
name: gcpWdlResultsMoving | ||
testFormat: workflowsuccess | ||
tags: ["copyGcp"] | ||
|
||
# Will run on a Cromwell that supports any one of these backends | ||
backendsMode: any | ||
backends: [Papi, Papiv2, GCPBatch] | ||
|
||
files { | ||
workflow: wdlResultsCopying/simpleWorkflow.wdl | ||
options: wdlResultsMoving/gcp/options.json | ||
} | ||
|
||
metadata { | ||
status: Succeeded | ||
} | ||
|
||
# The `centaur-ci-us-east1` bucket is in a different region than the workflow runs | ||
fileSystemCheck: "gcs" | ||
outputExpectations: { | ||
"gs://centaur-ci-us-east1/move_destination/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 1 | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 0 | ||
} |
23 changes: 23 additions & 0 deletions
23
...src/main/resources/standardTestCases/resultsCopyingTestCases/gcpWdlResultsMovingFail.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,23 @@ | ||
name: gcpWdlResultsMovingFail | ||
testFormat: workflowfailure | ||
tags: ["copyGcp"] | ||
|
||
# Will run on a Cromwell that supports any one of these backends | ||
backendsMode: any | ||
backends: [Papi, Papiv2, GCPBatch] | ||
|
||
files { | ||
workflow: wdlResultsCopying/simpleWorkflow.wdl | ||
options: wdlResultsMoving/gcp/options_fail.json | ||
} | ||
|
||
metadata { | ||
status: Failed | ||
} | ||
|
||
# The copy to non-existent bucket failed so the delete should not have happened | ||
# (compare to `gcpWdlResultsMoving.test`) | ||
fileSystemCheck: "gcs" | ||
outputExpectations: { | ||
"gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci/simpleWorkflow/<<UUID>>/call-simpleStdoutTask/output.txt": 1 | ||
} |
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
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...in/resources/standardTestCases/resultsCopyingTestCases/wdlResultsCopying/gcp/options.json
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,9 @@ | ||
{ | ||
"use_relative_output_paths": false, | ||
"final_workflow_outputs_dir": "gs://centaur-ci-us-east1/wf_results", | ||
"final_workflow_outputs_mode": "copy", | ||
"final_workflow_log_dir": "gs://centaur-ci-us-east1/wf_logs", | ||
"final_call_logs_dir": "gs://centaur-ci-us-east1/cl_logs", | ||
"read_from_cache": false, | ||
"write_to_cache": false | ||
} |
8 changes: 8 additions & 0 deletions
8
...rces/standardTestCases/resultsCopyingTestCases/wdlResultsCopying/gcp/optionsRelative.json
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,8 @@ | ||
{ | ||
"use_relative_output_paths":true, | ||
"final_workflow_outputs_dir":"gs://centaur-ci-us-east1/wf_results", | ||
"final_workflow_log_dir":"gs://centaur-ci-us-east1/wf_logs", | ||
"final_call_logs_dir":"gs://centaur-ci-us-east1/cl_logs", | ||
"read_from_cache": false, | ||
"write_to_cache": false | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...ain/resources/standardTestCases/resultsCopyingTestCases/wdlResultsMoving/gcp/options.json
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,7 @@ | ||
{ | ||
"jes_gcs_root": "gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci", | ||
"final_workflow_outputs_dir": "gs://centaur-ci-us-east1/move_destination", | ||
"final_workflow_outputs_mode": "move", | ||
"read_from_cache": false, | ||
"write_to_cache": false | ||
} |
7 changes: 7 additions & 0 deletions
7
...esources/standardTestCases/resultsCopyingTestCases/wdlResultsMoving/gcp/options_fail.json
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,7 @@ | ||
{ | ||
"jes_gcs_root": "gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/ci", | ||
"final_workflow_outputs_dir": "gs://non-existent-bucket/move_destination", | ||
"final_workflow_outputs_mode": "move", | ||
"read_from_cache": false, | ||
"write_to_cache": false | ||
} |
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.