Wednesday, 2022-06-29

opendevreviewOpenStack Proposal Bot proposed openstack/horizon stable/wallaby: Imported Translations from Zanata  https://review.opendev.org/c/openstack/horizon/+/84804703:24
opendevreviewMerged openstack/horizon stable/wallaby: Imported Translations from Zanata  https://review.opendev.org/c/openstack/horizon/+/84804705:30
opendevreviewRadomir Dopieralski proposed openstack/horizon master: Add setup and teardown to the volumes pagination tests  https://review.opendev.org/c/openstack/horizon/+/84798507:12
opendevreviewRadomir Dopieralski proposed openstack/horizon master: Add setup and teardown to the instances pagination tests  https://review.opendev.org/c/openstack/horizon/+/84797908:06
zigoHi there! Is there anyone working on Django 4.x compat already?09:03
zigoHorizon is broken in Debian Unstable because of it...09:04
zigoI get 52 failed unit tests... some probably not in Horizon though.09:06
zigoOh, wrong version of django-compressor...09:08
zigoFixing.09:08
zigoOne single failure in TemplateTagTests.test_site_branding_tag now ...09:12
zigoMuch better ! :)09:13
vishalmanchandazigo: hello, as of now noone is working on djagno 4.x compatibliy with horizon.09:20
vishalmanchandazigo: if you already fixed or working on some issue to make it work with djang04.x09:21
vishalmanchandazigo: we will be happy to review it.09:21
zigovishalmanchanda: I wish I had plenty of time to do the upstream work on all the 500+ Python package I maintain in Debian for OpenStack, though realistically, this is impossible ... :P09:22
zigoAs much as I can see, it looks like we mostly need django-compressor 4.x, which I did, and Horizon (yoga) seems happy with it.09:22
zigoI'll tell you in a bit when I go further in unit testing.09:23
vishalmanchandazigo: nice.09:23
vishalmanchandazigo: Please open a bug if face any issues and add more details as possible and I will check how can we help you.09:24
zigovishalmanchanda: Do you know how I can black list a single unit test with pytest?09:24
zigoI'm currently doing:09:24
zigopython3 -m coverage run -a -m pytest horizon/test/ -n $$(nproc --all) -v --ds=horizon.test.settings -m "not selenium and not integration"09:24
zigo(though it'd be nice if one day, I could find the time to run the Selenium tests too...)09:25
zigoI tried adding "and not test_site_branding_tag" but pytest still runs it... :/09:26
zigoOh, probably my mistake is -m vs -k.09:26
zigoTrying ...09:26
vishalmanchandazigo: for skiping test please see https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/tests/test_floatingips.py#L4509:27
zigoIt's easier for me to just fix the command line in d/rules (no need to patch your upstream code this way).09:28
zigovishalmanchanda: https://bugs.launchpad.net/horizon/+bug/198021409:36
zigo5 times AttributeError: module 'django.utils.http' has no attribute 'is_safe_url' in openstack_auth09:38
zigoOnce AttributeError: module 'django.middleware.csrf' has no attribute 'REASON_BAD_TOKEN'09:38
zigoThese it's easy for me to fix, I'll try.09:38
zigovishalmanchanda: How can I test the in-use Django version in Python ?09:43
vishalmanchandazigo: sorry I didn't get your question.09:46
zigovishalmanchanda: I'd like to do something like this:09:46
zigoif django >= 4:09:46
zigoWhat's the syntax ?09:46
rdopieradjango.__version__09:48
rdopierabut it's a string, so >= won't work the way you want09:48
zigoI can use from distutils.version import LooseVersion right ?09:51
zigodistutils will be removed in Python 3.12, and LooseVersion is now in its own module. Is it ok to use that?09:53
zigotry: from distutils.version import LooseVersion except: from looseversion import LooseVersion ?09:54
zigovishalmanchanda: rdopiera: Your thought? Can I do that, or do you recommend a better way to check for Django's version?09:57
rdopierano idea what that looseversion thing is09:58
rdopierawhatever works for you09:58
zigohttps://pypi.org/project/looseversion/09:59
amotokizigo: I haven't replied to your emaial, but as far as I checked with Django 4.0 yesterday, I saw only two patterns of failures. the one is in openstack_auth and the other looks related to django translation proxy.11:02
amotokizigo: the first one apparently depends on django internal and I think what we can do is just to catch up with Django changes (I haven't identified all new attributes in csrf reasons should be added or not.)11:03
amotokizigo: regarding checking Django version, "django.VERSION >= (4, 0)" should work (after "import django")11:03
amotokidjango.VERSION returns a tuple of the version fields, so you can esaily compare using a tuple.11:04
opendevreviewMerged openstack/horizon master: Fix Create Container issues  https://review.opendev.org/c/openstack/horizon/+/84642411:24
zigoamotoki: Thanks.11:34
zigoI believe I solved the csrf_reason thingy...11:35
amotokizigo: nice11:38
amotokizigo: btw, does debian unstable always track the latest django version including non-LTS?11:38
zigoamotoki: Usually, Chris Lamb (our former Debian leader who's maintaining the Django package) tracks things in Experimental, and waits before uploading to Unstable.11:39
zigoI'm not sure if he does the non-LTS versions, but in Unstable it's always LTS.11:39
zigoI'll add some autopkgtest in Horizon, so he gets less reasons to break me with his uploads (ie: Experimental pseudo-excuse page will show failures in Horizon, so he can check that before uploading to Unstable).11:40
zigoBTW, looks like Horizon is doing // unit test testing now, right?11:40
zigoIt used to be not possible ...11:41
rdopierawhat?11:41
amotokizigo: what do you mean?  i cannot understand what "doing // unit test testing". // ????11:41
zigoparallel11:42
zigosorry ...11:42
rdopieraunit tests can be parallel, the other kinds of tests can't11:42
amotokihorizon UTs consist of four UTs. IIRC only plugin UT cannot run in parallel. Others can be parallel.11:44
zigoThat's still a very good improvement.11:44
rdopieraoh, I didn't look into plugin unit tests, sorry11:46
opendevreviewThomas Goirand proposed openstack/horizon master: Django 4.x: fix csrf reasond list  https://review.opendev.org/c/openstack/horizon/+/84810011:59
zigoThere you go.12:00
zigoShould I just except that single reason that changed, or is my list approach prefered?12:00
opendevreviewMerged openstack/horizon stable/yoga: Make existing empty metadata properties optional  https://review.opendev.org/c/openstack/horizon/+/84583412:00
zigohttps://docs.djangoproject.com/en/4.0/releases/4.0/ says:12:04
zigodjango.utils.http.is_safe_url() is removed.12:04
zigoWhat should be used instead?12:04
zigoI hate Django release notes. They say "foo is removed". They don't say "foo is removed, please use bar instead" ... :(12:04
zigoOh, found it:12:06
zigoTo avoid possible confusion as to effective scope, the private internal utility ``is_safe_url()`` is renamed to ``url_has_allowed_host_and_scheme()``.12:06
* zigo tries replacing it12:06
zigoLooks like that was it ! :)12:29
zigoI'm sending that 2nd patch.12:29
zigoOh, it's upstreamed already, great ! :)12:31
amotokizigo: most usage of is_safe_url() usage was cleanup in commit 00def145de2498816255959d1aefd285cd5583bf (as part of yoga), but...12:39
amotokizigo: I forgot to clean up one remaining one. it was clean up in commit 33efe3179d11316776e9efaa0aaccc505f771ac7 which is only in zed.12:40
amotokizigo: do you see more missing usage of isa_safe_url()?12:40
zigoamotoki: No, that's fine, thanks. I uploaded horizon 22.1.0-2 to unstable with the fixes.14:17
vishalmanchanda#startmeeting horizon15:00
opendevmeetMeeting started Wed Jun 29 15:00:07 2022 UTC and is due to finish in 60 minutes.  The chair is vishalmanchanda. Information about MeetBot at http://wiki.debian.org/MeetBot.15:00
opendevmeetUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.15:00
opendevmeetThe meeting name has been set to 'horizon'15:00
vishalmanchandahello, anyone around for horizon weekly meeting.15:02
rdopierao/15:02
rdopieraTatiana is on pto15:02
vishalmanchandardopiera: ok15:02
vishalmanchandathen I guess only two of us.15:03
vishalmanchandaok let's start the meeting.15:03
vishalmanchanda#topic Notices15:03
vishalmanchandaA casual reminder about schedule.15:03
vishalmanchandaThis week is R-14 week15:03
vishalmanchandaFor more info about schedule please refer https://releases.openstack.org/zed/schedule.html15:04
vishalmanchandaagenda of meeting can be found here https://etherpad.opendev.org/p/horizon-release-priorities#L3915:04
vishalmanchandamoving to next announcement15:05
vishalmanchandarelease team purposed a patch to cut a new release of horizon for stable/wallaby branch.15:06
vishalmanchandaAs of now, there is no open patch for horizon stable/wallaby branch.15:06
vishalmanchandahttps://review.opendev.org/c/openstack/releases/+/84790815:06
vishalmanchandathat's all announcment from my side for this week.15:07
vishalmanchandamoving to next topic15:07
vishalmanchanda#topic Release priorities15:07
vishalmanchandaXstatic angular migartion to 1.8.215:07
vishalmanchandathere are many horizon plugins in which npm job is failing with error15:08
vishalmanchandahttps://zuul.opendev.org/t/openstack/build/680a0fe17bcb468db43aa17d4e774c7f/log/job-output.txt#3308-331415:09
vishalmanchandardopiera: any idea why job is failing with syntax error in horizon plugins?15:10
rdopieralooks like it's using ` instead of ' to close the string15:13
rdopieraI can make a patch for that15:13
rdopierano, wait, maybe that's intentional, I don't know js/angular enough to tell15:14
rdopieraah, it's a template literal15:15
rdopierahttps://betterprogramming.pub/javascript-how-backticks-work-de269e0fb8ba15:15
rdopieramaybe that job is running with too old version of javascript to understand it?15:15
vishalmanchandaI am just wondering why we see this error in horizon plugins side but not in horizon15:17
rdopieranode version?15:18
vishalmanchanda14 I guess atleast in case of octavia-dashboard and senlin-dashboard15:19
rdopieraI see they are using PhantomJS 2.1.1 to run their tests15:19
rdopierawe use firefox...15:20
rdopierawe can rewrite that to not use that syntax15:21
vishalmanchandardopiera: +1.15:21
vishalmanchandathat's all from my side for this week.15:22
vishalmanchandaI purposed patches for few horizon plugins to make it work with angular 1.8.2.215:23
vishalmanchandaIf you have time, please take a look.15:23
vishalmanchandaYou can find more details here https://etherpad.opendev.org/p/Fix_Horizon_Plugins_With_Angularjs_v1.8.2.215:23
rdopierawill do15:24
vishalmanchandardopiera: thanks.15:24
rdopieraI'm still working on making the integration tests a bit more reliable15:24
vishalmanchandardopiera: yeah i saw your patch but didn't look at it yet.15:24
rdopieraI have three patches up that add setup/teardown and deleting of any leftover data -- even just running the tests for them cleared our gate15:25
rdopierawe don't even need to merge them15:25
rdopierawe can just do a recheck on them each time the gate is stuck ;-)15:25
vishalmanchandardopiera: ohh cool15:25
rdopierathough of course I would prefer to merge them eventually15:26
rdopierathere are still some random failures that I can't quite diagnoze15:26
rdopieraI get them on my laptop too, but only with firefox15:26
vishalmanchandardopiera: sure, let me know once they are ready to review.15:26
rdopieraall except the volumes should be ready15:27
rdopierathe failures are random15:27
vishalmanchandaok15:27
vishalmanchandayou use chrome to run integration test in your local env?15:28
rdopieraI have also discovered that though you can set things like the public network name or the demo project name in the config file for the tests, most of those values are ignored as they are hardcoded in the tests15:28
rdopieravishalmanchanda: I have also proposed a patch to add an option to run the tests using chromium or chrome15:28
vishalmanchandardopiera: this one https://review.opendev.org/c/openstack/horizon/+/84776315:29
rdopieraright15:29
rdopierait will use chrome if you set an environment variable15:29
rdopierait will use either chrome or chromium, depending on which chromedriver you have in path15:30
vishalmanchandardopiera: ok will try your patch.15:30
rdopierayou can also try the phantomjs15:31
rdopieraI didn't, because I don't have it packaged for fedora15:31
vishalmanchandardopiera: one question on this, Doesn't it going to use the browser we pass in karma.conf.js15:31
vishalmanchandahttps://github.com/openstack/horizon/blob/master/horizon/karma.conf.js#L123 15:32
rdopieraI think that just tells zuul what to install in the vm15:32
rdopierahorizon has firefox hardcoded15:32
vishalmanchandardopiera: yes15:33
vishalmanchandardopiera: ok thanks for the detailed info. will test your patch asap.15:34
vishalmanchandamoving to next topic15:34
vishalmanchanda#topic open-discussion15:34
vishalmanchandardopiera: Do you have any other topic to discuss?15:34
rdopieranot really, I'm focusing on the integration tests right now15:35
vishalmanchandaok then let's end this meeting.15:35
rdopieraI will probably not be able to upgrade jquery15:35
rdopierain this release15:35
vishalmanchandardopiera: no worries, I will take a look once angularjs migration is completed.15:36
vishalmanchandathanks for joining.15:36
vishalmanchandaSee you next week.15:36
rdopierathanks, bye15:37
vishalmanchanda#endmeeting15:37
opendevmeetMeeting ended Wed Jun 29 15:37:15 2022 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)15:37
opendevmeetMinutes:        https://meetings.opendev.org/meetings/horizon/2022/horizon.2022-06-29-15.00.html15:37
opendevmeetMinutes (text): https://meetings.opendev.org/meetings/horizon/2022/horizon.2022-06-29-15.00.txt15:37
opendevmeetLog:            https://meetings.opendev.org/meetings/horizon/2022/horizon.2022-06-29-15.00.log.html15:37
opendevreviewVadym Markov proposed openstack/horizon master: Enable redirect URL check  https://review.opendev.org/c/openstack/horizon/+/83041016:02
tobias-urdinvishalmanchanda: sorry I missed the meeting today, but I saw from last meeting that you brought up https://review.opendev.org/q/topic:keystone-endpoint-type and had some questions about it16:50
tobias-urdinunfortunately the change mentioned in there that caused a behaviour change caused some issues for us since we really need the traffic from horizon -> keystone to go over the internal endpoint16:51
tobias-urdinwhich that changed, so it kind of became a regression for us since we cannot change it and keep other endpoints to use public url16:51
vishalmanchandatobias-urdin: hi, dropped a comment on your patch https://review.opendev.org/c/openstack/horizon/+/84457419:28
vishalmanchandatobias-urdin: Please take a look once around.19:28
opendevreviewTobias Urdin proposed openstack/horizon master: Add OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt  https://review.opendev.org/c/openstack/horizon/+/84457423:51
tobias-urdinack thanks, fixed in above PS23:52

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