Thursday, 2015-02-12

openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email base plugin.  https://review.openstack.org/15194800:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email SMTP Sender  https://review.openstack.org/14979200:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: [WIP] Email Send Cron Worker  https://review.openstack.org/15141600:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Working Directory Utility Method  https://review.openstack.org/15194700:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Outbox  https://review.openstack.org/15141300:15
krotscheckI have _NO_ idea why my sender test passes locally but not on jenkins.00:15
krotscheckHere’s hoping this time it works.00:15
jesusauruskrotscheck: silly question, but did you look at dependency versions / did you try locally with a clean slate?00:20
krotscheckjesusaurus: I did not.00:21
krotscheckjesusaurus: I’ll try that again next time around. it’s odd though that the errors are all DB related, when the code changes themselves don’t touch the DB.00:21
jesusaurusyeah, thats very odd00:21
greghaynesI really wish we had some tests that either didnt mock out smtp or did at a much lower level so we could compare what message content is actually being sent over the wire00:22
greghaynesmaybe spawn a background smtpd that writes out messages to an mbox and compare the resulting mbox00:22
greghaynesI say this because email is *the worst* for hitting encoding issues, and when we hit them were really going to want to be able to make a test case in that format00:23
krotscheckgreghaynes: If that’s somethign we can set up on our jenkins nodes, that’d be pretty awesome.00:25
jesusaurusyou could probably do something with nullmailer to a local mbox00:26
greghaynesyea, I think it'd be doable. /me adds background task to do this00:26
greghayneshrm00:27
greghayneswell, python has a build in smtpd thats pretty simple00:27
greghaynescould probably just make a fixture around it00:27
krotscheckgreghaynes: I see a thing here that might be a thing: https://pypi.python.org/pypi/pytest-localserver00:29
greghaynesooo00:29
greghayneshaha, even has smtpd example00:30
greghaynesits a py.test plugin so might need to be fixturified00:30
krotscheckI don’t know if it intercepts at the level you want it to though, ti suggests that it just grabs things and puts them into an outbox?00:30
greghaynesyea, thatd be fine, then we just send email to it and compare00:31
krotscheckIf not that, then this: http://code.activestate.com/recipes/440690/00:31
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible httpclient  https://review.openstack.org/15513900:59
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible unicode types  https://review.openstack.org/15514000:59
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible urllib  https://review.openstack.org/15515001:19
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible unicode types  https://review.openstack.org/15514001:22
greghaynesso https://bugs.launchpad.net/testrepository/+bug/1229445 is a hilarious bug01:41
openstackLaunchpad bug 1212909 in Testrepository "duplicate for #1229445 ImportError _bsddb with deadsnakes python2.6 anydbm" [Critical,Triaged]01:41
greghaynesfix for that incoming01:41
greghayneser, workaround01:41
krotscheckWait, dead snakes?01:54
greghaynesbest kind of snakes01:56
openstackgerritgreghaynes proposed openstack-infra/storyboard: Switch from mysql-python to PyMySQL  https://review.openstack.org/15233902:06
openstackgerritgreghaynes proposed openstack-infra/storyboard: Reorder py27 test to happen after py3 tests  https://review.openstack.org/15516102:08
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible httpclient  https://review.openstack.org/15513902:10
*** Piet has quit IRC03:22
greghaynesinterestingly - switching to pymysql results in a foreign key constraint error during tets03:31
greghayneswhich is scary03:31
*** Piet has joined #storyboard03:32
*** coolsvap has joined #storyboard05:19
*** coolsvap has quit IRC05:21
*** coolsvap_ has joined #storyboard05:22
*** coolsvap_ is now known as coolsvap05:22
*** alexismonville has quit IRC06:27
openstackgerritMerged openstack-infra/storyboard: Reject false creator_id from requests  https://review.openstack.org/15165006:58
*** jcoufal has joined #storyboard07:35
yolandakrotscheck, remove the +207:45
*** coolsvap has quit IRC07:48
*** coolsvap has joined #storyboard07:48
*** jcoufal has quit IRC07:49
*** jcoufal has joined #storyboard07:49
*** mrmartin has joined #storyboard08:05
openstackgerritMerged openstack-infra/storyboard: Add test_after_publishes_payload to test_notification_hook  https://review.openstack.org/15501708:05
yolandattx, krotscheck, when you have a chance... https://review.openstack.org/#/c/151650/08:08
yolandai'd like to have another +2 here and merge08:08
ttxyolanda: looking08:15
ttxit's merged now08:16
yolandathx08:21
*** openstackgerrit has quit IRC08:21
*** openstackgerrit has joined #storyboard08:21
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added branches to storyboard  https://review.openstack.org/15044708:50
*** jtomasek has joined #storyboard08:51
*** MaxV has joined #storyboard08:55
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added branches to storyboard  https://review.openstack.org/15044709:01
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Datetime instances from SQLAlchemy now all contain timezone.  https://review.openstack.org/15508309:01
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added milestones  https://review.openstack.org/15250009:02
*** jtomasek has quit IRC09:20
*** jtomasek has joined #storyboard09:34
*** jtomasek has quit IRC09:37
*** jtomasek has joined #storyboard09:37
*** ssam2 has joined #storyboard09:58
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added branches to storyboard  https://review.openstack.org/15044710:06
yolandaoh, that storyboard seems to be doing something wrong10:10
yolandai got10:10
yolanda400: PUT /api/v1/tasks/2060: You can't change author of task.10:10
yolandaand i really didn't do that10:10
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added milestones  https://review.openstack.org/15250010:16
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added new paginate query  https://review.openstack.org/15323110:19
openstackgerrityolanda.robla proposed openstack-infra/storyboard-webclient: Fix error notifications  https://review.openstack.org/15524210:33
yolandamm, NikitaKonovalov, you there? found a bug, but only happening to me with some stories10:36
yolandafor example https://storyboard.openstack.org/#!/story/200001810:36
yolandai want to change the status from Review to Merged10:36
yolandawhen i do it, it shows me error "You can't change the author of the task"10:36
yolandait happens because the Author of the story is another, not me10:37
yolandabut i created the task10:37
yolandaso i'm author of the task10:37
yolandawhen i want to update my task, it complains about the author, i bet that because story and task authors don't match10:37
yolandaor aripinen ^10:38
NikitaKonovalovok, let's see'10:51
*** alexismonville has joined #storyboard11:03
yolandamm, ttx, bad paste, i meant that https://review.openstack.org/#/c/152133/11:06
yolandafor the change i asked you to review before, sorry11:06
yolandaanytime11:31
yolandauups, bad window...11:31
ttxyolanda: done13:02
yolandathx13:02
openstackgerritMerged openstack-infra/storyboard-webclient: Fix in project groups validation  https://review.openstack.org/15213313:12
*** jcoufal_ has joined #storyboard13:17
*** jcoufal has quit IRC13:20
*** ssam2 has quit IRC13:36
*** ssam2 has joined #storyboard13:54
*** ssam2 has quit IRC14:00
*** jcoufal_ has quit IRC14:02
*** jcoufal has joined #storyboard14:02
*** Piet has quit IRC14:06
*** miqui_ has joined #storyboard14:13
*** ssam2 has joined #storyboard14:17
*** ssam2 has quit IRC14:30
*** jtomasek has quit IRC14:31
*** jcoufal has quit IRC14:33
*** jcoufal_ has joined #storyboard14:33
*** ssam2 has joined #storyboard14:43
*** jtomasek has joined #storyboard14:44
*** Piet has joined #storyboard15:39
*** ssam2 has quit IRC15:43
*** ssam2 has joined #storyboard15:43
*** ssam2 has quit IRC15:56
*** jedimike has joined #storyboard15:59
yolandakrotscheck, https://review.openstack.org/15524216:54
*** MaxV has quit IRC16:54
*** CTtpollard has quit IRC17:04
*** jcoufal_ has quit IRC17:07
*** coolsvap is now known as coolsvap_17:12
*** coolsvap_ is now known as coolsvap17:55
*** jedimike has quit IRC18:30
krotscheckFYI everyone: https://review.openstack.org/155086 just merged, py34 is now a nonvoting test for storyboard.18:42
openstackgerrityolanda.robla proposed openstack-infra/storyboard-webclient: Fix error notifications  https://review.openstack.org/15524218:49
*** Piet has quit IRC18:55
*** coolsvap is now known as coolsvap_18:57
greghaynes\o/19:13
*** alexismonville has quit IRC19:40
*** alexismonville has joined #storyboard20:11
*** jtomasek has quit IRC20:35
*** alexismonville has quit IRC20:39
*** Piet has joined #storyboard21:42
*** Piet has quit IRC21:49
*** mrmartin has quit IRC22:28
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email base plugin.  https://review.openstack.org/15194823:34
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email SMTP Sender  https://review.openstack.org/14979223:34
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Send Cron Worker  https://review.openstack.org/15141623:34
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Working Directory Utility Method  https://review.openstack.org/15194723:34
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Outbox  https://review.openstack.org/15141323:34
* krotscheck is pondering canonical url resolution23:35
* krotscheck needs it for email templating.23:36
greghayneshuh?23:37
greghaynesthat reminds me, do we actually have a worker model for the email senders? like an mq queue they consume from or something23:38
*** openstack has joined #storyboard23:42
krotscheckgreghaynes: Not yet, that’s next.23:53
krotscheckThe workers are there.23:53
krotscheckSorry23:53
krotscheckThe worker framework is there.23:53
krotscheckIt’s what we use for subscriptions.23:53
krotscheckThe email consumer to that queue isn’t there yet.23:53
krotscheckI’m putting the pieces together. Like right now I’m trying to build a set of email templates for single events, and would like to include a URL in the message.23:54
krotscheckBut fact is that the APi doesn’t know about the client.23:54
krotscheckSo linking back to the client requires some kind of hey-look-over-here parsing.23:54
krotscheckMy current thought is to add wsgi middleware that checks for the Accepts header, and if it’s text/html or some flavor thereof, send you to a oconfigured default client URl instead.23:55
krotscheckSo if in an email you get https://storyboard.openstack.org/api/v1/story/1, and you click on it in your email, it’ll eventually 302 to #!/story/123:56
krotscheckOr something like that23:56
krotscheckBut if you’re parsing URL’s from an automated email parser, and you send a request with Accepts: application/json, you won’t get the redirect and will get the raw resource instead.23:56
greghaynesso in the last system like this I worked on we would serialize the objects we were operating on and include them in the message we put on the worker queue23:56
greghaynesso the consumers just had to do a templating job23:57
greghaynesthis prevents other issues, like races23:57
krotscheckgreghaynes: That merged on monday https://review.openstack.org/#/c/152318/23:57
greghayneswhere you push a message onto the queue, the db value changes, then yore trying to template on old message  using new data23:57
greghaynesoh nice :)23:57
greghaynesyep23:57
krotscheckWe actually include the full before/after entity, so the worker can do a diff if it wants to23:58
greghaynesyea, exactly, thats what you need23:58
greghaynesso I must be missing some context with the problem then23:58
krotscheckrcarrillocruz did that piece in the previous patch, all I did was add it to the notification messages.23:58
krotscheckRight, so let’s say I build an email. I’m on the API right now, which is installed at “api.storyboard.openstack.org” or something like that. When I build the email, I want to build a URL that eventually goes to “client.storyboard.api.org"23:59

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!