Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GUDMAP_RBK
RNA-seq
Commits
b247d7e4
Commit
b247d7e4
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Move expected assigned into ci.yml
#27
parent
3f55fde3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!35
Ci
Pipeline
#7756
failed with stages
in 3 hours, 24 minutes, and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+19
-6
19 additions, 6 deletions
.gitlab-ci.yml
workflow/tests/test_consistency.py
+10
-12
10 additions, 12 deletions
workflow/tests/test_consistency.py
with
29 additions
and
18 deletions
.gitlab-ci.yml
+
19
−
6
View file @
b247d7e4
...
...
@@ -133,13 +133,13 @@ integration_se:
-
hostname
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID 16-1ZX4 -with-dag dag.png --ci
true
-
find . -type f -name "multiqc_data.json" -exec cp {} ./
16-1ZX4
_multiqc_data.json \;
-
find . -type f -name "multiqc_data.json" -exec cp {} ./
SE
_multiqc_data.json \;
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
paths
:
-
output/qc/
-
16-1ZX4
_multiqc_data.json
-
SE
_multiqc_data.json
expire_in
:
7 days
integration_pe
:
...
...
@@ -148,21 +148,34 @@ integration_pe:
-
hostname
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5JA -with-dag dag.png --ci
true
-
find . -type f -name "multiqc_data.json" -exec cp {} ./
Q-Y5JA
_multiqc_data.json \;
-
find . -type f -name "multiqc_data.json" -exec cp {} ./
PE
_multiqc_data.json \;
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
paths
:
-
dag.png
-
output/qc/
-
Q-Y5JA
_multiqc_data.json
-
PE
_multiqc_data.json
expire_in
:
7 days
consistency
:
stage
:
consistency
script
:
-
grep -m 1 \"Assigned\":.[0-9] 16-1ZX4_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedSE.txt
-
grep -m 1 \"Assigned\":.[0-9] Q-Y5JA_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt
-
grep -m 1 \"Assigned\":.[0-9] SE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedSE.txt
-
grep -m 1 \"Assigned\":.[0-9] PE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt
-
echo 7742416 > assignedExpectSE.txt
-
echo 2599149 > assignedExpectPE.txt
-
pytest -m consistencySE
-
pytest -m consistencyPE
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
paths
:
-
SE_multiqc_data.json
-
PE_multiqc_data.json
-
assignedSE.txt
-
assignedPE.txt
-
assignedExpectSE.txt
-
assignedExpectPE.txt
expire_in
:
7 days
This diff is collapsed.
Click to expand it.
workflow/tests/test_consistency.py
+
10
−
12
View file @
b247d7e4
...
...
@@ -7,26 +7,24 @@ import os
test_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
test_sampleSE
=
'
16-1ZX4
'
test_assignededSE
=
'
7742416
'
test_samplePE
=
'
Q-Y5JA
'
test_assignedPE
=
'
2599149
'
@pytest.mark.consistencySE
def
test_consistencySE
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
test_sampleSE
,
'
_multiqc_data.json
'
))
assert
readAssigned
(
"
assignedSE.txt
"
,
test_
assigned
S
E
)
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
SE
_multiqc_data.json
'
))
assert
readAssigned
(
"
assignedSE.txt
"
,
"
assignedE
xpectSE.txt
"
)
@pytest.mark.consistencyPE
def
test_consistencyPE
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
test_samplePE
,
'
_multiqc_data.json
'
))
assert
readAssigned
(
"
assignedPE.txt
"
,
test_
assigned
P
E
)
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
PE
_multiqc_data.json
'
))
assert
readAssigned
(
"
assignedPE.txt
"
,
"
assignedE
xpectPE.txt
"
)
def
readAssgned
(
a
ssigned
F
ile
,
a
ssigned
):
def
readAssgned
(
fileA
ssigned
,
f
ile
ExpectA
ssigned
):
data
=
False
file
=
open
(
assignedFile
,
"
r
"
)
line
=
file
.
readline
()
if
line
.
strip
()
==
assigned
:
assigned
=
open
(
fileAssigned
,
"
r
"
)
expect
=
open
(
fileExpectAssigned
,
"
r
"
)
lineAssigned
=
assigned
.
readline
()
lineExpect
=
expect
.
readline
()
if
lineAssigned
.
strip
()
==
lineExpect
.
strip
():
data
=
True
return
data
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment