Page MenuHomePhabricator

editgrowthconfig schema: '' should NOT have additional properties,
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
'' should NOT have additional properties, '' should NOT have additional properties
raw_event
{"meta":{"domain":"nn.wikipedia.org","stream":"mediawiki.editgrowthconfig","id":"<redacted>","dt":"2022-07-29T18:12:04.273Z","request_id":"55ad0103-7ce9-4843-bc0f-1bddfa13f2e0"},"http":{"request_headers":{"user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"}},"$schema":"/analytics/mediawiki/editgrowthconfig/1.0.0","database":"nnwiki","action":"view","is_privileged_user":false,"dt":"2022-07-29T18:12:04Z"}
Impact

~250 in last 12 hrs - https://logstash.wikimedia.org/goto/ab63971a6eb48b6ab6d8baa5f77f02f0

introduced 7/21/22 with a few errors, jumped on 7/27/22 - https://logstash.wikimedia.org/goto/7cd6ca6c82fc247c8dcf611ba1524f30

~1444 total since 7/21/22

Notes

meta.stream: eventgate-analytics-external.error.validation
type: eventgate_validation_error
errored_stream_name: mediawiki.editgrowthconfig

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr added subscribers: Urbanecm_WMF, Tgr.

Whoops, looks like our eventlogging error dashboard was missing the mediawiki.editgrowthconfig stream. Now fixed.

@Urbanecm_WMF do you have any guess what might be going on? The error message isn't super helpful.

Urbanecm_WMF triaged this task as High priority.

Whoops, looks like our eventlogging error dashboard was missing the mediawiki.editgrowthconfig stream. Now fixed.

Didn't know that needs to be done when adding a stream. Will remember it for the next time.

@Urbanecm_WMF do you have any guess what might be going on? The error message isn't super helpful.

I probably did some mistake when working on T312148: Add instrumentation to Special:EditGrowthConfig. I'll have a look!

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

[schemas/event/secondary@master] analytics/mediawiki/editgrowthconfig: Ref analytics/common

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

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

[mediawiki/extensions/GrowthExperiments@master] SpecialEditGrowthConfigLogger: Update schema version

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

@Urbanecm_WMF do you have any guess what might be going on? The error message isn't super helpful.

I probably did some mistake when working on T312148: Add instrumentation to Special:EditGrowthConfig. I'll have a look!

Indeed, I made an interesting mistake. I didn't add $ref: /fragment/analytics/common/2.0.0 to the schema (probably thinking that $ref: /fragment/mediawiki/common/2.0.0 will include analytics/common for me). That resulted in the 1.0.0 schema not having the top-level http field (compare with a different, valid, schema). EventStreams added the http field regardless (as it expects the schema to know about it), which resulted in validation errors.

Patches uploaded. Sorry for the inconvenience!

Change 820227 merged by jenkins-bot:

[schemas/event/secondary@master] analytics/mediawiki/editgrowthconfig: Ref analytics/common

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

Change 820228 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] SpecialEditGrowthConfigLogger: Update schema version

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.39.0-wmf.23] SpecialEditGrowthConfigLogger: Update schema version

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

Change 820276 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.39.0-wmf.23] SpecialEditGrowthConfigLogger: Update schema version

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

Mentioned in SAL (#wikimedia-operations) [2022-08-04T09:38:50Z] <urbanecm@deploy1002> Synchronized php-1.39.0-wmf.23/extensions/GrowthExperiments/includes/EventLogging/SpecialEditGrowthConfigLogger.php: rEGREba67dd940217: SpecialEditGrowthConfigLogger: Update schema version (T314173, T312148) (duration: 03m 18s)

The errors seem to stop - https://logstash.wikimedia.org/goto/6e75427fdc39f0ae9c241418bc7de928. Last timestamp - Aug 4, 2022 @ 19:39:16.373; will check in a couple of days before closing the ticket.


Checked on[[https://logstash.wikimedia.org/goto/6aece5a27ea8924290445fcbf56c8eea | Aug 08/2022]] - the error was not registered since Aug 4, 2022 @ 19:39:16.373.

Screen Shot 2022-08-08 at 6.44.48 PM.png (336×2 px, 59 KB)