Skip to content

Commit

Permalink
test_corpi grooming
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 8, 2021
1 parent 2ff8543 commit a02e655
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions WDL/runtime/config_templates/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ disable_patterns = ["*.php", "*.aspx"]

[download_aria2c]
# see: https://github.com/chanzuckerberg/miniwdl/tree/main/tools_image
docker = ghcr.io/chanzuckerberg/miniwdl_tools:Id_sha256_4f085e4c6cb0919b200d00e449dfa6ac686910e418d516ce44a076de3bd96671:
docker = ghcr.io/chanzuckerberg/miniwdl_tools:Id_sha256_4f085e4c6cb0919b200d00e449dfa6ac686910e418d516ce44a076de3bd96671


[download_awscli]
Expand All @@ -129,7 +129,7 @@ docker = ghcr.io/chanzuckerberg/miniwdl_tools:Id_sha256_4f085e4c6cb0919b200d00e4
# Failing all of the above, public S3 URIs can always be used.
host_credentials = false
# see: https://github.com/chanzuckerberg/miniwdl/tree/main/tools_image
docker = ghcr.io/chanzuckerberg/miniwdl_tools:Id_sha256_4f085e4c6cb0919b200d00e449dfa6ac686910e418d516ce44a076de3bd96671:
docker = ghcr.io/chanzuckerberg/miniwdl_tools:Id_sha256_4f085e4c6cb0919b200d00e449dfa6ac686910e418d516ce44a076de3bd96671


[download_gsutil]
Expand Down
21 changes: 9 additions & 12 deletions tests/test_3corpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def read_source(uri, path, importer_uri):
return await WDL.read_source_default(uri, path, importer_uri)


def wdl_corpus(dir, path=[], blacklist=[], expected_lint={}, check_quant=True):
def wdl_corpus(dir, path=[], blocklist=[], expected_lint={}, check_quant=True):
def decorator(test_klass):

test_klass._lint_count = {}
Expand All @@ -62,7 +62,7 @@ def decorator(test_klass):
for fn in files:
name = os.path.split(fn)[1]
name = name[:-4]
if name not in blacklist:
if name not in blocklist:
name = "test_" + prefix + "_" + name.replace(".", "_")
while hasattr(test_klass, name):
name += "_"
Expand Down Expand Up @@ -233,7 +233,7 @@ class gatk4_cnn_variant_filter(unittest.TestCase):

@wdl_corpus(
["test_corpi/gatk-workflows/broad-prod-wgs-germline-snps-indels/**"],
blacklist=["JointGenotypingWf"],
blocklist=["JointGenotypingWf"],
expected_lint={
"StringCoercion": 50,
"UnusedDeclaration": 10,
Expand All @@ -249,7 +249,7 @@ class broad_prod_wgs(unittest.TestCase):
@wdl_corpus(
["test_corpi/broadinstitute/gtex-pipeline/**"],
# need URI import
blacklist=["rnaseq_pipeline_bam", "rnaseq_pipeline_fastq"],
blocklist=["rnaseq_pipeline_bam", "rnaseq_pipeline_fastq"],
expected_lint={
"IncompleteCall": 30,
"UnusedDeclaration": 3,
Expand All @@ -264,7 +264,7 @@ class GTEx(unittest.TestCase):
@wdl_corpus(
["test_corpi/DataBiosphere/topmed-workflows/**"],
# need URI import
blacklist=[
blocklist=[
"CRAM_md5sum_checker_wrapper",
"checker-workflow-wrapping-alignment-workflow",
"topmed_freeze3_calling",
Expand Down Expand Up @@ -362,7 +362,7 @@ class ENCODE_WGBS(unittest.TestCase):

@wdl_corpus(
["test_corpi/dnanexus/dxWDL/test/**"],
blacklist=[
blocklist=[
# output/call name collision (draft-2)
"conditionals2",
# decl/output name collision
Expand Down Expand Up @@ -408,7 +408,7 @@ class dxWDL(unittest.TestCase):
"UnverifiedStruct": 3,
"Deprecated": 2,
},
blacklist=["check_quant", "incomplete_call"],
blocklist=["check_quant", "incomplete_call"],
)
class Contrived(unittest.TestCase):
pass
Expand All @@ -435,15 +435,15 @@ class Contrived(unittest.TestCase):
"Deprecated": 2,
},
check_quant=False,
blacklist=["incomplete_call"],
blocklist=["incomplete_call"],
)
class Contrived2(unittest.TestCase):
pass


@wdl_corpus(
["test_corpi/biowdl/tasks/**"],
blacklist=[
blocklist=[
# these use the pattern 'input { Type? x = default }' and need check_quant=False
"mergecounts",
"somaticseq",
Expand Down Expand Up @@ -539,7 +539,6 @@ class BioWDLSmallRNA(unittest.TestCase):
"NonemptyCoercion": 4,
"FileCoercion": 17,
},
check_quant=False,
)
class warp_pipelines_broad(unittest.TestCase):
pass
Expand All @@ -550,7 +549,6 @@ class warp_pipelines_broad(unittest.TestCase):
expected_lint={
"UnusedDeclaration": 1,
},
check_quant=False,
)
class warp_pipelines_cemba(unittest.TestCase):
pass
Expand All @@ -565,7 +563,6 @@ class warp_pipelines_cemba(unittest.TestCase):
"FileCoercion": 3,
"NameCollision": 3,
},
check_quant=False,
)
class warp_pipelines_skylab(unittest.TestCase):
pass

0 comments on commit a02e655

Please sign in to comment.