We should be able to use Quibble to clone the repositories / vendor.git and run composer:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Apr 12 2019
I am back on this and the usage has been extended to the phan jobs unfortunately.
Apr 11 2019
I think this one is too old, I don't remember having that issue with the Docker packages. Moreover we have dropped tidy in favor of remexhtml so there is not much point in keeping a bug for libtidy.
I think that is good enough for now. We can add more --git-parallel later on.
REL1_27 and the outdated composer-merge-plugin are gone.
In T40863#5104161, @Ladsgroup wrote:I guess we can just undeploy this extension in favor of Url Shortener
Seems it is working fine, will make it the default in a future Quibble version.
My code logic was wrong. The intent is to ignore error when trying to submit a patch that is already merged by returning early. But my patch had 'submit' not in action which does the opposite.
The patch has some issues though:
2019-04-11 00:55:50,226 DEBUG zuul.reporter.gerrit.Reporter: Report change <Change 0x7f2e586e6390 502894,5>, params {'verified': -1}, message: Gate pipeline build failed.
Apr 10 2019
A fast way to delete all Zuul references:
So I think we can just prune all references from time to time:
rm .git/packed_refs find .git/refs/ -mindepth 1 -delete git fetch git pack-refs
I could not reproduce on my local machine given a basic test script which creates several heads:
import git import logging
Down to just 10 seconds after running git remote prune origin.
2019-04-10 14:12:33,095 DEBUG zuul.Repo: Resetting repository /srv/zuul/git/mediawiki/core 2019-04-10 14:12:33,096 DEBUG zuul.Repo: Updating repository /srv/zuul/git/mediawiki/core 2019-04-10 14:12:43,281 DEBUG zuul.Repo: Checking out 37e13f0c6eb3f8bccc49a646de477c2c7bb0d0c7
Seems like zuul-merger does not prune stall references:
zuul@contint2001:/srv/zuul/git/mediawiki/core$ git remote prune -n origin Pruning origin URL: ssh://jenkins-bot@gerrit.wikimedia.org:29418/mediawiki/core * [would prune] origin/REL1_1 * [would prune] origin/REL1_10 * [would prune] origin/REL1_11 * [would prune] origin/REL1_12 * [would prune] origin/REL1_13 * [would prune] origin/REL1_14 * [would prune] origin/REL1_15 * [would prune] origin/REL1_16 * [would prune] origin/REL1_17 * [would prune] origin/REL1_18 * [would prune] origin/REL1_19 * [would prune] origin/REL1_2 * [would prune] origin/REL1_20 * [would prune] origin/REL1_21 * [would prune] origin/REL1_22 * [would prune] origin/REL1_24 * [would prune] origin/REL1_3 * [would prune] origin/REL1_4 * [would prune] origin/REL1_5 * [would prune] origin/REL1_6 * [would prune] origin/REL1_7 * [would prune] origin/REL1_8 * [would prune] origin/REL1_9 * [would prune] origin/fundraising/REL1_22 * [would prune] origin/fundraising/REL1_23 * [would prune] origin/fundraising/REL1_25 * [would prune] origin/fundraising/REL1_26 * [would prune] origin/sandbox/jdlrobson/design * [would prune] origin/sandbox/twentyafterfour/group0 * [would prune] origin/wmf/1.29.0-wmf.1 * [would prune] origin/wmf/1.29.0-wmf.10 * [would prune] origin/wmf/1.29.0-wmf.11 * [would prune] origin/wmf/1.29.0-wmf.12 * [would prune] origin/wmf/1.29.0-wmf.13 * [would prune] origin/wmf/1.29.0-wmf.14 * [would prune] origin/wmf/1.29.0-wmf.15 * [would prune] origin/wmf/1.29.0-wmf.16 * [would prune] origin/wmf/1.29.0-wmf.17 * [would prune] origin/wmf/1.29.0-wmf.18 * [would prune] origin/wmf/1.29.0-wmf.19 * [would prune] origin/wmf/1.29.0-wmf.2 * [would prune] origin/wmf/1.29.0-wmf.20 * [would prune] origin/wmf/1.29.0-wmf.21 * [would prune] origin/wmf/1.29.0-wmf.3 * [would prune] origin/wmf/1.29.0-wmf.4 * [would prune] origin/wmf/1.29.0-wmf.5 * [would prune] origin/wmf/1.29.0-wmf.6 * [would prune] origin/wmf/1.29.0-wmf.7 * [would prune] origin/wmf/1.29.0-wmf.8 * [would prune] origin/wmf/1.29.0-wmf.9 * [would prune] origin/wmf/1.30.0-wmf.1 * [would prune] origin/wmf/1.30.0-wmf.10 * [would prune] origin/wmf/1.30.0-wmf.11 * [would prune] origin/wmf/1.30.0-wmf.12 * [would prune] origin/wmf/1.30.0-wmf.13 * [would prune] origin/wmf/1.30.0-wmf.14 * [would prune] origin/wmf/1.30.0-wmf.15 * [would prune] origin/wmf/1.30.0-wmf.16 * [would prune] origin/wmf/1.30.0-wmf.17 * [would prune] origin/wmf/1.30.0-wmf.18 * [would prune] origin/wmf/1.30.0-wmf.19 * [would prune] origin/wmf/1.30.0-wmf.2 * [would prune] origin/wmf/1.30.0-wmf.3 * [would prune] origin/wmf/1.30.0-wmf.4 * [would prune] origin/wmf/1.30.0-wmf.5 * [would prune] origin/wmf/1.30.0-wmf.6 * [would prune] origin/wmf/1.30.0-wmf.7 * [would prune] origin/wmf/1.30.0-wmf.9 * [would prune] origin/wmf/1.31.0-wmf.1 * [would prune] origin/wmf/1.31.0-wmf.10 * [would prune] origin/wmf/1.31.0-wmf.11 * [would prune] origin/wmf/1.31.0-wmf.12 * [would prune] origin/wmf/1.31.0-wmf.15 * [would prune] origin/wmf/1.31.0-wmf.16 * [would prune] origin/wmf/1.31.0-wmf.17 * [would prune] origin/wmf/1.31.0-wmf.2 * [would prune] origin/wmf/1.31.0-wmf.20 * [would prune] origin/wmf/1.31.0-wmf.21 * [would prune] origin/wmf/1.31.0-wmf.22 * [would prune] origin/wmf/1.31.0-wmf.23 * [would prune] origin/wmf/1.31.0-wmf.24 * [would prune] origin/wmf/1.31.0-wmf.25 * [would prune] origin/wmf/1.31.0-wmf.26 * [would prune] origin/wmf/1.31.0-wmf.27 * [would prune] origin/wmf/1.31.0-wmf.28 * [would prune] origin/wmf/1.31.0-wmf.29 * [would prune] origin/wmf/1.31.0-wmf.3 * [would prune] origin/wmf/1.31.0-wmf.30 * [would prune] origin/wmf/1.31.0-wmf.4 * [would prune] origin/wmf/1.31.0-wmf.5 * [would prune] origin/wmf/1.31.0-wmf.6 * [would prune] origin/wmf/1.31.0-wmf.7 * [would prune] origin/wmf/1.31.0-wmf.8 * [would prune] origin/wmf/1.32.0-wmf.1 * [would prune] origin/wmf/1.32.0-wmf.10 * [would prune] origin/wmf/1.32.0-wmf.12 * [would prune] origin/wmf/1.32.0-wmf.13 * [would prune] origin/wmf/1.32.0-wmf.14 * [would prune] origin/wmf/1.32.0-wmf.15 * [would prune] origin/wmf/1.32.0-wmf.16 * [would prune] origin/wmf/1.32.0-wmf.18 * [would prune] origin/wmf/1.32.0-wmf.19 * [would prune] origin/wmf/1.32.0-wmf.2 * [would prune] origin/wmf/1.32.0-wmf.20 * [would prune] origin/wmf/1.32.0-wmf.22 * [would prune] origin/wmf/1.32.0-wmf.23 * [would prune] origin/wmf/1.32.0-wmf.24 * [would prune] origin/wmf/1.32.0-wmf.26 * [would prune] origin/wmf/1.32.0-wmf.3 * [would prune] origin/wmf/1.32.0-wmf.4 * [would prune] origin/wmf/1.32.0-wmf.5 * [would prune] origin/wmf/1.32.0-wmf.6 * [would prune] origin/wmf/1.32.0-wmf.7 * [would prune] origin/wmf/1.32.0-wmf.8 * [would prune] origin/wmf/1.32.0-wmf.999 * [would prune] origin/wmf/1.33-wmf.8 * [would prune] origin/wmf/1.33.0-wmf.1 * [would prune] origin/wmf/1.33.0-wmf.12 * [would prune] origin/wmf/1.33.0-wmf.13 * [would prune] origin/wmf/1.33.0-wmf.14 * [would prune] origin/wmf/1.33.0-wmf.16 * [would prune] origin/wmf/1.33.0-wmf.2 * [would prune] origin/wmf/1.33.0-wmf.3 * [would prune] origin/wmf/1.33.0-wmf.4 * [would prune] origin/wmf/1.33.0-wmf.6 * [would prune] origin/wmf/1.33.0-wmf.8 * [would prune] origin/wmf/1.33.0-wmf.9 * [would prune] origin/wmf/php-1.32.0-wmf.15 * [would prune] origin/wmf/testing
Another slowness in zuul-merger is T220606: zuul-merger takes a while to recreate repository branches
Something somehow got enhanced and it is way faster nowadays. Either due to gallium disk that was slow, network, better Gerrit, optimizations of git or whatever.
$ git ls-remote .|grep -c refs/zuul 95826
Travis does that using folding markers. Eg:
travis_fold:start:Some step // some stuff there travis_fold:end:Some step
I am also wondering whether we should have Quibble to output predetermined markers which would make the plugin config easier/simpler for a lot of use cases. I have filled T220586 to investigate :]
Apr 9 2019
Note that CreditsSource is used on Wikivoyage wikis:
'wmgUseCreditsSource' => [ 'default' => false, 'wikivoyage' => true, ],
The extensions being hidden/skipped is due to https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/461280/ install.php: Allow extensions and skins to be specified which is in MW-1.32-release.
The php package should be https://packages.debian.org/source/stretch/php7.0 , with the git repository supposedly on gitlab:
Quibble indeed uses php -S which saved me to have to deal with a frontend web server and have to configure it. Anyway, since the webserver is the PHP CLI it eventually loads /etc/php/7.0/cli/php.ini
Indeed, sounds better to have some test written for DatabaseDomain :)
We could do something similar with Gerrit. Roughly:
@EddieGP I wanted to remove the check pipeline, notably because most of those jobs were legacy anyway and have since been replaced by better alternative. An example is untrusted developers being able to run the linters/style checker via composer test and/or npm test.
In T208988#5034498, @Tgr wrote:Same issue in https://integration.wikimedia.org/ci/job/wmf-quibble-core-vendor-mysql-hhvm-docker/10779/console (for 497357):
16:24:01 ResourceLoaderFileModule::readStyleFile: style file not found: "/workspace/src/extensions/VisualEditor/lib/ve/lib/color-picker/color-picker.css" ... 16:24:01 Message 'visualeditor-diff-no-changes' required by 'ext.visualEditor.mwsave' must existSeems like either a bug in quibble's submodule initialization logic, or git clone flakiness.
Apr 8 2019
The job no more exists since roughly Feb 19th 2019.
Seems good now.
I have upgraded Zuul to 2.5.1-wmf.6 (T208426). This is now pending verification which I guess can be done by looking at the Zuul error.log.
I have upgraded Zuul to 2.5.1-wmf6 (T208426).
I have upgraded Zuul to 2.5.1-wmf6 (T208426):
contint1001:~$ zuul --version Zuul version: 2.5.1-wmf6
I have upgraded Zuul to 2.5.1-wmf6 (T208426). It now queries changes with change:%s instead of just %s and thus we would no more have a collision of the request change number with some random patchset from a different repo/change.
I have upgraded Zuul to 2.5.1-wmf6 (T208426):
contint1001:~$ dpkg -L zuul|grep GitPython /usr/share/python/zuul/lib/python2.7/site-packages/GitPython-2.1.11.dist-info
I have just rebuild the image. Should be good now :]
There is no such digest on the build host:
contint1001:~$ sudo docker image ls --all --no-trunc|grep 769123a16e79cf3be7d995570273a3765a87370b50fe3ff9440e4a9f3e4fcbb9 contint1001:~$
Indeed the image docker-registry.wikimedia.org/releng/quibble-stretch-php73:0.0.31-1 has not been downloaded on any of the CI slaves and I have the same issue when pulling it locally. Its latest changelog is:
quibble-stretch-php73 (0.0.31-1) wikimedia; urgency=medium
From another comment I made:
And https://gerrit.wikimedia.org/r/501794 changes phan invocation to no more enforce the progress bar.
We looked at vipscaler a few years ago but we are no more interested in it as far as I can tell.
We looked at vipscaler a few years ago but we are no more interested in it as far as I can tell.
We looked at vipscaler a few years ago but we are no more interested in it as far as I can tell.
Apr 5 2019
Or it is because the cache were being flushed and its a redhearing
And for the record Gerrit had a thread for Zuul doing:
Solved by restarting Gerrit due to an issue which I think is already tracked somewhere else.
Then looking in the Zuul error.log:
2019-04-05 21:38:34,742 ERROR zuul.GerritEventConnector: Exception moving Gerrit event: Traceback (most recent call last): File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/connection/gerrit.py", line 128, in run self._handleEvent() File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/connection/gerrit.py", line 116, in _handleEvent event.change_number, event.patch_number, refresh=True) File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/source/gerrit.py", line 173, in _getChange self._updateChange(change, history) File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/source/gerrit.py", line 238, in _updateChange data = self.connection.query(change.number) File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/connection/gerrit.py", line 291, in query out, err = self._ssh(cmd) File "/usr/share/python/zuul/local/lib/python2.7/site-packages/zuul/connection/gerrit.py", line 387, in _ssh raise Exception("Gerrit error executing %s" % command) Exception: Gerrit error executing gerrit query --format json --all-approvals --comments --commit-message --current-patch-set --dependencies --files --patch-sets --submit-records 501765
[2019-04-05 17:28:48,600 +0000] 2765248a jenkins-bot a/75 LOGIN FROM 2620:0:861:1:208:80:154:17
So Zuul has two connection established:
contint1001$ sudo netstat -tp|grep gerrit tcp6 0 0 contint1001.wikim:53720 gerrit.wikimedia.:29418 ESTABLISHED 24045/python tcp6 0 0 contint1001.wikim:53670 gerrit.wikimedia.:29418 ESTABLISHED 24045/python
'gerrit show-connections' Session User Remote Host -------------------------------------------------------------- 2765248a jenkins-bot contint1001.wikimedi a746f4a4 jenkins-bot contint1001.wikimedi
Yes it should be archived (and not deleted since we would lost changes and reviews made to it).
Sorry I have a long backlog. Yes the wmf-quibble jobs are really just meant for the wmf branches.