Page MenuHomePhabricator

CX events EventGate validation errors: translation id, source section, target section values should be string
Closed, ResolvedPublicBUG REPORT

Description

Issue (include links if applicable):

Logstash dashboard shows a high amount of EventGate validation errors for CX events: https://logstash.wikimedia.org/goto/2234659c7b149ebfc3c1d4695568e602

The error is '.translation_id' should be integer, '.translation_source_section' should be string, '.translation_target_section' should be string

Almost 27K events were affected by this error during the last 90 days.

What should have happened instead?:

There can be two scenarios why this might be happening (both should be checked for)

  • Events for which these events are not relevant, for example, tab selection, and explicitly being set to null. For events which fields which are not relevant, they should not be set to null. Missing fields will be set to null during ingestion. Please see: Event_Platform/Schemas/Guidelines#Optional_/_Missing_fields
  • Events for which these fields are applicable, but are null for some reason. For example, there are several dashboard_translation_continue events which have this errors as well. If someone is continuing a translation, I would expect those events to have a translation_id at least.

Also note: the spike in errors seems to have started during mid March, coinciding with the unified CX dashboard release to desktop.

QA Results - Log Stash

ACStatusDetails
1T395415#10942742

Event Timeline

KCVelaga_WMF updated the task description. (Show Details)

Change #1151764 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX: Fix instrumentation for "dashboard_translation_continue" event

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

Change #1151764 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Fix instrumentation for "dashboard_translation_continue" event

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

Change #1152798 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

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

Change #1152798 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

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

Change #1155236 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX: Fix instrumentation for "dashboard_translation_discard" event

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

Change #1155236 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Fix instrumentation for "dashboard_translation_discard" event

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

SBisson subscribed.

First patch will be deployed with the train this week but second patch will need to be included in the CX build next Monday and ride the train that week.

Change #1159555 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250616

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

Change #1159555 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250616

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

Change #1160123 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@wmf/1.45.0-wmf.6] CX3 Build 1.0.0+20250616

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

Change #1160123 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.45.0-wmf.6] CX3 Build 1.0.0+20250616

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

Mentioned in SAL (#wikimedia-operations) [2025-06-17T14:24:43Z] <sbisson@deploy1003> sbisson: Backport for [[gerrit:1160123|CX3 Build 1.0.0+20250616 (T374695 T395415 T396628 T396711 T396716 T396836)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-06-17T14:33:53Z] <sbisson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1160123|CX3 Build 1.0.0+20250616 (T374695 T395415 T396628 T396711 T396716 T396836)]] (duration: 11m 21s)