Page MenuHomePhabricator

GrowthExperiments CI fails on master: mwgate-node16-docker
Closed, ResolvedPublic

Description

mwgate-node16-docker started to fail on GrowthExperiments's master branch with the following:

13:54:32 /src/i18n/mentorship/he.json
13:54:32   216:100  warning  Detected potential trojan source attack with unicode bidi introduced in this code: '"שינוי אפשרויות החונכות של $1‏: $2"'  security/detect-bidi-characters

The file was last changed with e0211b6f6 by the TWN bot. Since the TWN commit changes line 216, which is flagged by the failing check, I think the CI error was added in that commit, which passed CI, because it doesn't run the full set of jobs. Tagging Continuous-Integration-Config to help with finding a solution regarding the TWN commits (should we add mwgate-node16-docker there, which is a cheap job?) and translatewiki.net for awareness.

Event Timeline

Change 958466 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] Revert l10n update that breaks CI

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

This breaks merges to GrowthExperiments.

https://translatewiki.net/w/i.php?title=MediaWiki:Growthexperiments-manage-mentors-summary-change-admin-with-reason/he would probably need to be updated to remove whatever characters are considered "trojan source attack" by our CI (or deleted until that can be done). My patch uploaded above removes the offending entry from GrowthExperiments codebase.

CC @Amire80, who created the translation and who might know what's happening here :).

Change 958466 abandoned by Urbanecm:

[mediawiki/extensions/GrowthExperiments@master] Revert l10n update that breaks CI

Reason:

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

Change 958466 restored by Urbanecm:

[mediawiki/extensions/GrowthExperiments@master] Revert l10n update that breaks CI

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

That message has an invisible RLM character, and it should have it. I remember discussing it in some other task, but I am failing to find it; perhaps it is hidden for security reasons. But basically, our security experts said that it's OK to have RLM and other bidi control characters in messages, and that it shouldn't fail CI. If anyone disagrees with that, I can think of other ways to resolve the bidi issues, but using this control characters is a simple and efficient solution.

Change 958589 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] build: Update eslint-config-wikimedia to 0.25.1

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

That message has an invisible RLM character, and it should have it. I remember discussing it in some other task, but I am failing to find it; perhaps it is hidden for security reasons.

Thanks for pointing out this was already discussed elsewhere. I found T338610: CheckUser: Detected potential trojan source attack with unicode bidi introduced in this code, which seems to be a recent issue in CheckUser for the same thing.

But basically, our security experts said that it's OK to have RLM and other bidi control characters in messages, and that it shouldn't fail CI. If anyone disagrees with that, I can think of other ways to resolve the bidi issues, but using this control characters is a simple and efficient solution.

No need to, this is fine. Thanks for pointing me towards the other ticket -- searching for "RLM character" did the trick :). Uploaded an actual fix!

Change 958466 abandoned by Urbanecm:

[mediawiki/extensions/GrowthExperiments@master] Revert l10n update that breaks CI

Reason:

in favour of https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/958589

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

Change 958589 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] build: Update eslint-config-wikimedia to 0.25.1

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

Urbanecm_WMF claimed this task.

CI works now, closing.

Change 959014 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@wmf/1.41.0-wmf.27] build: Update eslint-config-wikimedia to 0.25.1

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

Change 959014 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.41.0-wmf.27] build: Update eslint-config-wikimedia to 0.25.1

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

Mentioned in SAL (#wikimedia-operations) [2023-09-20T13:21:48Z] <urbanecm@deploy2002> Started scap: Backport for [[gerrit:959014|build: Update eslint-config-wikimedia to 0.25.1 (T346629)]], [[gerrit:959007|Change CSS selector for Minerva mobile menu icon (T346459)]]

Mentioned in SAL (#wikimedia-operations) [2023-09-20T13:42:17Z] <urbanecm@deploy2002> urbanecm and jdlrobson: Backport for [[gerrit:959014|build: Update eslint-config-wikimedia to 0.25.1 (T346629)]], [[gerrit:959007|Change CSS selector for Minerva mobile menu icon (T346459)]] synced to the testservers mwdebug1002.eqiad.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Mentioned in SAL (#wikimedia-operations) [2023-09-20T13:56:12Z] <urbanecm@deploy2002> Finished scap: Backport for [[gerrit:959014|build: Update eslint-config-wikimedia to 0.25.1 (T346629)]], [[gerrit:959007|Change CSS selector for Minerva mobile menu icon (T346459)]] (duration: 34m 21s)