-
Notifications
You must be signed in to change notification settings - Fork 21
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
Persist ldmx-sw version and sha in run header #1539
Conversation
One question, what happens to this information when I run over an input file with a different version and produce a new output file? |
I just tested this by running myAna again while I modified the gold_label. It kept the "old" version. -- > I think this is the desired behavior anyway, what we really care about is the simulation step, the other producers can run in the top of that. Otherwise just by running skimming in a new version should not overwrite this, so this behavior makes sense to me |
Yea, whenever running in recon mode, the RunHeader is copied from the input file to the output file. We could have subsequent processes add a new run parameter (as Tamas suggested on slack with I think just leaving the base version is the best for now. We could develop a situation where we associate the pass name with a ldmx-sw version at some point in the future. |
So the ldmx-sw version gets printed during the output of newly generated files - great! How would you check the version for files that have already been run (after this update is pushed of course)? Or is that a separate problem? |
That is a separate problem. This helps avoid that problem in the future. I can help you a bit more on slack if need be, but I'd ask you to more clearly define what information you want. Do you need to know if a specific simulation bug was present? Do you just want to document for replicability? |
Was just wanting to document for replicability! We can chat on Slack Tom. |
Ehhh... https://github.com/LDMX-Software/ldmx-sw/actions/runs/13034690037/job/36362081247
|
I'm guessing its because we need to copy the source code into the image Line 9 in b319599
and this copy skips hidden directories. It might be easier to just move gold_label somewhere else, maybe even have a version file at repository root that can be read by everyone. |
@bryngemark I was thinking about this: we could easily adopt a convention in central production to have the |
Made an issue for further discussion: #1559 |
I am updating ldmx-sw, here are the details.
What are the issues that this addresses?
This resolves #1538
Check List
I ran
and then
and got
Where
my_ana.py
andMyAna.cxx
are in the details below.and
MyAna.cxx
is