payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
18 stars 25 forks source link

Record last commit hash of previous experiment #387

Closed aidanheerdegen closed 4 months ago

aidanheerdegen commented 7 months ago

Automated metadata.yaml creation is added in this PR https://github.com/payu-org/payu/pull/384

If the commit hash of the the last commit in a previous experiment (when the experiment ID last changed) were saved in metadata.yaml it would make it trivially easy to specify the range of commits that constitute an experiment. The refA..refB syntax used for selecting a range of git commits automatically excludes the initial commit, refA in this example.

Otherwise you would need to walk the commit history of metadata.yaml in a repo looking for changes.

Would not be saved if not known (so field would be absent).

aidanheerdegen commented 4 months ago

Closed in #384