Monday, 2021-01-11

*** jamesmcarthur has joined #zuul00:18
*** jamesmcarthur has quit IRC00:32
*** jamesmcarthur has joined #zuul00:34
*** jamesmcarthur has quit IRC00:44
*** jamesmcarthur has joined #zuul00:51
*** jamesmcarthur has quit IRC01:01
*** jamesmcarthur has joined #zuul01:02
*** holser has quit IRC01:03
*** jamesmcarthur has quit IRC01:04
*** jamesmcarthur has joined #zuul01:04
*** jamesmcarthur has quit IRC01:11
*** jamesmcarthur has joined #zuul01:13
*** jamesmcarthur has quit IRC01:16
*** jamesmcarthur has joined #zuul01:18
*** jamesmcarthur has quit IRC01:20
*** jamesmcarthur has joined #zuul01:30
*** jamesmcarthur has quit IRC01:33
*** ikhan has quit IRC01:37
*** jamesmcarthur has joined #zuul01:53
*** jamesmcarthur has quit IRC02:00
*** iurygregory has joined #zuul02:07
*** jamesmcarthur has joined #zuul02:15
*** jamesmcarthur has quit IRC02:19
*** jamesmcarthur has joined #zuul02:22
*** jamesmcarthur has quit IRC02:25
*** jamesmcarthur has joined #zuul02:40
*** jamesmcarthur has quit IRC03:06
*** sanjayu_ has joined #zuul03:13
*** ikhan has joined #zuul03:21
*** cloudnull has quit IRC03:38
*** vishalmanchanda has joined #zuul04:00
*** bhavikdbavishi has joined #zuul04:23
*** bhavikdbavishi1 has joined #zuul04:30
*** ykarel has joined #zuul04:31
*** bhavikdbavishi has quit IRC04:32
*** bhavikdbavishi1 is now known as bhavikdbavishi04:32
*** jamesmcarthur has joined #zuul05:10
*** jamesmcarthur has quit IRC05:14
*** evrardjp has quit IRC05:33
*** evrardjp has joined #zuul05:33
*** bhavikdbavishi has quit IRC06:01
*** sanjayu_ has quit IRC06:02
*** saneax has joined #zuul06:06
*** bhavikdbavishi has joined #zuul06:24
*** bhavikdbavishi1 has joined #zuul06:27
*** bhavikdbavishi has quit IRC06:28
*** bhavikdbavishi1 is now known as bhavikdbavishi06:28
*** saneax has quit IRC06:37
*** saneax has joined #zuul06:45
*** cloudnull has joined #zuul06:53
*** piotrowskim has joined #zuul07:08
*** bhavikdbavishi has quit IRC07:25
*** jcapitao has joined #zuul07:45
*** jpena|off is now known as jpena07:50
*** jfoufas1 has joined #zuul07:52
*** hashar has joined #zuul08:01
*** bhavikdbavishi has joined #zuul08:07
*** bhavikdbavishi1 has joined #zuul08:10
*** bhavikdbavishi1 has quit IRC08:10
*** bhavikdbavishi has quit IRC08:10
*** bhavikdbavishi has joined #zuul08:13
*** ykarel is now known as ykarel|lunch08:30
*** rpittau|afk is now known as rpittau08:33
msuszkoI've run into performance issues on zuul-scheduler few weeks ago, and resolved it thanks to tobiash asynchronous reporting change (691253).08:39
*** ykarel|lunch has quit IRC08:39
msuszkoThere was also lots of thime spent in chardet module, so I monkey-patched requests to use cchardet08:40
msuszkos/thime/time/08:41
msuszkoYesterday deployed updated version, but not bothered with cchardet this time, and zuul-schedulere hogs on one core with less than 20% of traffic08:44
tobiashmsuszko: are you using gerrit or github?08:45
msuszkoSo it is chardet, three orders of magnitude slower than cchardet, and it is used in gerrit driver.08:45
tobiashI wonder if chardet can be completely avoided there08:46
tobiashI guess gerrit is utf-8 only so chardet may not be needed at all there if there is a possibility to skip its use in requests08:46
msuszkoDo you have a clue, how to "politely" make requests use it, without monkey-patching requests/compat.py?08:47
tobiashnot really08:47
msuszkooh, that is true08:48
*** yoctozepto has quit IRC08:48
tobiashmsuszko: you could try to use r.raw here: https://opendev.org/zuul/zuul/src/branch/master/zuul/driver/gerrit/gerritconnection.py#L63008:51
tobiashmaybe that avoids the chardet usage in requests08:51
msuszko there is proper Content-Type header with charset in Gerrits reponse, I wonder what this chardet is for08:52
*** bhavikdbavishi has quit IRC08:54
tobiashdocs of r.text says if Response.encoding is None encoding will be guessed using chardet08:54
tobiashso maybe the response object doesn't know the encoding08:54
tobiashhttps://github.com/psf/requests/blob/master/requests/models.py#L83908:55
tobiashthis docstring also includes a hint how to avoid guessing08:56
tobiashI guess that's easier than monky patching chardet08:56
*** sshnaidm|afk is now known as sshnaidm|ruck08:57
tobiashfurther we access r.text four times in that method and it seams that that property doesn't cache the result so the conversion is done several times08:58
tobiashso I think we should fetch the text once and work on that then08:58
*** zenkuro has joined #zuul09:18
*** vishalmanchanda has quit IRC09:18
openstackgerritTobias Henkel proposed zuul/zuul master: Call r.text only once  https://review.opendev.org/c/zuul/zuul/+/77007109:24
tobiashmsuszko: you can try this ^09:24
tobiashcorvus: this might be useful for opendev as well09:25
openstackgerritMerged zuul/zuul master: Handle WIP Gerrit status  https://review.opendev.org/c/zuul/zuul/+/76943609:38
msuszkoi'm trying to pinpoint this with pptop09:52
msuszkoi'm not sure if this is r.text10:06
msuszkoin profiler it is mostly chardet.jpcntx.SJISContextAnalysis.get_order and chardet.jpcntx.EUCJPContextAnalysis.get_order, and it seems like trying to figure out encoding od nontext data10:07
tobiashcan you see the calling methods of that?10:17
msuszko_uploadPack (zuul/driver/gerrit/gerritconnection.py:1302)10:29
tobiashmsuszko: looking at the source of requessts chardet seems to be only used in the text property (and only if the encoding is not known a priori)10:29
msuszkomy corporate proxy filters out pastebin and alike10:30
tobiash_uploadPack uses text as well10:31
*** ykarel has joined #zuul10:31
tobiashI guess that misses the headers10:31
msuszkodoes git-upload-pack encode its data?10:32
*** zenkuro has quit IRC10:33
tobiashit's a text format: https://git-scm.com/docs/http-protocol10:33
*** zenkuro has joined #zuul10:33
msuszkoshould it be decoded as ansi then?10:34
msuszkoascii10:35
tobiashthis contains some info about the encoding: https://git-scm.com/docs/http-protocol#_dumb_clients10:35
tobiashinterestingly: Clients MUST NOT attempt to validate the returned Content-Type.10:35
msuszkodoes Response.content attempt to use chardet?10:38
tobiashmsuszko: no, I guess that's the byte array that gets decoded by Response.text10:40
msuszkoResponse.content uses .iter_content which pases decode_conten=True to .raw.stream (urllib3?): https://github.com/psf/requests/blob/master/requests/models.py#L75310:48
tobiashat least content is cached within the response object10:52
msuszkono, You are right. Reponse.text is the only chardet use10:53
*** wuchunyang has joined #zuul10:53
*** snapiri has quit IRC10:56
*** snapiri has joined #zuul11:01
openstackgerritTobias Henkel proposed zuul/zuul master: Call r.text only once  https://review.opendev.org/c/zuul/zuul/+/77007111:04
*** jcapitao is now known as jcapitao_lunch11:21
msuszkoapparently only place it used Response.text for upload-pack was this line: self.iolog.debug('Received: %s %s' % (r.status_code, r.text,))11:29
tobiashavass: I wonder if leaking the api key can be avoided without removing all possibilities to debug upload failures here: https://review.opendev.org/c/zuul/zuul-jobs/+/76811111:38
*** rfolco has joined #zuul11:38
*** rfolco is now known as rfolco|doctor11:39
msuszkowhile back i changed Response.text to Reponse.content in _uploadPack, because it couldn't read branch names with non-ascii unicode11:43
msuszkothe only line left with .text was this debug log11:43
msuszkoand it was causing encoding detection using utterly slow chardet11:45
*** ykarel is now known as ykarel|afk11:50
*** ykarel|afk has quit IRC11:55
*** ykarel|afk has joined #zuul12:07
*** wuchunyang has quit IRC12:09
*** wuchunyang has joined #zuul12:11
avasstobiash: I'd like that too but I'm not sure how12:15
*** wuchunyang has quit IRC12:15
avasstobiash: I'm not sure about this but I think ansible also saved the headers when showing the invocation as well so that would have leaked it too.12:17
openstackgerritMerged zuul/zuul-jobs master: Better error output for update-test-platforms.py  https://review.opendev.org/c/zuul/zuul-jobs/+/76675412:17
*** ykarel|afk has quit IRC12:22
*** jpena is now known as jpena|lunch12:30
*** rlandy has joined #zuul12:31
*** msuszko has quit IRC12:39
*** msuszko has joined #zuul12:41
*** sduthil has joined #zuul12:46
*** holser has joined #zuul12:57
*** jcapitao_lunch is now known as jcapitao13:01
*** ykarel has joined #zuul13:06
*** ykarel_ has joined #zuul13:21
*** ykarel has quit IRC13:23
*** ykarel_ is now known as ykarel13:25
*** jpena|lunch is now known as jpena13:29
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587313:32
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587313:44
*** yoctozepto has joined #zuul13:45
openstackgerritGuillaume Chauvel proposed zuul/zuul master: tutorial: Rework quick-start and prepare for other tutorials  https://review.opendev.org/c/zuul/zuul/+/73206614:16
*** rfolco|doctor is now known as rfolco14:18
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587314:18
*** jfoufas1 has quit IRC14:27
*** holser has quit IRC14:27
*** holser has joined #zuul14:28
*** jamesmcarthur has joined #zuul14:37
*** tosky has joined #zuul14:39
*** jfoufas1 has joined #zuul14:44
*** spotz has joined #zuul14:57
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587315:00
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587315:24
*** ykarel has quit IRC15:44
tobiashclarkb: this finally passes the k8s and openshift functional tests ^15:55
tobiashoh and happy new year everyone :)15:55
avasshappy new year! :)16:04
corvustobiash: happy new year!  welcome back :)16:05
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587316:09
*** hashar has quit IRC16:09
*** cloudnull has quit IRC16:11
*** cloudnull has joined #zuul16:14
*** zenkuro has quit IRC16:17
*** zenkuro has joined #zuul16:17
openstackgerritTobias Henkel proposed zuul/nodepool master: Bump openshift dep  https://review.opendev.org/c/zuul/nodepool/+/76587316:26
openstackgerritGuillaume Chauvel proposed zuul/zuul master: tutorial: Rework quick-start and prepare for other tutorials  https://review.opendev.org/c/zuul/zuul/+/73206616:32
*** jfoufas1 has quit IRC16:50
*** jpena is now known as jpena|off16:50
*** sduthil has quit IRC16:52
openstackgerritGuillaume Chauvel proposed zuul/zuul master: zuul_stream: close streamer when task is skipped  https://review.opendev.org/c/zuul/zuul/+/73547616:57
*** rfolco has quit IRC16:58
*** rpittau is now known as rpittau|afk17:10
*** jcapitao has quit IRC17:14
*** rfolco has joined #zuul17:22
*** holser has quit IRC17:22
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: DNM: Test new openshift version from nodepool  https://review.opendev.org/c/zuul/zuul-operator/+/77015817:23
*** tosky has quit IRC17:24
*** tosky has joined #zuul17:25
*** piotrowskim has quit IRC17:28
openstackgerritJonas Sticha proposed zuul/nodepool master: aws: add support for uploading diskimages  https://review.opendev.org/c/zuul/nodepool/+/73521717:31
*** holser has joined #zuul17:36
*** openstackgerrit has quit IRC17:37
*** evrardjp has quit IRC17:37
*** evrardjp has joined #zuul17:37
*** jamesmcarthur has quit IRC17:54
*** jamesmcarthur has joined #zuul17:55
*** jamesmcarthur has quit IRC18:01
*** jamesmcarthur has joined #zuul18:07
*** jamesmcarthur has quit IRC18:07
*** jamesmcarthur has joined #zuul18:08
*** mgoddard has quit IRC18:14
*** mgoddard has joined #zuul18:15
*** jamesmcarthur has quit IRC18:16
*** hamalq has joined #zuul18:16
*** mgoddard has quit IRC18:24
*** jamesmcarthur has joined #zuul18:29
*** sduthil has joined #zuul18:31
*** rfolco has quit IRC18:43
*** jamesmcarthur_ has joined #zuul18:46
*** jamesmcarthur has quit IRC18:50
*** rfolco has joined #zuul19:24
*** gmann is now known as gmann_afk19:25
*** saneax has quit IRC19:47
*** openstackgerrit has joined #zuul19:54
openstackgerritTristan Cacqueray proposed zuul/zuul master: Separate out executor server from runner  https://review.opendev.org/c/zuul/zuul/+/60707919:54
*** zenkuro has quit IRC20:51
*** rlandy is now known as rlandy|biab20:52
*** zenkuro has joined #zuul20:52
*** rfolco has quit IRC21:04
*** gmann_afk is now known as gmann21:13
*** zenkuro has quit IRC21:19
*** zenkuro has joined #zuul21:19
*** jamesmcarthur_ has quit IRC21:34
*** jamesmcarthur has joined #zuul21:35
*** jamesmcarthur has quit IRC21:36
*** jamesmcarthur has joined #zuul21:36
*** jamesmcarthur has quit IRC21:47
*** jamesmcarthur has joined #zuul21:47
openstackgerritTristan Cacqueray proposed zuul/zuul master: Separate out executor server from runner  https://review.opendev.org/c/zuul/zuul/+/60707921:51
openstackgerritTristan Cacqueray proposed zuul/zuul master: Move repository preparation into common class  https://review.opendev.org/c/zuul/zuul/+/64864221:51
*** jamesmcarthur has quit IRC22:01
*** jamesmcarthur has joined #zuul22:02
*** zenkuro has quit IRC22:05
*** zenkuro has joined #zuul22:06
*** rlandy|biab is now known as rlandy22:11
*** jamesmcarthur has quit IRC22:25
*** jamesmcarthur has joined #zuul22:26
*** jamesmcarthur has quit IRC22:30
*** jamesmcarthur has joined #zuul22:30
*** zenkuro has quit IRC22:49
*** zenkuro has joined #zuul22:50
*** jamesmcarthur has quit IRC22:52
*** jamesmcarthur has joined #zuul22:52
*** jamesmcarthur has quit IRC23:02
*** ikhan has quit IRC23:04
*** zenkuro has quit IRC23:06
*** zenkuro has joined #zuul23:06
*** icey has quit IRC23:08
*** icey has joined #zuul23:09
openstackgerritTristan Cacqueray proposed zuul/zuul master: Separate out executor server from runner  https://review.opendev.org/c/zuul/zuul/+/60707923:22
openstackgerritTristan Cacqueray proposed zuul/zuul master: Move repository preparation into common class  https://review.opendev.org/c/zuul/zuul/+/64864223:22
*** jamesmcarthur has joined #zuul23:34
*** jamesmcarthur has quit IRC23:34

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!