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

Improve describe_version for git-fleximod #270

Merged

Conversation

billsacks
Copy link
Member

Description of changes

Until recently, the describe_version script worked with manage_externals. In ca22dbf, @jedwards4b changed it to work with git-fleximod, but in doing so removed some of its features. This PR brings back its original features but changes it to work with git-fleximod.

Specific features this brings are:

  • Provides CESM git hash and status for files in the CESM repository (in addition to those in sub-components, which are reported by git-fleximod)
  • Allows invoking describe_version from some other path (e.g., from within cime/scripts, you could run ../../describe_version and it would work the same as if you ran cd ../../; ./describe_version)

Specific notes

Contributors other than yourself, if any:

Fixes #245

User interface changes?: No

Testing performed (automated tests and/or manual tests): Manual testing of describe_version script

Copy link
Contributor

@jedwards4b jedwards4b left a comment

Choose a reason for hiding this comment

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

Thanks for this.

describe_version Outdated
#!/usr/bin/env python
"""Describes the CESM version and any local modifications"""

from __future__ import print_function
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that you need this line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point - this was a carry-over from the past version of this. I have removed it.

@jedwards4b
Copy link
Contributor

@billsacks We have changed the workflow for cesm - please redirect your PR to the cesm3-alphabranch. Thanks

@billsacks billsacks force-pushed the describe_version_git_fleximod branch from b60a54e to e15bd26 Compare August 9, 2024 15:42
@billsacks billsacks changed the base branch from master to cesm3.0-alphabranch August 9, 2024 15:42
@billsacks
Copy link
Member Author

We have changed the workflow for cesm - please redirect your PR to the cesm3-alphabranch.

Thanks for the reminder. I have rebased this and changed the base for this PR.

@jedwards4b jedwards4b merged commit 945adbf into ESCOMP:cesm3.0-alphabranch Aug 9, 2024
2 checks passed
@billsacks billsacks deleted the describe_version_git_fleximod branch August 9, 2024 16:18
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.

Need to change describe_version script for manage_externals replacement
2 participants