Page MenuHomePhabricator

Scap sync-file fails with error about pause_after_testserver_sync
Closed, ResolvedPublic

Description

This prevents deployment. Error message is documented here:

1hnowlan@deploy1002:/srv/mediawiki-staging$ scap sync-file private/PrivateSettings.php "T308670 credentials to access the similar-users service"
2 ___ ____
3 ⎛ ⎛ ,----
4 \ //==--'
5 _//|,.·//==--' ____________________________
6 _OO≣=- ︶ ᴹw ⎞_§ ______ ___\ ___\ ,\__ \/ __ \
7 (∞)_, ) ( | ______/__ \/ /__ / /_/ / /_/ /
8 ¨--¨|| |- ( / ______\____/ \___/ \__^_/ .__/
9 ««_/ «_/ jgs/bd808 /_/
10
1110:51:54 Started cache_git_info
1210:51:55 Finished cache_git_info (duration: 00m 00s)
1310:51:55 Checking for new runtime errors locally
1410:51:56 Started sync-masters
15sync-masters: 100% (in-flight: 0; ok: 1; fail: 0; left: 0)
1610:52:04 Finished sync-masters (duration: 00m 07s)
1710:52:04 Started sync-pull-masters
18sync-pull-masters: 100% (in-flight: 0; ok: 1; fail: 0; left: 0)
1910:52:06 Finished sync-pull-masters (duration: 00m 01s)
2010:52:06 Syncing to testservers
21sync-testservers: 100% (in-flight: 0; ok: 4; fail: 0; left: 0)
2210:52:07 Per-host sync duration: average 1.5s, median 1.6s
2310:52:07 rsync transfer: average 11,360 bytes/host, total 45,440 bytes
2410:52:07 Unhandled error:
25Traceback (most recent call last):
26 File "/var/lib/scap/scap/lib/python3.7/site-packages/scap/cli.py", line 462, in run
27 exit_status = app.main(app.extra_arguments)
28 File "/var/lib/scap/scap/lib/python3.7/site-packages/scap/main.py", line 1071, in main
29 return super().main(*extra_args)
30 File "/var/lib/scap/scap/lib/python3.7/site-packages/scap/main.py", line 121, in main
31 if self.arguments.pause_after_testserver_sync:
32AttributeError: 'Namespace' object has no attribute 'pause_after_testserver_sync'
3310:52:07 sync-file failed: <AttributeError> 'Namespace' object has no attribute 'pause_after_testserver_sync'

Related Objects

Event Timeline

awight triaged this task as Unbreak Now! priority.Jun 15 2022, 1:31 PM

I was able to (unsafely) work around the issue by using the --force flag: scap sync-file --force ...

Change 805817 had a related patch set uploaded (by Jaime Nuche; author: Jaime Nuche):

[mediawiki/tools/scap@master] Revert "scap backport: deploy to mwdebug"

https://gerrit.wikimedia.org/r/805817

hi @awight Sorry about the issue. I'm going to revert the change

Change 805817 merged by jenkins-bot:

[mediawiki/tools/scap@master] Revert "scap backport: deploy to mwdebug"

https://gerrit.wikimedia.org/r/805817

Change 805763 had a related patch set uploaded (by Ahmon Dancy; author: Jeena Huneidi):

[mediawiki/tools/scap@master] scap backport: deploy to mwdebug (revised)

https://gerrit.wikimedia.org/r/805763

Change 805763 merged by jenkins-bot:

[mediawiki/tools/scap@master] scap backport: deploy to mwdebug (revised)

https://gerrit.wikimedia.org/r/805763

dancy claimed this task.