Skip to content

14.9 Migration ResetDuplicateCiRunnersTokenValuesOnProjects does not mark itself as complete

Problem

Migration ResetDuplicateCiRunnersTokenValuesOnProjects does not mark itself as complete.

The job permanently remains in pending state after the upgrade. Discovered with a customer upgrading to 14.9 ee version.

Cause

Class method has incorrect 'Class name' in this line

Class name: ResetDuplicateCiRunnersTokenValuesOnProjects
Class method tries to mark the job as succeeded on class name ResetDuplicateCiRunnerValuesTokensOnProjects (Typo TokenValues vs ValuesTokens)

Steps to reproduce

  1. Install 14.1 EE omnibus
  2. Add a runner
  3. Upgrade to 14.9.1
  4. Check pending background migrations count: https://docs.gitlab.com/ee/update/#checking-for-background-migrations-before-upgrading
  5. Expectation: Count is non-zero
  6. Observation: Count is 1+
Edited by Harsh Chouraria