Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move file virtualization in toil-wdl-runner to task boundaries (#5028)
* Defer file virtualization to task boundaries and consolidate decl evaluation. Also gets rid of monkeypatching in favor of a manual function call * Implement support for importing relative URL paths; import files at startup and carry through mappings * Fix possible invalid lookup and don't import raw URLs * Get rid of sentinel value implementation + drop files before virtualization in TaskWrapper for MiniWDL parity * Drop missing files during decl eval for outputs + Add a check for invalid coerced-to-null files and raise if exception found * Deal with mypy * Don't drop unnecesssarily * Switch to setattr implementation * Fix overwriting files * Fix prototype implementation * Fix documentation * Resolve nested virtualize files issue by converting back to original and permanent devirtualization of URLs * Fix virtualization of URLs that aren't toil URIs * Mypy * Remove documentation that no longer applies * Fix merge conflict issue * Enable symlink conformance test * whitespace * Fix virtualize/devirtualize_filename to be called only during command stdlibs and combine_bindings issue with new virtualization representation * Add documentation and make convert_files function import greedily * Get rid of memoization as File is not hashable (I believe inside LRU) * Apply suggestions from code review Co-authored-by: Adam Novak <anovak@soe.ucsc.edu> * Update src/toil/wdl/wdltoil.py Co-authored-by: Adam Novak <anovak@soe.ucsc.edu> * Rename, add comments, remove unused code/comments * Add comments and adjust wdl context usage * add namespace * integrate namespace into wdl_context * properly name wdl value bases * Remove irrelevant comment * Adjust docstring formatting to remove RST warnings * Adjust comment grammar * Remove disallowed backticks * Extract out the import function to add back memoization and resolve issue of multiple imports on the same file * change wdl_context to wdlcontext * also change typeddict * Add some documentation for the WDLContext object --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Adam Novak <anovak@soe.ucsc.edu>
- Loading branch information