/srv/irclogs.ubuntu.com/2020/05/08/#launchpad-dev.txt

tewardcjwatson: this is the test output for the DMARC-changed code.  There was early tests also which were also doctests erroring because the from addresses did actually change and didn't match - but when those were revised the remaining errors are the only ones I see failing AFAICT.  https://people.ubuntu.com/~teward/lpdev-dmarc.txt00:08
teward(Chrome exploded when I tried to paste it into a pastebin)00:09
tewardfailed errors are towards the end00:09
wgrantteward: That looks fine00:10
wgrant    - Subject: [Bug ...] subject00:10
wgrant    ?               ^^^00:10
wgrant    + Subject: [Bug 18] subject00:10
wgrant    ?               ^^00:10
mupBug #18: RFE: I'd like to be CC:d automatically to bugs I report <feature> <iso-testing> <lp-bugs> <Launchpad itself:Fix Released by bradb> <https://launchpad.net/bugs/18>00:10
cjwatsonteward: Yep, as noted, this is doctest output being surprising to the uninitiated00:10
wgrantThat's the full diff, not necessarily the diff that caused the failure.00:10
wgrantIt doesn't include whitespace normalisation, and it doesn't include ellipsis.00:10
teward👍 thanks cjwatson00:11
tewardthe only other failure cases are the From addresses00:11
tewardwhich *are* what changed in my diff00:11
cjwatsonYou should find that if you fix just the From: bits then the rest will match00:11
tewardthat's the tricky part in *that* doctest00:11
tewardunless it's always using 1800:12
cjwatson<...@bugs.launchpad.net>00:12
tewardack00:12
cjwatsonThat's what ellipses are for00:12
tewardthose doctest errors are confuzling to me :)00:12
wgrantSometimes I wonder if that was one of the design goals00:12
wgrantThey can be remarkably obtuse.00:12
tewardthat i don't doubt xD00:16
tewardbut ODDLY no other bug notification tests errored heh00:16
cjwatsonThat is a little remarkable to me, but OK00:16
cjwatsonI guess we don't *have* to have a bazillion tests that interact with everything.  Usually there's more fallout from a change like this though00:18
tewardcjwatson: indeed.  yeah the lack of other things exploding here was also something that made me headscratch.  Unless we don't *actually* test bug delivery?00:19
cjwatsonWell, it evidently is being tested in that doctest00:20
tewardyep00:20
cjwatsonUnexpectedly light coverage, but we are actually testing it00:20
cjwatsonAlbeit slightly in passing00:21
cjwatsonThough, I don't understand how your changes didn't cause bugnotification-email.txt to fail00:23
tewardit did00:23
tewardi fixed those00:23
cjwatsonOh, I see00:23
tewardthose were the straightforward fixes00:23
cjwatsonOK, good00:23
cjwatsonThat's where get_bugmail_from_address is unit-tested (albeit in a ridiculous format, but they're conceptually unit tests)00:24
tewardyeah and those (as expected) failed00:24
tewardmy git tree has two documentation test fixes - one for the latest errors (Ellipses are evil) and one with the earlier two from address mismatches (which were very easy fixes by replacing the email addresses)00:25
cjwatsonAnd hopefully the surrounding prose commentary00:25
tewardwanted to get the tests passing before I rewrite the commentary :)00:25
tewardliterally just filed a short time ago - https://code.launchpad.net/~teward/launchpad/+git/launchpad/+merge/383643 - but this should handle the DMARC compliant bug mail issue.  The documentation needs vetted because I basically rewrote a whole portion of it.  Kept all four test cases for From addresses, but the function is much less verbose and quite straightforward - I kept the test cases to show behavior.14:13
tewardtests pass here, which was... surprising heh.14:14
tewardif this goes into deployment however it would help having a nice document posted somewhere about the change as people might start headscratching when things change majorly.14:18
tewardbut that's a given :(14:18
teward:) *14:18
cjwatsonWill look at it next week, thanks (public holiday here today)14:24
tewardyep just putting it on the radar :)14:28
teward(wish I had a public holiday today... I don't want to be doing Work from Home today - could use an extra 4 hours sleep xD)14:28
tewardcjwatson: do you know where Merge Proposal emails are constructed in the codebase?18:45
tewardi see some in docs but I need to find the constructor (they're also DMARC-noncompliant)18:45
cjwatsonteward: Somewhere in lib/lp/code/mail/18:48
tewardthanks i'll dig.  that's going to be the next thing I start poking at.  What's the testsuite for just merge proposals?  (or merges) - lp.code ?18:51
teward(instead of lp.bugs like before)18:51
cjwatsonYes.  The -t option takes a regex match applied to test case IDs - you can be more specific if you like, and I'd probably be inclined to do something like -t merge.\*proposal -t code.\*review18:53
cjwatsonShould be rather faster18:53
teward+118:54
tewardi'll dig there next, but i'm thinking a more phased approach to DMARC implementation - make sure there's no regressions in one part before implementing the rest.  Unless we want to one-and-done it all but that has more regression risks.18:55
cjwatsonWe try to name tests at least somewhat regularly so that things like that have a better chance of matching18:55
cjwatsonDoing this in pieces is absolutely correct and appropriate18:55
cjwatsonNo need to rush it18:55
tewardyep18:58
tewardi'm bored again though right now so :P  Need something to pass time :P18:58

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