It is currently possible to set ci_builds.project_id and ci_builds.commit_id to NULL, what results in inconsistent data.
ci_builds.project_id
ci_builds.commit_id