carpentries / feeds.carpentries.org

A repo to generate dynamic JSON data feeds for The Carpentries
https://feeds.carpentries.org
MIT License
3 stars 2 forks source link

New env var EXIT_STATUS to signal content failure #62

Closed zkamvar closed 2 years ago

zkamvar commented 2 years ago

This implements a new environment variable EXIT_STATUS, which will signal a failure if the content of one of the feeds is malformed, but still viable. This is implemented to prevent missing information in the community lessons feed from causing errors building our entire feeds structure.

If there are errors in community lessons, we will modify the EXIT_STATUS environment variable to be 1 so that healthchecks pings an error, even though the build itself will succeed. This means that we are alerted when things need to be fixed, but we have some grace as to how they can be fixed.

This will fix #61

zkamvar commented 2 years ago

This is the perfect test case for the new build failure that's happening.

zkamvar commented 2 years ago

Update: I hate everything