iver-wharf / wharf-api

Wharf backend written in Go
MIT License
1 stars 0 forks source link

Start up migrations fail #160

Closed applejag closed 2 years ago

applejag commented 2 years ago

The migrations fails. This was not the case in v5.0.0, but is now in v5.1.0. This applies both to fresh installs and installs upgraded from v4.2.0 or v5.1.0.

The obvious culprit is our change of migration tech stack: #144 Full diff on migrations.go: https://github.com/iver-wharf/wharf-api/compare/v5.0.0...v5.1.0#diff-7807f0304222cb1bf359da44be1f2d3ce9beeea04d8c499192a46da74c3af820

ERROR: insert or update on table "build" violates foreign key constraint "fk_artifact_build" (SQLSTATE 23503)

Full log:

wharf-api.log

This was found in a test run, but can now also be found in our latest wharf-helm PR: https://github.com/iver-wharf/wharf-helm/runs/5424139410?check_suite_focus=true