Skip to content
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

Fix git branch logging and egs_home vs HEN_HOUSE code comparisons #898

Merged
merged 1 commit into from Jul 22, 2022

Conversation

rtownson
Copy link
Contributor

Fix an issue with long branch names where the fortran code would fail to compile because of exceeding the line length. This isn't completely fixed, but now a few more characters are allowed before it crashes. Correct me if I'm wrong, but I think it's not possible to fix completely, because it seems like the DEFINE replacement means that we can't use mortrans usual automatic line wrapping.

Fix the comparisons between egs_home and HEN_HOUSE/user_code applications, so that it doesn't report a difference when the HEN_HOUSE version doesn't exist to start with.

This fixes minor issues introduced in PR #414.

@rtownson rtownson added this to the Release 2022 milestone Jul 12, 2022
@rtownson rtownson requested a review from a team July 12, 2022 19:27
@rtownson rtownson self-assigned this Jul 12, 2022
@rtownson rtownson requested review from ftessier, mainegra and blakewalters and removed request for a team July 12, 2022 19:27
@rtownson rtownson requested a review from a team as a code owner July 12, 2022 19:27
@ftessier
Copy link
Member

@rtownson perhaps we can remove the git branch name altogether, and only keep the git commit hash? The branch name may cause confusion in fact, since it is a label that can point to any commit. What do you think?

@rtownson
Copy link
Contributor Author

@ftessier sure, I see your point. It should always be paired with a commit to avoid confusion, but the potential issue with long branch names might not be worth keeping it around.

@ftessier
Copy link
Member

@rtownson something like this, to remove all instances of GIT_BRANCH?

Remove the git branch information and provide the commit hash only. The
branch name is just a label that can point to any commit, so it remains
equivocal. This also solves the issue with long branch names where the
fortran code would fail to compile because of exceeding the line length.

Also, fix the comparisons between egs_home and HEN_HOUSE/user_code apps,
so that it doesn't report a difference when the HEN_HOUSE version
doesn't exist.
@ftessier
Copy link
Member

Rebased on develop and squashed.

@ftessier ftessier merged commit 8b2fc94 into develop Jul 22, 2022
@ftessier ftessier deleted the fix-git-branch-logging branch July 22, 2022 14:25
rtownson added a commit that referenced this pull request Aug 22, 2022
Fix compilation failure of BEAMnrc accelerators since the addition of
git and compile time logging. This also adds back printing of the git
hash, which was mistakenly removed in PR #898.
ftessier pushed a commit that referenced this pull request Oct 31, 2022
Fix compilation failure of BEAMnrc accelerators since the addition of
git and compile time logging. This also adds back printing of the git
hash, which was mistakenly removed in PR #898. Fix this for the
compilation of the shared library as well. Also, add newline at end of
beamnrc.spec.
ftessier pushed a commit that referenced this pull request Oct 31, 2022
Fix compilation failure of BEAMnrc accelerators since the addition of
git and compile time logging. This also adds back printing of the git
hash, which was mistakenly removed in PR #898. Fix this for the
compilation of the shared library as well.
ftessier pushed a commit that referenced this pull request Oct 31, 2022
Fix compilation failure of BEAMnrc accelerators since the addition of
git and compile time logging. This also adds back printing of the git
hash, which was mistakenly removed in PR #898. Fix this for the
compilation of the shared library as well.
rtownson added a commit that referenced this pull request Jan 12, 2023
Fix compilation failure of BEAMnrc accelerators since the addition of
git and compile time logging. This also adds back printing of the git
hash, which was mistakenly removed in PR #898. Fix this for the
compilation of the shared library as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants