Page MenuHomePhabricator

EventLogging schemas are not served properly on beta cluster
Closed, ResolvedPublic

Description

The Sentry installation on beta logs EL warnings and it reports a bunch of [XXX] Missing or empty schema errors recently (for the Edit or ContentTranslationCTA schemas for example). I can reproduce manually; the problem seems to be that the schema definition served by ResourceLoader is empty. E.g.

mediaWiki.eventLog.declareSchema("ImageMetricsCorsSupport",{"schema":{},"revision":11686678});mw.loader.state( {
    "schema.ImageMetricsCorsSupport": "ready"
} );

The same request is served like this on the production cluster:

mediaWiki.eventLog.declareSchema("ImageMetricsCorsSupport",{"schema":{"title":"ImageMetricsCorsSupport","properties":{"xhrSupported":{"type":"boolean","required":true},"xdomainSupported":{"type":"boolean","required":true},"imgAttributeSupported":{"type":"boolean","required":true},"scriptAttributeSupported":{"type":"boolean","required":true},"scriptLoaded":{"type":"boolean","required":true},"sanityCheck":{"type":"boolean","required":true},"country":{"type":"string"},"isHttps":{"type":"boolean","required":true},"isAnon":{"type":"boolean","required":true},"samplingFactor":{"type":"integer","required":true}}},"revision":11686678});mw.loader.state( {
    "schema.ImageMetricsCorsSupport": "ready"
} );

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr subscribed.

@Tgr: Could you please associate at least one project with this task so it shows up in search results? Sentry ? MediaWiki-extensions-EventLogging ? MediaWiki-ResourceLoader ? Thanks!

Tgr claimed this task.

Seems fixed, presumably due to work done in T97033.