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:
I decided to only validate on Rust releases. This has a few benefits:
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
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)
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.
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:
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.