Skip to content

Commit 2d9dcc9

Browse files
committed
test: Add a test for benchmarking failed_tasks
1 parent 1f005db commit 2d9dcc9

File tree

8 files changed

+15427
-0
lines changed

8 files changed

+15427
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
nextflow_process {
2+
name "Test Process BENCHMARK_REPORT"
3+
script "../main.nf"
4+
process "BENCHMARK_REPORT"
5+
6+
// TODO: Should run without AWS cost report
7+
8+
test("Should run with removing failed tasks") {
9+
when {
10+
process {
11+
"""
12+
input[0] = [file("modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj")]
13+
input[1] = ["group1"]
14+
input[2] = []
15+
input[3] = true
16+
"""
17+
}
18+
}
19+
20+
then {
21+
assert process.success
22+
assert snapshot(process.out).match()
23+
assert path(process.out.benchmark_html.get(0)).exists()
24+
assert path(process.out.versions.get(0)).exists()
25+
}
26+
}
27+
28+
// TODO: Should run with multiple runs
29+
// TODO: Should run with AWS cost report
30+
// TODO: Should run with remove failed tasks
31+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version" : "24.3.0-cycle3",
3+
"apiVersion" : "1.25.0",
4+
"commitId" : "58b72a7",
5+
"authTypes" : [ "auth0", "email" ],
6+
"loginPath" : "/login",
7+
"navbar" : {
8+
"menus" : [ {
9+
"label" : "Docs",
10+
"url" : "https://docs.seqera.io"
11+
}, {
12+
"label" : "Community",
13+
"url" : "https://community.seqera.io/"
14+
}, {
15+
"label" : "Feedback",
16+
"url" : "https://feedback.seqera.io/"
17+
} ]
18+
},
19+
"heartbeatInterval" : 3960,
20+
"userWorkspaceEnabled" : true,
21+
"allowInstanceCredentials" : false,
22+
"landingUrl" : "https://seqera.io",
23+
"termsOfUseUrl" : "https://seqera.io/legal/terms-of-use",
24+
"contentUrl" : "https://user-data.cloud.seqera.io",
25+
"analytics" : { },
26+
"allowLocalRepos" : true,
27+
"contentMaxFileSize" : 26214400,
28+
"waveEnabled" : true,
29+
"groundswellEnabled" : true,
30+
"forgePrefix" : "TowerForge",
31+
"seqeraCloud" : true,
32+
"evalWorkspaceIds" : [ 40230138858677 ]
33+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"id" : "60fj4f5UEugLFrdDHOjYGJ",
3+
"computeEnv" : {
4+
"id" : "4gVZCvyQkFBGLAq8Vh1q2E",
5+
"name" : "deleted-6691228547460385",
6+
"platform" : "aws-batch",
7+
"config" : {
8+
"region" : "eu-west-1",
9+
"computeQueue" : "TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-work",
10+
"executionRole" : "arn:aws:iam::893329243595:role/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-ExecutionRole",
11+
"headQueue" : "TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-head",
12+
"headJobRole" : "arn:aws:iam::893329243595:role/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-FargateRole",
13+
"volumes" : [ ],
14+
"workDir" : "s3://nf-tower-bucket",
15+
"waveEnabled" : true,
16+
"fusion2Enabled" : true,
17+
"nvnmeStorageEnabled" : true,
18+
"forge" : {
19+
"type" : "SPOT",
20+
"minCpus" : 0,
21+
"maxCpus" : 500,
22+
"gpuEnabled" : false,
23+
"instanceTypes" : [ "c6id", "m6id", "r6id" ],
24+
"subnets" : [ ],
25+
"securityGroups" : [ ],
26+
"disposeOnDeletion" : true,
27+
"allowBuckets" : [ ],
28+
"efsCreate" : false,
29+
"fargateHeadEnabled" : true,
30+
"arm64Enabled" : false
31+
},
32+
"forgedResources" : [ {
33+
"IamRole" : "arn:aws:iam::893329243595:role/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-ServiceRole"
34+
}, {
35+
"IamRole" : "arn:aws:iam::893329243595:role/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-ExecutionRole"
36+
}, {
37+
"IamInstanceProfile" : "arn:aws:iam::893329243595:instance-profile/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-InstanceRole"
38+
}, {
39+
"IamRole" : "arn:aws:iam::893329243595:role/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-FargateRole"
40+
}, {
41+
"BatchEnv" : "arn:aws:batch:eu-west-1:893329243595:compute-environment/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-head"
42+
}, {
43+
"BatchQueue" : "arn:aws:batch:eu-west-1:893329243595:job-queue/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-head"
44+
}, {
45+
"Ec2LaunchTemplate" : "TowerForge-4gVZCvyQkFBGLAq8Vh1q2E"
46+
}, {
47+
"BatchEnv" : "arn:aws:batch:eu-west-1:893329243595:compute-environment/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-work"
48+
}, {
49+
"BatchQueue" : "arn:aws:batch:eu-west-1:893329243595:job-queue/TowerForge-4gVZCvyQkFBGLAq8Vh1q2E-work"
50+
} ],
51+
"discriminator" : "aws-batch"
52+
},
53+
"dateCreated" : "2023-08-03T08:49:11Z",
54+
"lastUpdated" : "2024-09-24T08:52:40Z",
55+
"lastUsed" : "2024-09-24T02:31:15Z",
56+
"deleted" : true,
57+
"status" : "INVALID",
58+
"message" : "Compute environment has been deleted",
59+
"credentialsId" : "5R5EMRNv0M8DXAiJ4WkMH9",
60+
"orgId" : 187965850823746,
61+
"workspaceId" : 40230138858677
62+
},
63+
"pipeline" : "https://github.com/nf-core/rnaseq",
64+
"workDir" : "s3://nf-tower-bucket",
65+
"revision" : "3.12.0",
66+
"configText" : "",
67+
"towerConfig" : "",
68+
"paramsText" : "{\"input\":\"https://api.tower.nf/workspaces/40230138858677/datasets/66XmaViCT87OV8aGYS2Pk1/v/1/n/samplesheet_test.csv\",\"outdir\":\"s3://nf-tower-bucket/rnaseq/crazy_wiles/results\",\"save_merged_fastq\":false,\"with_umi\":false,\"umitools_extract_method\":\"string\",\"skip_umi_extract\":false,\"umitools_bc_pattern\":\"NNNN\",\"umitools_grouping_method\":\"directional\",\"umitools_dedup_stats\":false,\"save_umi_intermeds\":false,\"bbsplit_fasta_list\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/bbsplit_fasta_list.txt\",\"save_bbsplit_reads\":false,\"skip_bbsplit\":false,\"remove_ribo_rna\":false,\"ribo_database_manifest\":\"${projectDir}/assets/rrna-db-defaults.txt\",\"save_non_ribo_reads\":false,\"fasta\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/genome.fasta\",\"gtf\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/genes.gtf.gz\",\"gff\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/genes.gff.gz\",\"transcript_fasta\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/transcriptome.fasta\",\"additional_fasta\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/gfp.fa.gz\",\"hisat2_index\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/hisat2.tar.gz\",\"rsem_index\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/rsem.tar.gz\",\"salmon_index\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/salmon.tar.gz\",\"hisat2_build_memory\":\"200.GB\",\"gencode\":false,\"gtf_extra_attributes\":\"gene_name\",\"gtf_group_features\":\"gene_id\",\"featurecounts_group_type\":\"gene_biotype\",\"featurecounts_feature_type\":\"exon\",\"save_reference\":false,\"igenomes_base\":\"s3://ngi-igenomes/igenomes\",\"igenomes_ignore\":false,\"trimmer\":\"trimgalore\",\"min_trimmed_reads\":10000,\"skip_trimming\":false,\"save_trimmed\":false,\"aligner\":\"star_salmon\",\"pseudo_aligner\":\"salmon\",\"bam_csi_index\":false,\"star_ignore_sjdbgtf\":false,\"min_mapped_reads\":5,\"stringtie_ignore_gtf\":false,\"save_unaligned\":false,\"save_align_intermeds\":false,\"skip_markduplicates\":false,\"skip_alignment\":false,\"skip_pseudo_alignment\":false,\"rseqc_modules\":\"bam_stat,inner_distance,infer_experiment,junction_annotation,junction_saturation,read_distribution,read_duplication\",\"deseq2_vst\":true,\"skip_bigwig\":false,\"skip_stringtie\":false,\"skip_fastqc\":false,\"skip_preseq\":true,\"skip_dupradar\":false,\"skip_qualimap\":false,\"skip_rseqc\":false,\"skip_biotype_qc\":false,\"skip_deseq2_qc\":false,\"skip_multiqc\":false,\"skip_qc\":false,\"custom_config_version\":\"master\",\"custom_config_base\":\"https://raw.githubusercontent.com/nf-core/configs/master\",\"config_profile_name\":\"Test profile\",\"config_profile_description\":\"Minimal test dataset to check pipeline function\",\"test_data_base\":\"https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq3\",\"max_cpus\":2,\"max_memory\":\"6.GB\",\"max_time\":\"6.h\",\"help\":false,\"version\":false,\"publish_dir_mode\":\"copy\",\"plaintext_email\":false,\"max_multiqc_email_size\":\"25.MB\",\"monochrome_logs\":false,\"validate_params\":true,\"show_hidden_params\":false}",
69+
"preRunScript" : "export CAPSULE_LOG=none\nexport NXF_VER=23.08.0-edge\nexport NXF_FILE_ROOT=s3://nf-tower-bucket/scratch/$TOWER_WORKFLOW_ID",
70+
"resume" : false,
71+
"pullLatest" : false,
72+
"stubRun" : false,
73+
"runName" : "crazy_wiles",
74+
"configProfiles" : [ "test" ],
75+
"dateCreated" : "2023-05-19T09:26:56Z",
76+
"lastUpdated" : "2023-10-24T04:36:41Z"
77+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"pending" : 0,
3+
"submitted" : 0,
4+
"running" : 0,
5+
"succeeded" : 192,
6+
"failed" : 0,
7+
"cached" : 0,
8+
"memoryEfficiency" : 2.8175535,
9+
"cpuEfficiency" : 62.696598,
10+
"cpus" : 325,
11+
"cpuTime" : 2296938,
12+
"cpuLoad" : 1440102,
13+
"memoryRss" : 34851745792,
14+
"memoryReq" : 1236950581248,
15+
"readBytes" : 5459289730,
16+
"writeBytes" : 1022126896,
17+
"volCtxSwitch" : 36821,
18+
"invCtxSwitch" : 44046,
19+
"cost" : 0.0202211975,
20+
"loadTasks" : 0,
21+
"loadCpus" : 0,
22+
"loadMemory" : 0,
23+
"peakCpus" : 18,
24+
"peakTasks" : 9,
25+
"peakMemory" : 57982058496,
26+
"executors" : [ "awsbatch" ],
27+
"dateCreated" : "2023-10-24T04:39:27Z",
28+
"lastUpdated" : "2023-10-24T04:39:27Z"
29+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"pipelineId" : 189046775836482,
3+
"workspaceId" : 40230138858677,
4+
"workspaceName" : "showcase",
5+
"userId" : 10003,
6+
"runUrl" : "https://tower.nf/orgs/community/workspaces/showcase/watch/4Bi5xBK6E2Nbhj"
7+
}

0 commit comments

Comments
 (0)