Last modified: 2014-10-10 13:14:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48500, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46500 - split phpcs in voting and non-voting sniffs
split phpcs in voting and non-voting sniffs
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 48420
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-24 01:23 UTC by db [inactive,noenotif]
Modified: 2014-10-10 13:14 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description db [inactive,noenotif] 2013-03-24 01:23:46 UTC
It makes no sense, when there is phpcs checking and the result is non-voting. Nobody is looking at that output. You can disable it and save the resources.

Some already fixed sniffs are reintroduced into core, due to nobody looking at the sniff output.

Please spilt the phpcs in a voting step and a non-voting step. When a sniff pass all files in core, than moving it from non-voting to voting to avoid that it came back.

It is a hard job and will take some time to fix all sniffs or to configurate it that all will pass, so do it step by step and make the already fixed things voting to avoid merging of that.

Thanks.
Comment 1 Antoine "hashar" Musso (WMF) 2013-06-17 14:35:53 UTC
We could pass '-n' to phpcs, that will ignore any warning. Then fix all remaining errors and enforce their resolution by making that job a blocker.
Comment 2 Gerrit Notification Bot 2013-08-27 07:58:06 UTC
Change 81183 had a related patch set (by Hashar) published:
new phpcs jobs for mediawiki/core

https://gerrit.wikimedia.org/r/81183
Comment 3 Gerrit Notification Bot 2013-08-27 07:58:44 UTC
Change 81183 merged by jenkins-bot:
new phpcs jobs for mediawiki/core

https://gerrit.wikimedia.org/r/81183
Comment 4 Antoine "hashar" Musso (WMF) 2013-08-27 08:18:49 UTC
I have deployed two phpcs jobs for mediawiki/core

https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-lenient-HEAD/
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-strict-HEAD/

From there we will want to tweak our code sniffer standard and/or fix mediawiki core style issues.  Then we can make the job voting.
Comment 5 Antoine "hashar" Musso (WMF) 2013-11-29 19:19:56 UTC
Not that much of a high priority, still have to clear out the Jenkins jobs and adapt related Zuul triggers.
Comment 6 Gerrit Notification Bot 2014-08-12 10:23:04 UTC
Change 153575 had a related patch set uploaded by Addshore:
make mw-core-phpcs-lenient-HEAD voting!

https://gerrit.wikimedia.org/r/153575
Comment 7 Krinkle 2014-09-26 19:56:27 UTC
As part of simplification effort for phpcs, I'm closing this.

The sniffer config should contain the errors and warnings we want to enforce. The rest is irrelevant. We have a fixed coding style. It changes, but it doesn't have multiple states at once. This is over-complication for no good reason.
Comment 8 Gerrit Notification Bot 2014-10-10 13:14:16 UTC
Change 153575 abandoned by Hashar:
make mw-core-phpcs-lenient-HEAD voting on master!

Reason:
The continuous integration configuration files are now held in integration/config.git with Zuul layout files being under /zuul/layout.yaml

If there still is an interest in this patch, please port it to the new repository integration/config.git

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links