Skip to content
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

TST: Decrease divergence between Task/Workflow _run_task #518

Merged
merged 4 commits into from
Apr 1, 2022

Conversation

mgxd
Copy link
Contributor

@mgxd mgxd commented Mar 31, 2022

First step to cleaning up some of the differences between Task/Workflow

@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

Merging #518 (5cbca66) into master (74957ca) will increase coverage by 0.01%.
The diff coverage is 94.44%.

@@            Coverage Diff             @@
##           master     #518      +/-   ##
==========================================
+ Coverage   79.03%   79.04%   +0.01%     
==========================================
  Files          20       20              
  Lines        4345     4348       +3     
  Branches     1233     1231       -2     
==========================================
+ Hits         3434     3437       +3     
  Misses        720      720              
  Partials      191      191              
Flag Coverage Δ
unittests 78.95% <94.44%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pydra/engine/core.py 89.32% <94.44%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74957ca...5cbca66. Read the comment docs.

result = Result(output=None, runtime=None, errored=False)
self.hooks.pre_run_task(self)
result = self.prepare_run_task(rerun)
orig_outdir = self.output_dir
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Task.output_dir is changing after the try/except block...

# before
/private/var/folders/r6/mcdps6rs37x2ttd1fn032yy40000gp/T/pytest-of-mathiasg/pytest-11/test_shell_cmd_inputspec_copyf0/ShellCommandTask_076520a92438002271a499fd2d1856333600d914bccc24b73505b69c61b77afb
# after
/private/var/folders/r6/mcdps6rs37x2ttd1fn032yy40000gp/T/pytest-of-mathiasg/pytest-11/test_shell_cmd_inputspec_copyf0/ShellCommandTask_f1303b44e112742de4622e902e48725b39bef257efe55f3195af27378ab02b8b

@mgxd mgxd marked this pull request as ready for review April 1, 2022 15:18
@djarecka djarecka merged commit 1641c96 into master Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants