Page MenuHomePhabricator

scap backport check prevents using it to fix an about-to-be-live branch
Open, Needs TriagePublic

Description

Scenario: After rolling an new train branch 1.40.0-wmf.1 to testwikis, errors were seen that resulted in rollback to 1.39.0-wmf.28. A fix was eventually prepared for 1.40.0-wmf.1 and I tried to use scap backport to merge, pull, and (effectively no-op) deploy it.

dancy@deploy1002:~$ scap backport https://gerrit.wikimedia.org/r/c/mediawiki/core/+/831985
18:09:32 Checking whether changes are in a branch and version deployed to production...
18:09:32 Change '831985' branch '1.40.0-wmf.1' not valid for any deployed wikiversion. Deployed wikiversions: ['1.39.0-wmf.28']

We need a way to allow this to proceed anyway (if the branch has already been checked out).

or the error message should provide advice on what to do in this situation, which is:

  • +2 the change in the Gerrit UI and wait for it to merge
  • Run scap deploy-promote testwikis <new-version> on the deploy server.

Event Timeline

what about having it do everything except sync if it's not deployed anywhere?

what about having it do everything except sync if it's not deployed anywhere?

Yeah, that sounds good (after some interactive prompt asking the operator if that is what they want).

thcipriani renamed this task from scap backport sanity check prevents using it to fix an about-to-be-live branch to scap backport check prevents using it to fix an about-to-be-live branch.Jun 9 2023, 9:11 PM

Just tested this and as it works currently, It will continue to merge and deploy as directed by the user, but will fail with an error if the branch is not staged.

Just tested this and as it works currently, It will continue to merge and deploy as directed by the user, but will fail with an error if the branch is not staged.

oh, so this one is done?

No, I think it should skip the sync step instead of fail if the branch is not staged.