Skip to content

Log sha#1094

Merged
Qubitol merged 6 commits into
madgraph5:masterfrom
Qubitol:log-sha
Jul 17, 2026
Merged

Log sha#1094
Qubitol merged 6 commits into
madgraph5:masterfrom
Qubitol:log-sha

Conversation

@Qubitol

@Qubitol Qubitol commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

This fixes #1093

From now on, for each commit on master branch, a new file VERSION.txt is created within the repository (similar to the one created for each release), and containing the latest commit information, such as the SHA, committer, date, and message, in addition to the minimal MadGraph version, that is obtained from the __init__.py.

The code generator then will store a CUDACPP_VERSION.txt inside each generated process folder or gridpacks.
That file contains a banner reporting all the necessary tracking information and it is dumped at runtime as soon as CUDACPP is being used in the run.

TODO before merging:

  • manually check it works for gridpacks

@Qubitol

Qubitol commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

Simplified the print out.
It still doesn't work for gridpack, since the banner is not saved there.

@Qubitol

Qubitol commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

Everything works.
Whenever event generation is run, either if it is inside or outside a gridpack, it would print a message like the following:

=================================================
You are using MadGraph5_aMC@NLO + CUDACPP plugin:
CUDACPP version = 042985d "Log CUDACPP version and MadGraph minimal version when using CUDACPP"
Minimal MadGraph5 version supported = 3.7.1
Current MadGraph5 version           = 3.7.1
=================================================

Additionally, a CI workflow creates a file VERSION.txt inside the plugin folder that looks like the following:

mg5_version_minimal          = 3.7.1

commit         042985d
Author:        Daniele Massaro
AuthorDate:    2026-07-15_19:12:07 UTC
Committer:     GitHub
CommitterDate: 2026-07-15_19:12:07 UTC
Message:       "Log CUDACPP version and MadGraph minimal version when using CUDACPP"

@Qubitol
Qubitol marked this pull request as ready for review July 16, 2026 14:18
@Qubitol
Qubitol requested a review from a team as a code owner July 16, 2026 14:18
@Qubitol
Qubitol requested review from roiser and stloufra July 16, 2026 14:18
@oliviermattelaer

Copy link
Copy Markdown
Member

good for me.

Thanks, Olivier

@stloufra stloufra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me, only one small remark as discussed in person. I would rather state compatible version then minimal compatible version as vacancy of upper bound signals unconditional forward compatibility IMO.

Comment thread .github/workflows/version_master.yml Outdated
@roiser

roiser commented Jul 16, 2026

Copy link
Copy Markdown
Member

LGTM

@Qubitol
Qubitol merged commit 79b88bf into madgraph5:master Jul 17, 2026
355 of 357 checks passed
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

Successfully merging this pull request may close these issues.

Log tag/SHA and minimal supported MadGraph version

4 participants