Last modified: 2013-12-18 12:46:30 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 T47715, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45715 - l10n bot should probably not self merge
l10n bot should probably not self merge
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-04 18:56 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-12-18 12:46 UTC (History)
7 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2013-03-04 18:56:13 UTC
The change https://gerrit.wikimedia.org/r/#/c/51900/ is a faulty update of the mediawiki core message file for the AR language. All messages have been removed from the file.

Since the l10n-bot vote CR+2 / V+2 and then submit the patch, the unit tests are entirely bypassed.


Marius Hoch proposed to white list l10n-bot so tests are run on submission: 
https://gerrit.wikimedia.org/r/#/c/51972/ . I guess we should just run the gate and submit job instead.  The workflow would thus need to be updated to something like:

- l10n-bot send the patch
- jenkins run the check scripts (just linting, no unit tests)
- l10n-bot votes CR+2
- jenkins trigger the gate-and-submit job
- whenever the tests are successful, jenkins merge the change


That would let us catch regressions before landing changes in master.
Comment 1 Niklas Laxström 2013-03-04 18:59:28 UTC
FWIW l10n-bot is not part of Translate extension.

I'm okay with no self-merging as long as the tests do not fail for unrelated reasons too often and that this works for core and all extensions the same way -- not all extensions have unit tests.
Comment 2 Siebrand Mazeland 2013-03-04 19:01:57 UTC
(In reply to comment #0)
> The workflow would thus need to be updated to
> something like:
> 
> - l10n-bot send the patch
> - jenkins run the check scripts (just linting, no unit tests)
> - l10n-bot votes CR+2
> - jenkins trigger the gate-and-submit job
> - whenever the tests are successful, jenkins merge the change
> 
> 
> That would let us catch regressions before landing changes in master.

Would this process be *guaranteed* for each and every repo, is this proposal only for core, or something else?
Comment 3 Antoine "hashar" Musso (WMF) 2013-03-04 19:05:52 UTC
That is true lot of extensions are missing tests and an associated gate-and-submit job.   To play it safe, maybe only do that for core for now.
Comment 4 Siebrand Mazeland 2013-03-04 19:48:16 UTC
(In reply to comment #3)
> That is true lot of extensions are missing tests and an associated
> gate-and-submit job.   To play it safe, maybe only do that for core for now.

Can you please propose a change for this in our script, as that's what's currently being done after all patch sets for core and extensions have been submitted (repo: translatewiki, file: /bin/repocommit:

for i in `ssh l10n-bot@gerrit.wikimedia.org -p 29418 gerrit query --format=TEXT owner:l10n-bot status:open |grep "  url:" |cut -d/ -f5`
do
	echo "Merging ${i}..."
	ssh l10n-bot@gerrit.wikimedia.org -p 29418 gerrit review $i,1 --code-review 2 --verified 2 --submit
done

For clarity: "repocommit core" does not have a merge command, that's done in repocommit mediawiki-extensions. It may very well be possible to have the above command only select patch sets from extensions/ and have a similar set of commands for core/, but with different actions (I just don't know which to use in the SSH API).
Comment 5 Nemo 2013-12-03 21:16:12 UTC
Should this be considered WONTFIX'ed by now? (Looks so.)
Comment 6 Antoine "hashar" Musso (WMF) 2013-12-18 10:21:23 UTC
I filled that bug back in March 2013 following a conversation with i18n team.  I am not sure whether that is still needed/wanted though.
Comment 7 Siebrand Mazeland 2013-12-18 12:46:30 UTC
(In reply to comment #6)
> I filled that bug back in March 2013 following a conversation with i18n
> team. 
> I am not sure whether that is still needed/wanted though.

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


Navigation
Links