-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from elsa-data/feature/proper-error-messages
Feature/proper error messages
- Loading branch information
Showing
59 changed files
with
10,514 additions
and
1,546 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ node_modules/ | |
cdk.context.json | ||
|
||
cdk.out/ | ||
|
||
|
||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
How to do a full scale invoke test. | ||
|
||
Go to "elsa-data-tmp" bucket in dev. | ||
It probably will be empty as objects auto-expire. | ||
Make a folder "copy-out-test-working". | ||
Copy "example-copy-manifest.csv" to that folder. | ||
|
||
THE FOLDER MUST BE EXACTLY AS SPECIFIED AS THAT PERMISSION IS BAKED INTO | ||
THE DEV DEPLOYMENT (IN ORDER TO TEST PERMISSIONS!) | ||
|
||
Invoke the dev Steps with the input (feel free to change to "0\_" if you | ||
want to run multiple experiments without overriding the results) | ||
|
||
```json | ||
{ | ||
"sourceFilesCsvBucket": "elsa-data-tmp", | ||
"sourceFilesCsvKey": "example-copy-manifest.csv", | ||
"destinationBucket": "elsa-data-copy-target-sydney", | ||
"maxItemsPerBatch": 2, | ||
"destinationStartCopyRelativeKey": "0_STARTED_COPY.txt", | ||
"destinationEndCopyRelativeKey": "0_ENDED_COPY.csv" | ||
} | ||
``` | ||
|
||
For a test of AG (in the AG account - with public/made up data files) | ||
|
||
```json | ||
{ | ||
"sourceFilesCsvBucket": "elsa-data-copy-working", | ||
"sourceFilesCsvKey": "example-copy-manifest-ag.csv", | ||
"destinationBucket": "elsa-data-copy-target-sydney", | ||
"maxItemsPerBatch": 1, | ||
"destinationStartCopyRelativeKey": "AG_STARTED_COPY.txt", | ||
"destinationEndCopyRelativeKey": "AG_ENDED_COPY.csv" | ||
} | ||
``` |
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,22 @@ | ||
/** | ||
* The only configurable item needed for the test cases - set this to a bucket you have | ||
* full access to. Ideally the bucket should have a lifecycle that auto expires objects after 1 day. | ||
* In order to keep minimal AWS permissions this is also specified | ||
* in the CDK deployment. | ||
*/ | ||
export const TEST_BUCKET = "elsa-data-tmp"; | ||
|
||
/** | ||
* A designated area in our test bucket that is where we can find the list | ||
* of objects to copy - and other working files | ||
* NOTE: this is not where the source or destination files are located. | ||
*/ | ||
export const TEST_BUCKET_WORKING_PREFIX = "copy-out-test-working/"; | ||
|
||
/** | ||
* We have a clear permissions split between the objects that we are copying - and | ||
* the working objects we create in doing the copy. By making sure they are in | ||
* different test folders - we can confirm that our permissions aren't accidentally | ||
* overlapping (which might mean we pass tests that later fail for real) | ||
*/ | ||
export const TEST_BUCKET_OBJECT_PREFIX = "copy-out-test-objects/"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
elsa-data-demo-agha-gdr-store,FLAGSHIP_A/2020-02-01/ERR251112_R1.fastq.gz | ||
elsa-data-demo-agha-gdr-store,FLAGSHIP_A/2020-02-01/ERR251112_R2.fastq.gz |
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,13 @@ | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.bcf" | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.bcf.csi" | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.vcf" | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.vcf.gz" | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.vcf.gz.csi" | ||
umccr-10f-data-dev,"ASHKENAZIM/HG002-HG003-HG004.joint.filter.vcf.gz.tbi" | ||
umccr-10f-data-dev,AFILETHATDOESNOTEXIST.txt | ||
umccr-10f-data-dev,ASHKENAZIM/HG002.bam | ||
umccr-10f-data-dev,ASHKENAZIM/HG002.bam.bai | ||
umccr-10f-data-dev,ASHKENAZIM/HG003.bam | ||
umccr-10f-data-dev,ASHKENAZIM/HG003.bam.bai | ||
umccr-10f-data-dev,ASHKENAZIM/HG004.bam | ||
umccr-10f-data-dev,ASHKENAZIM/HG004.bam.bai |
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.