-
Notifications
You must be signed in to change notification settings - Fork 1
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
ci: Add tests in pyhf-validation-root-base Docker image #9
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
=======================================
Coverage 90.90% 90.90%
=======================================
Files 3 3
Lines 11 11
=======================================
Hits 10 10
Misses 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
we could create ROOT workspaces using |
Good idea. I should have thought of this given that you and @kratsg had already suggested this when we originally posted some TODOs in the Issues. |
To my embarrassment, somehow the current version of the |
a26157d
to
ced9a46
Compare
Self note: Things to follow up on later (edit: after fixing lumi string conversion)
Things that aren't clear to me:
|
bb9ac1f
to
38083b1
Compare
because they're zero and automatically pruned. We don't do that in
depends on the workspace/analysis. not concerning as long as both ROOT and pyhf agree
likely ROOT auto-prunes below a certain value to 0 having it be negligible, and we just can't tell.
all of these seem to be at the 1% difference level, so I'm not generally concerned. |
83f62ad
to
35dab99
Compare
96082e2
to
cad0207
Compare
ed230f6
to
4527e56
Compare
4527e56
to
0a6238a
Compare
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.
JSON_to_workspace
seems smarter to me to have a Makefile variant of that instead of a shell script.
I don't normally think of |
Makefiles don't take arguments really. You can do like |
This is kinda my point. If we were to remove the Bash script and move all of that logic into a Make target then we'd have to hardcode everything.
for the specific test there, but we can use this for analyses in the future. Why do we want to hardcode this one particular example case in a |
Makefiles don't hardcode names. They hardcode patterns. You can define a pattern target, e.g. |
Doesn't this still hardcode a Region and a URL or require a user to download everything? This seems like a loss of functionality. Maybe I should be asking a different question(s): What do you see us gaining by making this all a Make target? What do you see as the disadvantages of using a Bash script that requires user arguments? |
No advantages or disadvantages. The thing with the bash script is you'll regenerate when you re-run (versus a Makefile which only re-runs / re-makes things that have their source changing). |
0a6238a
to
7a9ebb6
Compare
the replacement is of ROOT named parameters to be named like pyhf parameters
Git is already installed in the base image
7a9ebb6
to
a6d1235
Compare
significantly smaller
a6d1235
to
546fd4a
Compare
Add tests that run inside of the
pyhf/pyhf-validation-root-base
Docker image (where ROOT6.22.02
is installed). This is done by using thecontainer
job option, which allow for specification of an arbitrary Docker image to launch into.A more in depth example of
container
based workflow can be found here.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: