[09:40:03] (03PS1) 10Elukey: editquality: use json.dumps instead of urlencode for EventGate [machinelearning/liftwing/inference-services] - 10https://gerrit.wikimedia.org/r/813834 (https://phabricator.wikimedia.org/T301878) [10:52:13] (03CR) 10Elukey: [C: 03+2] editquality: use json.dumps instead of urlencode for EventGate [machinelearning/liftwing/inference-services] - 10https://gerrit.wikimedia.org/r/813834 (https://phabricator.wikimedia.org/T301878) (owner: 10Elukey) [12:28:37] Blergh, this heat is killing me [12:29:41] At least the humidity has dropped a bit (it's now at 30%RH, but this morning it was well over 50( [12:30:05] Or maybe it's just my TBE vaccine shot I got this morning :) [13:52:02] its killing my laptop too! i can't use google hangouts without an icepack for my lappy [13:55:35] I fortunately can place mine lika an A frame for extra ventilation [13:55:49] :( [13:56:55] ventilation is not enough anymore, my A frame must be made out of ice [13:56:58] Yeah, I heard .it has it even worse than we have it here. [13:57:37] ottomata: o/ [13:57:47] can I ask you a quick thing if you have a min? [13:59:59] yaaaa [14:00:06] actualy meeting startign! [14:00:08] leave q i answer later! [14:00:11] I am testing sending an event from liftwing to eventgate main, but it seems that I get an HTTP 500 in return [14:00:14] okok! [14:00:34] what' the error say? [14:00:48] I am checking https://logstash.wikimedia.org/app/dashboards#/view/AXN5OoJu3_NNwgAUlbUT?_g=h@c823129&_a=h@b0df7bf but it is difficult to grep [14:00:57] i also find logstash near impossible to use [14:01:09] I need to add more logging I am afraid, I see only the 500 [14:01:20] but the event should be well formed, in theory [14:13:07] ah interesting! [14:13:07] event e1809d3f-db47-493d-bd36-9c0575e63649 of schema at /mediawiki/revision/score/2.0.0 destined to stream unknown encountered an error: Field(s) meta.stream were missing from event and could not be extracted.","time":"2022-07-14T07:25:39.758Z","v":0} [14:13:55] Is that just a missing metadata field? [14:14:22] Morning all! [14:19:44] klausman: in theory yes, but it should have it (at least, all my tests showed it) [14:19:47] chrisalbon: o/ [14:23:39] Weird. I presume this is TLS? Otherwise you could wireshark the traffic and see what's actually going over the wire. [14:24:11] it is yes [14:24:24] in theory in kafka there should be the events that failed validation [14:24:35] I see the topics but can't find the events [14:34:51] okay meeting over [14:34:52] hello [14:34:59] hello [14:35:17] elukey: is the failed event body returned in the response? i can't remember but i think it is? [14:35:47] elukey: which k8s cluster are you producing to? staging? [14:36:14] ottomata: eventgate-main, the discovery endpoint, codfw in this case [14:37:59] elukey: ya i think only vaidation errors are produced to the error.validation topic [14:38:02] this is not a validation error [14:39:16] elukey: link to code producing event? [14:40:25] ottomata: this was the code change https://gerrit.wikimedia.org/r/c/machinelearning/liftwing/inference-services/+/808247/14/revscoring/editquality/model-server/model.py [14:40:43] (I changed it to send json directly instead of url-encoding a dict, but the rest is the same) [14:41:18] I tried to test this with a simple http python server "faking" eventgate locally, and tried to send the event via curl to eventgate, all worked [14:41:34] so I suspect that maybe the POST from lift wing to eventgate has some issue [14:46:42] the fact that your error message says 'of schema at /mediawiki/revision/score/2.0.0 ' is strange if that is the case [14:46:52] because clearly the $schema field could be extracted [14:46:58] which means the json parsed okay [14:47:34] interesting [14:47:35] ya i dunno that is weird [14:47:44] you are jsut posting to plain on /v1/events, rigth? [14:47:48] no query params or anythning [14:48:33] exactly yes [14:49:08] and I checked the pod's env variables, I see [14:49:08] EVENTGATE_URL: https://eventgate-main.discovery.wmnet:4492/v1/events [14:49:11] EVENTGATE_STREAM: mediawiki.revision-score-test [14:50:16] so in theory the meta.stream field should be populated [14:56:57] is this your event? [14:56:58] https://logstash.wikimedia.org/goto/0e8ff44c30d4c84a9156ce2fca5729f0 [14:57:05] maybe that is the one from when you produced with urlencode? [14:57:13] that has failure to extract $schema [14:57:19] but looks like is produced from some tornado UUA [14:57:21] UA [14:58:47] yeah the tornado UA makes sense (kserves uses its http client) [14:59:21] where did you find your cannot extract meta.stream error? [14:59:31] https://logstash.wikimedia.org/goto/8dcbb124cb5152ebfc1a39a7a1b33a8e [14:59:38] are the only logs here for eventgate main in the last few hours [15:00:54] kubectl logs eventgate-main-production-5f84bcfcbd-f5wwp -n eventgate-main eventgate-main [15:01:01] with kube_env codfw [15:01:41] ah interesting, it was from the 12th [15:01:48] I just realized it [15:01:54] ah, so that is not yours? [15:02:15] It should be, probably one of the early attempts [15:02:18] today I deployed https://gerrit.wikimedia.org/r/c/machinelearning/liftwing/inference-services/+/813834 [15:02:37] to avoid the urlencode [15:02:38] okay well good to know that this logstash dashboard is working at least! [15:02:47] you should be able maybe to debug better this way? [15:03:12] will try yes! Thanks for the help! [15:07:37] going afk folks, talk with you next week (tomorrow I am off) [15:38:36] Have a great weekend elukey! Thanks for everything this week [18:34:05] 10Machine-Learning-Team, 10ORES, 10Growth-Team, 10PageCuration: Detect hoaxes - https://phabricator.wikimedia.org/T312841 (10MusikAnimal) > there has also been some very recent progress in comparing Wikipedia statements with their supposed digital sources. Facebook recently built a research prototype for d...