CI will try to build every commit in the MR, not just the latest. You can't append commits til it passes, you need to force push.
I usually use `git rebase --interactive origin/master` to rebuild commit series, but beginners may find it less intimidating to `git reset origin/master` then recreate the commits from scratch.