General Issue: Verify template results #2642
Replies: 13 comments 2 replies
-
I would be hesitant to make these into unit tests as they are very big files to run. The current CI check for the templates is a separate workflow. I was thinking we would build off that one - pharmaverse/admiralci/.github/workflows/check-templates.yml@main |
Beta Was this translation helpful? Give feedback.
-
I see your point. |
Beta Was this translation helpful? Give feedback.
-
What about how Edoardo approached that new check in the blog? He sources a file in the workflow - maybe something to consider? Then you could grab the file and run it |
Beta Was this translation helpful? Give feedback.
-
Yeah that would not be a bad idea. Let me experiment a bit. |
Beta Was this translation helpful? Give feedback.
-
We could implement a function which runs a specified list of templates and compares the results with the references datasets (in pharmaverseadam?). This function could then be used in the CI/CD workflow and also be called locally. |
Beta Was this translation helpful? Give feedback.
-
That sounds like a good idea. |
Beta Was this translation helpful? Give feedback.
-
So - pharmaverseadam got re-deployed last week so things might not line up that well with this method going forward. Feels like it is getting decoupled form admiral. I think we should compare templates runs via stuff in main and stuff in a branch. Could this action just run if code in the templates is updated in the branch? I feel like that is possible ???? |
Beta Was this translation helpful? Give feedback.
-
@bms63
Which gives us the following keys:
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I’ll start making a list of our datasets and potential keys |
Beta Was this translation helpful? Give feedback.
-
@bms63 just FYI @jimrothstein has approached me to take this over, with some more input from my side. |
Beta Was this translation helpful? Give feedback.
-
No progress from my end, but eager to set this up as it causes a lot of consternation. Actually looking to do something similar in the Pliot R Submissions as well |
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion and will link in the Roadmap |
Beta Was this translation helpful? Give feedback.
-
Trying to collect some thoughts here, please feel free to chime in: I see two ways of going about:
Strategies to speed up:
How to compare
|
Beta Was this translation helpful? Give feedback.
-
Background Information
It would be ideal to have a way to verify whether the outputs of the templates have changed.
One idea would be to write unit tests, so that running the unit tests would already check that.
I think it could be done like this in a unit test:
Definition of Done
Either find a way of verifying the outputs of the templates, or to decide that this is not necessary.
Beta Was this translation helpful? Give feedback.
All reactions