-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipeline_testing - #341
Comments
This is a py3 issue, I have a fix for this that I need to push. |
... actually already pushed, could you please git pull --rebase? |
hmm I've done that but it says I'm up to date, |
Hi Charlie, I agree, I could not see Andreas' fixes into the Py3-migration branches: I found the same problem with Jenkins. I think the issue is with pipeline_testing.py trying to access a file (test_name.log) while the pipeline itself is writing to it, and therefore you get an IO error. However, I might be wrong and Andreas can explain better. Best regards, |
Hi, sorry about that.
If I recall, the next() needs to be replaced by readline().
The issue was that in py3 the file is an IOBuffer or similar and
that does not have a next() method.
Best wishes,
Andreas
…On 28/06/17 10:31, Sebastian Luna-Valero wrote:
Hi Charlie,
I agree, I could not see Andreas' fixes into the Py3-migration branches:
https://github.com/CGATOxford/cgat/commits/Py3-migration
https://github.com/CGATOxford/CGATPipelines/commits/Py3-migration
I found the same problem with Jenkins. I think the issue is with
pipeline_testing.py
<https://github.com/CGATOxford/CGATPipelines/blob/Py3-migration/CGATPipelines/pipeline_testing.py#L467>
trying to access
<https://github.com/CGATOxford/cgat/blob/Py3-migration/CGAT/IOTools.py#L103>
a file (test_name.log) while the pipeline itself is writing to it, and
therefore you get an IO error.
However, I might be wrong and Andreas can explain better.
Best regards,
Sebastian
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#341 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOKYJfkrxG_zx2-cAiI5d4rRMNjSkYqks5sIh1ogaJpZM4OHA_e>.
|
Thanks, Andreas. I think there is an additional issue. The Best regards, |
Hi @sebastian-luna-valero , might be a bug, but note that I want to test ./test_name_.log instead of test_name/pipleline.log as the latter will also contain the log of the report building. There is also the issue to test several logs if there are multiple targets to be tested in a pipeline, see for example pipeline_annotations.
|
Strange, I don't see new commits the The statement Moreover, I think you can't expect to have |
Thanks, let us talk on Monday.
I think I saw the changes on github, but maybe I put it in the wrong branch?
Best wishes,
Andreas
…On 30/06/17 09:51, Sebastian Luna-Valero wrote:
Hi @AndreasHeger <https://github.com/andreasheger>
Strange, I don't see new commits the |Py3-migration| branches yet.
The statement |logfiles = glob.glob(track + "*.log")|, will return
|['test_annotations.log', 'test_annotations.tgz.log']|, so you're right
and it won't pickup the |test_annotations.dir/pipeline.log|, which I
find necessary to check as well since |pipeline_testing.py| may finish
silently while the pipeline under test may fail, giving exceptions in
|test_annotations.dir/pipeline.log|.
Moreover, I think you can't expect to have |# job finished| in while
running the |compareCheckSums| task of |pipeline_testing.py|.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#341 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOKYHJwQ9Rl_7JhxdSJ1Q1S6grSy8WFks5sJLb-gaJpZM4OHA_e>.
|
apologies, forgot to push changes to the CGAT repository, only CGAT
Pipelines.
just pushed!
…On 06/30/17 09:51, Sebastian Luna-Valero wrote:
Hi @AndreasHeger <https://github.com/andreasheger>
Strange, I don't see new commits the |Py3-migration| branches yet.
The statement |logfiles = glob.glob(track + "*.log")|, will return
|['test_annotations.log', 'test_annotations.tgz.log']|, so you're right
and it won't pickup the |test_annotations.dir/pipeline.log|, which I
find necessary to check as well since |pipeline_testing.py| may finish
silently while the pipeline under test may fail, giving exceptions in
|test_annotations.dir/pipeline.log|.
Moreover, I think you can't expect to have |# job finished| in while
running the |compareCheckSums| task of |pipeline_testing.py|.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#341 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOKYHJwQ9Rl_7JhxdSJ1Q1S6grSy8WFks5sJLb-gaJpZM4OHA_e>.
|
Thanks for fixing @AndreasHeger |
I'm testing the peakcalling pipeline with the py3 environment, each pipeline seems to run individually now and I've pushed those changes, but I get the following error when it comes to the checksums - has anyone else come across it before? @sebastian-luna-valero @AndreasHeger
``
2017-06-27 19:14:02,518 INFO running statement:
cat test_peakcallingSEbroad.stats | cgat csv2db --retry --database-backend=sqlite --database-name=csvdb --database-host= --database-user= --database-password= --database-port=3306 --add-index=file --table=test_peakcallingSEbroad_results > test_peakcallingSEbroad_results.load
2017-06-27 19:14:11,261 ERROR 1 tasks with errors, please see summary below:
2017-06-27 19:14:11,261 WARNING could not get task information for compareCheckSums, no message sent
2017-06-27 19:14:11,262 ERROR 0: Task=compareCheckSums Error=io.UnsupportedOperation Job=[[test_peakcallingPEnarrow.stats,test_peakcallingPEnarrowIDR.stats,test_peakcallingPEnarrowIDRoracle.stats,test_peakcallingSEIDR.stats,test_peakcallingSEbroad.stats]->md5_compare.tsv]: (can't do nonzero end-relative seeks)
2017-06-27 19:14:11,262 ERROR full traceback is in pipeline.log
Traceback (most recent call last):
File "/ifs/devel/charlotteg/py35-v1/CGATPipelines/CGATPipelines/Pipeline/Control.py", line 943, in main
checksum_level=options.ruffus_checksums_level,
File "/ifs/devel/charlotteg/py35-v1/conda/lib/python3.5/site-packages/ruffus/task.py", line 5938, in pipeline_run
raise job_errors
ruffus.ruffus_exceptions.RethrownJobError:
Original exception:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ifs/devel/charlotteg/py35-v1/CGATPipelines/CGATPipelines/pipeline_testing.py", line 656, in
sys.exit(P.main(sys.argv))
File "/ifs/devel/charlotteg/py35-v1/CGATPipelines/CGATPipelines/Pipeline/Control.py", line 1028, in main
"pipeline failed with %i errors" % len(value.args))
ValueError: pipeline failed with 1 errors
``
The text was updated successfully, but these errors were encountered: