Friday, 2024-02-02

opendevreviewsuzhengwei proposed openstack/devstack master: Glance: add version to service_url if uwsgi mode  https://review.opendev.org/c/openstack/devstack/+/90751101:46
*** dtantsur_ is now known as dtantsur01:50
opendevreviewAshley Rodriguez proposed openstack/devstack-plugin-ceph master: Add ingress deamon  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/90034813:24
dansmithclarkb: a while back I think you filed a bug about making the "file size that disabled syntax highlighting" configurable with gerrit... anything ever come of that?14:53
dansmithit's brutal reviewing anything in nova without syntax highlighting14:53
opendevreviewAshley Rodriguez proposed openstack/devstack-plugin-ceph master: Bump to Reef  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/90761415:37
opendevreviewAshley Rodriguez proposed openstack/devstack-plugin-ceph master: Add ingress deamon  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/90034815:37
clarkbI'm not sure I filed a bug, I dug up the limits in the code so that people were aware of why it was happening. I'll check in the bug tracker to see if I filed anything16:24
clarkbdansmith: https://issues.gerritcodereview.com/issues/40015291 this appears to be what I filed. It hasn't gotten any attention16:25
dansmithugh16:25
dansmithis it unreasonable to ask if we could tweak the limits in our code as deployed?16:25
clarkbnow that we are no longer running a forked gerrit we're trying hard not to fall back on that16:28
clarkbit led to major issues over the yaers which eventually led to us being many years behind in the update cycle which was difficult to dig out of16:29
clarkbcompared to now where we regularly run the latest gerrit release for portions of the year16:29
dansmithseems like a patch in the workflow to change some constants is probably not a huge deal, but okay16:30
dansmithit's just incredibly painful16:30
clarkb3.9 has some diff size limit. I almost wonder if we can convince them to add a syntax highlight limit alongside that16:32
clarkbsince the new item is there to address similar client performance concerns16:32
dansmithso the current size limit is 500kb yeah? Lemme see how many files we have over that limit16:35
clarkblet me double check the current version of gerrit16:35
clarkbexport const CODE_MAX_LINES = 20 * 1000; const CODE_MAX_LENGTH = 25 * CODE_MAX_LINES;16:37
clarkbseems to be the same limit so ya 500kb roughly16:37
clarkbit checks length which could be character length and not byte length but for most of our files these numbers are probably the same16:38
clarkbI asked in their discord server if we can make these limits configurable and/or provide the warning as requested in that issue16:40
clarkblet me see if gerrit has any files this large that we can use as a reproduction case for upstream16:43
clarkbonly the packfile which isn't part of the diffs users see16:44
clarkband I guess one png16:47
clarkbnova has 5 python files that large16:48
clarkbonly one of nova's files is significantly larger than 500kb. I wonder if google did a source code size scan against all their code to decide on that limit16:49
fricklerclarkb: did you check file size or # of lines? IMHO a python file with 20k lines is much too large for reviewing or anything anyway16:55
clarkbfrickler: filesize using `find ./ -type f -size +500000c`16:58
clarkbthe line count is a little less of a problem because it give you a little popup telling you why there is no highlighting16:58
clarkbbut in the filesize case it does not and is extra confusing16:58
clarkbthis is one downside to using spaces for indentation I guess. Lots of extra bytes17:03
dansmithclarkb: sorry, call.. yeah the files that are over that size are the hottest areas of nova work of coruse17:32
clarkbdansmith: ya for the test files as an outsider looking in it seems like those could be trimmed relatively easily. More difficult for the core bits of nova17:36
dansmiththey can all be split of course, but there's really no compelling reason to do it (other than this) because reviews to those files are usually just test case additions17:37
dansmiththe core bit can as well, but again, desktop editors have no problem with them and being able to fold the whole file into classes and methods makes finding things much easier than if they're split17:37
dansmithif it was 1992 and we all have 4mb of ram, it'd be different, but... :)17:37
*** priteau_ is now known as priteau21:44

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