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

Allow requesting RO-Crate provenance (next cwltool release) #166

Open
davidjsherman opened this issue Jan 13, 2024 · 5 comments
Open

Allow requesting RO-Crate provenance (next cwltool release) #166

davidjsherman opened this issue Jan 13, 2024 · 5 comments

Comments

@davidjsherman
Copy link

When we provide the results of Calrissian jobs as a deliverable, we include a RO-Crate that reports provenance of the results produced by the execution the CWL workflow. The provenance report is created by cwltool when the --provenancefolder option is specified.

Calrissian can pass through the option but this currently fails because Calrissian calls cwltool.main directly with preparsed arguments only and the current release of cwltool requires unparsed arguments as well when reporting provenance.

The requirement for unparsed arguments has been removed by common-workflow-language/cwltool#1964, and the change should be in the next cwltool release.

We could provide a PR with a unit test, as soon as the release is available.

@davidjsherman
Copy link
Author

Note that there isn't a easy workaround in Calrissian itself. Because of the way that parse_arguments handles defaults, the complete list of unparsed arguments isn't available to be passed as argsl to cwltool.main. We could lie and provide any nonempty list in argsl — the list is only used by cwltool for logging — but that inconsistency would be revealed in the provenance logs.

@fabricebrito
Copy link
Contributor

Hi @davidjsherman, thanks for the heads-up. We've been following the cwltool issue and PR. Happy to merge when @mr-c releases cwltool and you're ready with the PR on calrissian

@mr-c
Copy link
Contributor

mr-c commented Jan 15, 2024

Here's the new cwltool release; enjoy! https://pypi.org/project/cwltool/3.1.20240112164112/ & https://github.com/common-workflow-language/cwltool/releases/tag/3.1.20240112164112

@davidjsherman
Copy link
Author

@fabricebrito would you prefer the Calrissian-specific unit test in a separate file, or folded into tests/test_job.py?

@fabricebrito
Copy link
Contributor

@davidjsherman a separate file is perfect

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

No branches or pull requests

3 participants