Friday, 2020-05-15

*** btully has joined #openstack-horizon00:22
*** btully has quit IRC00:27
*** gyee has quit IRC02:18
openstackgerritKieran Spear proposed openstack/horizon master: Fix display of application credential roles  https://review.opendev.org/72835704:37
*** vishalmanchanda has joined #openstack-horizon04:55
*** dklyle has quit IRC06:27
openstackgerritKieran Spear proposed openstack/horizon master: Fix display of application credential roles  https://review.opendev.org/72835706:45
*** rpittau|afk is now known as rpittau07:12
*** tosky has joined #openstack-horizon07:35
*** btully has joined #openstack-horizon07:38
*** btully has quit IRC07:42
*** e0ne has joined #openstack-horizon07:57
*** ChanServ sets mode: +o e0ne07:57
*** e0ne has quit IRC08:00
*** tkajinam has quit IRC08:14
*** e0ne has joined #openstack-horizon08:37
*** ChanServ sets mode: +o e0ne08:37
*** ircuser-1 has quit IRC09:32
*** rpittau is now known as rpittau|bbl10:09
*** happyhemant has joined #openstack-horizon10:28
*** threestrands has quit IRC11:46
NizarsAm I understanding this correctly that you are not supposed to use 'const' and 'let' in the angularjs part of the plugin's code? Should everything really be 'var'? That is what the output of 'tox -e eslint' is giving me.11:51
*** rpittau|bbl is now known as rpittau12:06
Nizarse0ne: I am around whenever you have time :)12:07
e0neNizars: hi. ok. what help do you need?12:08
e0neNizars: I'm ok to use let/const in our js code. we just need to update or linter settings12:09
Nizarse0ne: Awesome! So I am still new to a lot of the tox/karma/jasmine stuff but I have looked at other plugins and the available documentation. The goal is to be able to run some of the spec tests in static angularjs code. I keep hitting error after error and I am not sure what the cause of it is, if it is the npm installation on my server instance or some misconfigured files in the plugin.12:12
NizarsSo let's start from the beginning. I found the following two links to be very helpful:12:13
NizarsMake them three*:12:13
Nizarshttps://docs.openstack.org/horizon/latest/contributor/testing.html12:13
e0necould you please share tests output via http://paste.openstack.org/?12:13
Nizarshttps://docs.openstack.org/horizon/latest/contributor/topics/testing.html12:13
NizarsSure!12:13
Nizarshttps://docs.openstack.org/horizon/latest/contributor/topics/javascript_testing.html12:13
NizarsI will try the first one now: "Open <dev_server_ip:port>/jasmine in a browser. The development server can be run with tox -e runserver from the horizon root directory."12:14
NizarsThe result:12:16
Nizarshttp://paste.openstack.org/show/793657/12:16
Nizarse0ne: here is the code for the plugin: https://github.com/nizos/horizon-policies-plugin12:27
e0nelooks like ypur plugin is not installed inside virtualenv12:28
NizarsI see12:28
NizarsHow do I install it in the virtual env?12:28
e0neactivate virtual env end execute 'tox -e .' inside your plugin directory12:32
NizarsI will give it a go12:33
Nizarsany specific virtual env I should activate? venv?12:34
e0nethis one opt/stack/horizon/.tox/venv12:37
Nizarshttps://www.irccloud.com/pastebin/MjmCCmeW/12:39
*** AJaeger has left #openstack-horizon12:40
NizarsI am going to try just 'tox'12:41
e0neNizars: I's sorry, I did a type12:41
e0ne*type12:41
e0ne*typo12:42
Nizarsno worries :)12:42
e0neyou have to execute 'pip install -e .'  instead of 'tox -e'12:42
e0ne:(12:42
Nizarsok i will try it :)12:42
Nizarsdone12:43
Nizarshttp://paste.openstack.org/show/793658/12:43
e0negood. now try to deactivate virtualenv and run 'tox -e server again'. it should work now12:44
Nizarsok :)12:44
NizarsIt shows a lot of DEBUG12:47
NizarsI am not sure how to access the webpage for jasmin. ip-address/jasmine gives me a 40412:47
NizarsI assume i didn't add the port but I am not sure what it is12:48
e0neoh.. you need to tun 'tox -e npm' for it12:49
Nizarsok, in a new terminal instance right? :)12:50
e0neor stop a current tox12:51
Nizarsdo i run it in the plugin dir or horizon dir?12:51
e0neit depends which tests you want to run12:52
Nizarsok :)12:52
Nizarshttp://paste.openstack.org/show/793660/12:54
NizarsThis has been the error that we have been getting the most12:54
Nizarshttp://paste.openstack.org/show/793661/12:56
e0neit's something not obvious :(13:17
NizarsI agree13:18
NizarsIt doesn't seem to find a spec file i created13:18
NizarsI wonder if i should create one for the main module13:18
NizarsI tried tox -e karma-local13:19
Nizarshere is the log13:19
Nizarshttp://paste.openstack.org/show/793663/13:21
Nizarshttp://paste.openstack.org/show/793664/13:21
Nizarsthat was a long log, but here is the end of it:13:23
Nizarshttp://paste.openstack.org/show/793665/13:23
e0ne`ERROR: Directory '../horizon' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.` - ths errors looks like a critical one13:24
Nizarstrue13:25
NizarsI am not sure what to do about it13:25
e0neseems to be some requirement how projects should be organised :)13:25
NizarsThis is where the plugin is in the horizon directory13:26
Nizarshttps://usercontent.irccloud-cdn.com/file/Jnd5j020/image.png13:26
NizarsShould it be somewhere else?13:26
e0neplugin dir should be on the same level as horizon13:27
e0nenot inside horizon dir13:27
NizarsOh! so inside /opt/stack/ ?13:28
NizarsThis is how the plugin's directories look like: https://usercontent.irccloud-cdn.com/file/aQwD5S8t/image.png13:29
NizarsI will move it, reinstall it and try again13:29
NizarsI am getting a different error now:13:40
*** e0ne has quit IRC13:40
Nizarshttp://paste.openstack.org/show/793667/13:40
NizarsThis happened when I activated venv and tried to run 'pip install -e .'13:40
*** e0ne has joined #openstack-horizon13:44
*** ChanServ sets mode: +o e0ne13:44
NizarsI guess I will make an sdist for the plugin13:44
Nizarsok I got past that error13:47
NizarsBack to the same error as before13:53
Nizarshttp://paste.openstack.org/show/793668/13:54
Nizarshttp://paste.openstack.org/show/793669/13:54
*** dklyle has joined #openstack-horizon14:41
*** ChanServ sets mode: +o dklyle14:41
*** dklyle sets mode: -o dklyle14:42
*** gyee has joined #openstack-horizon16:13
*** kberger_ has joined #openstack-horizon16:31
*** KeithMnemonic has quit IRC16:31
*** kberger_ has quit IRC16:32
*** kberger_ has joined #openstack-horizon16:32
*** btully has joined #openstack-horizon16:42
*** btully has quit IRC16:47
*** rpittau is now known as rpittau|afk17:11
*** noonedeadpunk has quit IRC19:42
*** noonedeadpunk has joined #openstack-horizon19:42
*** kberger_ has quit IRC19:48
*** KeithMnemonic has joined #openstack-horizon19:48
*** btully has joined #openstack-horizon20:19
*** btully has quit IRC20:24
*** e0ne has quit IRC20:42
*** KeithMnemonic has quit IRC21:47
*** btully has joined #openstack-horizon22:08
*** btully has quit IRC22:12
*** tosky has quit IRC23:39

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