promised-ai / lace

A probabalistic ML tool for science
Other
107 stars 8 forks source link

Fix/clarify `CITATION.cff` validation #167

Closed Swandog closed 10 months ago

Swandog commented 10 months ago

A small fix to make this job work, but be useful. This currently will throw alerts if the CITATION.cff file is incorrect, but will not prevent merges/releases.

I decided to make a few decisions on this:

  1. I decided to only validate on Rust releases. This has a few benefits:
    1. It simplifies choosing some of the values. I'm already asserting that the version in the citation file is the Rust Lace version, so this makes that association clearer
    2. It makes it easier to know how to validate certain fields. Since we release Python and Rust separately, but often on the same day, some of the date checking logic is a bit convoluted, since you might sometimes have a previous "release" which still was released on the same day. Only validating on Rust releases solves that problem (unless for some reason we release the Rust version twice on the same day, like in a bug fix or something)
  2. I decided not to try to make this a pre-requistie for releasing. Right now this check runs on releases but does not prevent release when it fails. It would be possible to do that but it would require either moving this to the rust-build-test workflow or a re-design of that release workflow, and I think the effort would be better spent re-desiging the release workflow to match our current branch-based release process. So I'll hold off until we change our release process, if we do so.