wikipathways / wikipathways-development

Roadmap planning, developer documentation, contribution guidelines
2 stars 0 forks source link

metadata task is broken #78

Closed AlexanderPico closed 2 years ago

AlexanderPico commented 2 years ago

[echoed from Slack] The metadata task in our GitHub Actions is broken. The last time it ran successfully was 9 June and it hasn’t been attempted again (with an actual GPML change) until today. The step that is failing is git pull here and an example error is here.

I’ve tried alternative ways to set the git user.name and user.email, and alt ssh-agent action, and the v3 of actions/checkout. I’ve tried minor edits to 3 different pathways. None of these have worked.

larsgw commented 2 years ago

I seem to recall GitHub deprecating some form of non-SSH authentication but I can't find the source anymore. The metadata job does not have an ssh-agent at all at the moment, so that might be the problem.

egonw commented 2 years ago

The problem seems to be that the the cache step was removing the git metadata, making the pull/push not see any git info and therefore fail to push. Reordering the caching and the checking out of git seems to solve it. See Slack for more detail and my patches from last night.