-
Notifications
You must be signed in to change notification settings - Fork 0
Update orderly2 #3
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
Conversation
EmmaLRussell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
So is the idea that if you want to add a new packet to this, say, you would add it to src, and to the check script, and would then need to package it all into a new version of _outpack.tar? Might be worth mentioning this in the README - maybe even provide a pack-outpack script too?
| orderly2::orderly_init() | ||
| orderly2::orderly_run("parameters", list(a = 10, c = 30)) | ||
| orderly2::orderly_run("explicit") | ||
| orderly2::orderly_run("depends") | ||
| orderly2::orderly_run("computed-resource") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to add any further checks here that expected output is produced, or can we just assume that orderly2 would have thrown if something weird happened?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script would have errored with the previous version - it's just a smoke test and we can expand it if things rot. Output expectations are already pretty heavily tested in orderly2 itself
Yes, I think so - the original set were added by Alex when the repo was created but I've not inspected the metadata to work out what was run (that should be possible). I'm not sure how much, if at all these are even used tbh, or if the use depends on specific ids. The only place that they are used at all that I can see is |
I've used them while developing packit-deploy, running it locally, so that I can see that the app works as expected (it needs to be initialised with some packets for me to be confident about this). But because this repo wasn't working, I mirrored it at https://github.com/david-mears-2/orderly2-demos (before this PR happened) and used that |
|
You should be able to use the script here ( |
This repo has rotted quite poorly, which is not surprising as it dates back to some pretty old versions of the refactor and has not really been looked at since.
We have moved how parameters are referenced in ways that are causing issues - using
orderly3::orderly_parametersin particular causes the metadata parse to fail in pretty bad and confusing ways:(this is because we see
::as the function call and notorderly2as the first arg, I think). This PR fixes that but also:parameters/parameters.Rnotparameters/orderly.Rorderly_parametersreturning a list.outpackdirectory that should not have been saved here really - I think this is largely ok but have added a script to untar the previous set of data so if we do need that in tests it will be easyThe only use I can find on gh is in packit-deploy, so we can safely update the name here too once I have that repo passing against this