Steady Progress: Automating Releases and Database Migrations

After getting the first Forgejo workflow to successfully compile LibrePlan, I immediately moved on to the next challenge: automatically generating a draft version of NEWS.rst during the build process.

If you’ve ever worked on release automation, you’ll know perfection rarely arrives on the first try. Last time, the workflow needed about 30 commits before everything ran smoothly. This time, it took even more—46 commits—to get the NEWS generator stable, correct, and fully reproducible. But the effort was worth it: our release notes now assemble themselves automatically.

$ git log --all --oneline generate-news-file.yml | wc
46 160 1180

With that complete, I tackled a more ambitious job: creating a database migration workflow for PostgreSQL. To my own surprise, this one went much faster. Only 11 commits were needed before the migration process worked end-to-end. It still needs some polishing here and there, but the core functionality is already solid.

$ git log --all --oneline generate-db-upgrade-script-psql.yml | wc
11 49 349

And now that this PostgreSQL workflow is in place, I can use it as a foundation for the next step.

As always, all progress is openly available in the repository:
https://github.com/LibrePlan/libreplan

This entry was posted in News. Bookmark the permalink.