-
Notifications
You must be signed in to change notification settings - Fork 228
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
Add ED2 versions in BETY models table based on git hash instead of generic "git" #2081
Comments
One issue is that pecan will use the version to find the right config files for ED in the install folder, so for the git version it will look for a file called ED2IN.rgit. So if we don't see the appropriate file, we can fall back to that version Secondly, keep in mind that if you have some local modifications of ED, everytime there is a git commit on the remote site, you might end up with a merge commit, resulting in a hash that is unique to only you site. That being said, I do think this is the best option. In the case of docker I might have to figure out a new naming scheme. Right now the images are called |
I think this applies to a lot of other models as well. Anything that is build that is not an official release should follow this scheme. |
@robkooper agreed....I was wondering if we could stick to main branch hashes not custom end-user tweaks to save in PEcAn....and any local configurations could use their own ED2IN.[hash] files? Though I realize this is not a great solution but we need a better way to track ED2 versions and ED2IN versions |
The Docker Hub model of giving each image its own tag, and then having a "latest" tag that is tied to the latest stable version, is a good idea. Not sure how best to automatically configure that alias though. |
In the meantime, I think we should just abandon the |
As for configuration file, we can use the same we use currently and maybe fall back on ED2IN with no version which we assume will work with any latest version. Best is to check in the ED2IN. file though. |
I should add to this thread that @serbinsh indicated that ED2IN files with tags unknown to the current version of ED will cause it to crash. In other words, using a newer ED2IN that has more stuff can break an older version of ED. |
This issue is stale because it has been open 365 days with no activity. |
now using ED tag 2.2 (as well as git), should eventually phase out git out of the official builds. |
Is your feature request related to a problem? Please describe.
Presently we are using a generic "git" version in BETY for ED2 (including 3 separate entries for ED2 version git) which makes it 1) hard to keep track of which BETY record for git corresponds to which machine and 2) causes problems when the ED2IN file changes with git but not in PEcAn or changes in PEcAn and ED2 but a machine's version of ED2 is behind a version which will create a run error in PEcAn if the user selects the PEcAn "git" version of the file that ships with PEcAn.
Describe the solution you'd like
We would include the latest main ED2 branch git hash in the model table for the ED2 version, for example:
which is the hash for PR 250
We would then also name the ED2IN files in inst, for example ED2IN.5065966 or something similar such that ED2 version and ED2IN files can be linked. OR perhaps this just needs to happen for releases where ED2IN changes, though I could see that also being challenging to keep track of.
What do folks think? I may not have done a good job with the explanation but I think there must be a better way of keep track of versions and ED2IN's for ED2.
The text was updated successfully, but these errors were encountered: