/srv/irclogs.ubuntu.com/2011/05/27/#launchpad-dev.txt

sinzuiwallyworld_: mumble?00:00
wallyworld_yep00:01
=== wallyworld_ changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - wallyworld (*jtv) | https://code.launchpad.net/launchpad-project/+activereviews | Critical bugs:209 - 0:[######=_]:256
wgrantsinzui: Did you see the fallout from the flag-expired-memberships.py fix?00:48
LPCIBotProject windmill-devel build #143: STILL FAILING in 1 hr 10 min: https://lpci.wedontsleep.org/job/windmill-devel/143/00:51
timrclifeless, sorry, I'm a novice to lp... not sure I understand what you're saying on bug #724740.  I thought that adding the mutator was how to run business logic when the attribute is set...02:01
_mup_Bug #724740: setting a ppa private cannot be done over the API <api> <oem-services> <ppa> <Launchpad itself:In Progress by timrchavez> < https://launchpad.net/bugs/724740 >02:01
timrclifeless, here's my code so far: http://bazaar.launchpad.net/~timrchavez/launchpad/set_ppa_private_from_api_724740/revision/1305202:01
timrc(sorry there are still some inconsistencies in the comments and no tests yet :/)02:03
* timrc ducks02:03
StevenKwgrant: Most of the failures for archiveuploder look like behaviour changes in notify_spr_less()02:24
StevenKwgrant: Which I'm fixing02:24
StevenKwgrant: Running -t archiveuploader to see what the fall-out is02:25
wgrantStevenK: Hmm.02:46
LPCIBotProject windmill-devel build #144: STILL FAILING in 1 hr 9 min: https://lpci.wedontsleep.org/job/windmill-devel/144/02:51
StevenKwgrant: Hm?02:57
wgrantIndeed.02:57
wgrant!02:57
StevenKwgrant: Down to one failure02:59
wgrantStevenK: But who knows how many you broke in Soyuz :)02:59
wgrantAnyway, let me review your diff.02:59
StevenKI have local changes03:00
lifelesstimrc: hi03:00
StevenKIncluding putting back sanitize_string :-(03:00
wgrantStevenK: Why did the abomination need to return?03:00
lifelesstimrc: mutators can be used yes, but if we need it always then just using a property is better03:00
StevenKwgrant: Since I can't call guess_encoding on a unicode string, and the mail text seems to change03:02
StevenKFor some tests it's unicode, and others it's ascii03:02
wgrantStevenK: It'll automatically become unicode when a unicode is interpolated into it.03:02
wgrantBecause fuckyeah Python 2.03:02
wgrantStevenK: This indicates that there are unicode-safety bugs.03:03
wgrantStevenK: It should either always be a unicode or never be.03:03
StevenKwgrant: Then there likely already were03:04
wgrantSure.03:04
StevenKr13103 pushed03:04
wgrantHm.03:12
wgrantThe branch is shorter now?03:12
wgrantInteresting.03:12
wgrantStevenK: notify_spr_less seems to assume there's always an archive.03:12
wgrantBut that's not the case.03:13
wgrantOr at least it shouldn't be.03:13
wgrantStevenK: Perhaps s/notify_spr_less/reject_changes_file/?03:13
wgrantI'd also continue to encourage you to remove get_status.03:14
StevenKOh, and just replace it with a dictionary?03:15
wgrantThe dictionary, yeah.03:23
wgrantI'm doing a proper rereview now.03:23
StevenKI've done those two suggestions locally03:23
wgrantACTION_DESCRIPTIONS[action] is not much worse than get_status(action) :)03:23
wgrantThanks.03:23
StevenKThe only test that still fails is testSourcePackageRecipeBuild_success_mail. Didn't poolie break that on purpose?03:24
StevenKAh, no. I've broken it so it sends mail03:25
StevenKAhh. I can't check PU.getSourceBuild()03:30
StevenK:-(03:30
timrclifeless, this may sound dumb but when you say property are you referring to Python's @property? just making sure I'm understanding you correctly?03:32
StevenKwgrant: I have those two changes to push, along with the fix for SPRB_success_mail.03:35
jtv-afkhi wallyworld_03:38
wgrantStevenK: I'm reworking _sendNotification03:39
StevenKwgrant: Oh, you're going to give me a patch?03:39
wgrantYes.03:39
wgrant'cause I was about to shred it in the review.03:40
wgrantDecided I would be a bit kinder.03:40
StevenKWho are you, and what have you done with the real wgrant?03:40
wallyworld_jtv-afk: hello03:43
jtv-afkOh, old nick03:43
=== jtv-afk is now known as jtv
jtvwallyworld_: any reviews you need me to mentor?03:43
=== StevenK changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: wallyworld (*jtv) | https://code.launchpad.net/launchpad-project/+activereviews | Critical bugs:209 - 0:[######=_]:256
wallyworld_jtv: thanks for asking. i assigned 2 to you. did you not get the email?03:44
StevenKThat '- ' was annoying me03:44
jtvwallyworld_: Probably.  But email is one of those "it's got to be in there somewhere" things.03:44
wallyworld_:-)03:44
jtvAh, there they are.03:48
wgrantStevenK: Slow tests :(03:53
wgrantBut they seem happy with my +11/-53 so far.03:53
StevenKCrumbs!03:56
StevenKwgrant: My local branch has all of the archiveuploader tests passing03:57
wgrantStevenK: Have some comments.04:00
StevenKwgrant: Your commit messages makes me sad04:04
wgrantStevenK: It sucked years before you got to it.04:05
StevenKTrue04:05
lifelesstimrc: yes, I am04:06
wgrantStevenK: send_mail/_sendMail/_sendNotification/send_message still seem like they're designed to confuse me. Let's see if we can merge/rename some of them.04:06
wgrantAnd they're not to be confused with sendmail(), which does the actual work!04:07
StevenKwgrant: I'm thinking about solving the two calls to _sendNotification in notify()04:08
StevenKThe only difference is the summary04:08
wgrantsend_mail can also easily be merged into _sendNotification.04:08
StevenKwgrant: You say the logging of the mail is still duplicated -- however the level is different?04:10
wgrant... huh.04:11
wgrantMake it all debug.04:11
wgrantIf you're doing a dryrun you should be using -v anyway, surely.04:11
wgrantStevenK: What's the difference between the two _sendNotification calls? rejected doesn't send the file summary with OK/NEW/etc.?04:13
wgrantThat seems sort of trivial to sort out.04:13
StevenKwgrant: summarystring for !rejected, summary_text for rejected04:14
StevenKOnly04:14
wgrantStevenK: Do you like my slight _sendNotification simplification?04:16
StevenKI do04:16
timrclifeless, gotcha... so when is it favorable to use a mutator vs. @property out of curiosity?04:16
StevenKwgrant: Re: your "What did it do before?" question, exactly that.04:17
wgrantHuh.04:17
wgrantI hadn't seen that before.04:17
wgrantOK.04:17
lifelesstimrc: when clients through the API should do different things than clients inside the appserver.04:18
StevenKwgrant: It was inside notify()04:18
StevenKwgrant: I'd love to drop the hasattr() hack, too04:20
StevenKwgrant: But tests insist on passing in StringIO as the file_object04:20
wgrantStevenK: We should find some other way.04:25
wgrantStevenK: How was it done before?04:25
wgrantDid it use packageupload.changesfile.filename or something?04:25
timrclifeless, okay. so if a mutator is used then clients within the appserver would basically need to call setPrivate explicitly rather then .private = boolean04:25
timrclifeless, @property would give a common interface for both04:25
StevenKwgrant: It used packageupload.changesfile.filename04:26
wgrantStevenK: :( OK04:26
wgrantStevenK: We may want to rationalise this eventually.04:27
wgrantSo we take a filename and either changesfile string or object... not all three.04:27
StevenKMmmmm04:27
StevenKwgrant: Does http://pastebin.ubuntu.com/613578/ satisfy your "Can haz map?" comment?04:28
wgrantStevenK: It does indeed, but the location could be better.04:28
* StevenK ponders lunch.04:29
wgrantStevenK: So, do you have any more ideas for merging the Confusing Four?04:30
wgrantsend_mail can be pretty trivially folded into _sendNotification.04:30
StevenKI agree about that04:30
StevenKsend_message() is also used by notify_spr_less's new name04:31
wgrant_sendNotification can be folded into notify()04:31
wgrantRight.04:31
wgrantStevenK: Hm, notify_spr_less doesn't want to use _sendMail?04:31
StevenKNo, it's first argument is an apr04:32
StevenK*SPR04:32
wgrantIt looks like it can be optional.04:32
wgrantIt says 'if spr:'04:32
wgrantIndeed, it is optional.04:32
wgrantUse it if you can.04:32
sinzuiwgrant: I did not see the fallout.04:33
wgrantThen send_message can be folded into there.04:33
wgrantsinzui: It hadn't been sending warnings.04:33
wgrantsinzui: So about 300 memberships expired without warning.04:33
lifelesstimrc: right04:33
wgrantsinzui: But only 20ish were in restricted teams that they could have renewed themselves, and I think the owners have fixed those.04:33
lifelessmutators are basically fugly04:33
sinzuiwgrant: :(04:33
timrclifeless, aye04:33
sinzuiI had answered a users question today saying all was fixed. He had noticed his membership was expiring and had not gotten an email04:34
wgrantlifeless: Let's rewrite Launchpad in Java.04:35
lifelesswgrant: indeed, why have one problem when we can have two!04:35
timrcwgrant, I think we should rewrite it in something more intuitive, like COW (http://www.bigzaphod.org/cow/)04:35
wgranttimrc: But one of the instructions is actually intuitive :(04:37
StevenKwgrant: The log level change is going to cause widespread changes to doctests04:38
wgrantStevenK: Indeed... We'll see how widespread it is.04:39
wgrantStevenK: If it's too hard, use a different log method for each, but still dedupe.04:39
StevenKwgrant: Changes made, and your branch merged.05:28
StevenK+16/-14 for nascent-announcements.txt05:28
StevenKWhich is much less than I feared.05:28
StevenKwgrant: _sendNotification folded into notify()05:32
LPCIBotProject windmill-db-devel build #328: STILL FAILING in 1 hr 9 min: https://lpci.wedontsleep.org/job/windmill-db-devel/328/05:32
wgrantStevenK: Hexcellent.05:35
wgrantHmm, we haven't harrassed the LOSAs at all today :(05:37
wgrantWe are not up to our usual standard.05:37
* StevenK looks at merging send_mail() into notify()05:37
wgrantStevenK: Yay05:37
wgrantEr.05:37
wgrantNo.05:37
StevenKIndeed, we call it twice05:38
StevenK[13:30] < wgrant> send_mail can be pretty trivially folded into _sendNotification.05:38
StevenK:-)05:38
wgrantStevenK: Oh, right, send_mail, not send_message.05:39
wgrantsend_mail can be folded in.05:39
wgrantsend_message should be merged into _sendMail, but that first requires that reject_changes_file use the latter instead.05:39
StevenKwgrant: However, we call send_mail twice -- once for annoucements and once for the message itself.05:41
wgrantStevenK: The args are the same except for action, recipients, from_addr and bcc_addr, AFAICT.05:42
wgrantAlso, the subject can be shared, but the body cannot.05:42
wgrantPossibly reintroduce the do_send_mail closure.05:43
wgrantBut at the end this time.05:43
wgrantWill save like 13 arguments and a confusing function name.05:43
lifelesspoolie: you wanted to catch up more generally ?05:53
=== almaisan-away is now known as al-maisan
StevenKwgrant: notification.py |   18 ++----------------05:57
StevenKwgrant: From killing send_message05:57
jtvStevenK: I notice that DSDJob.run finds its DSD by {distroseries, sourcepackagename}.  Doesn't that become ambiguous with multi-parent?05:58
StevenKjtv: Yes, that should change.05:58
StevenKwgrant: Make that +2/-1905:59
jtvStevenK: do we have a bug/card for that?05:59
StevenKI can't recall off the top of my head05:59
jtvOK, I'll look.06:00
wgrantStevenK: :)06:00
jtvStevenK: bug 758906 may be a bit general06:00
_mup_Bug #758906: Allow a derived series to have multiple parents <derivation> <Launchpad itself:Triaged> < https://launchpad.net/bugs/758906 >06:00
StevenKAssertionError: Invalid recipient: '' in ['D', 'a', ...06:00
* StevenK digs06:00
wgrantStevenK: Does that mean that send_mail and send_message are both dead?06:00
StevenKsend_mail is not, send_message is06:01
wgrantI am disappoint.06:01
StevenKOf course you are.06:01
wgrantI'm hoping that notification.py drops below 500 lines.06:02
pooliehi lifeless06:02
lifelesso/ poolie06:03
StevenKwgrant: 50906:03
pooliesure06:03
poolienow if you like06:03
wgrantStevenK: Victory is near.06:03
lifelesspoolie: that would be great. shall we try skype?06:03
StevenKwgrant: What was your plan to kill send_mail?06:04
wgrantStevenK: Give me a sec.06:09
StevenKwgrant: My branch has also fallen behind Full HD06:14
wgrantStevenK: Hm, I have an odd failure in distroseriesqueue-notify.txt.06:16
wgrantHave you fixed that one yet?06:16
StevenKI've not been running the soyuz tests06:16
wgrantr13104 broke it.06:19
StevenK:-(06:19
StevenKAh, that could be the DEBUG vs INFO06:20
wgrantHm, possibly.06:20
wgrantDoesn't look like it, though.06:20
StevenKI'll dig when archiveuploader stops running06:20
wgrantAlso, just found a bug in r1310406:21
wgrant-    for bpr in bprs:06:21
wgrant-        names.add(bpr.build.source_package_release.name)06:21
wgrant-        version = bpr.build.source_package_release.version06:21
wgrant+    elif bprs:06:21
wgrant+        names.add(bpr[0].build.source_package_release.name)06:21
wgrant+        version = bpr[0].build.source_package_release.version06:21
wgrantYou need to add the names even if there are sprs.06:21
wgrantJust not the version.06:21
wgrantOh.06:22
wgrantHeh.06:22
wgrantIt was the DEBUG/INFO change: the unification added some new fields.06:22
StevenKAh06:22
StevenKSorry, I fixed that locally06:22
StevenKIn r1310506:23
wgrantGreat.06:23
StevenKDo you have a diff for the -notify change?06:23
wgrantJust pushing.06:23
StevenKOr have you not fixed it?06:23
wgrantOh.06:24
wgrantNo, that one I haven't fixed.06:24
wgrantThere will be many more like it.06:24
wgrantI'm pushing the send_mail merge.06:24
wgrantDone.06:24
StevenKI've just pushed r1310706:24
wgrantHm.06:24
wgrantHave you?06:25
StevenKPushing06:25
StevenKWhen that returns, I'll re-merge your branch06:25
StevenKHm. No progress either06:25
StevenKconnect(4, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("91.189.89.225")}, 1606:26
StevenKOdd06:26
StevenKssh: connect to host bazaar.launchpad.net port 22: Connection timed out06:30
StevenKHmmm06:30
StevenKBut ssh -vv connects06:31
wgrantWFM :(06:31
StevenKSo I'm confused06:31
StevenKAh, there it goes06:31
StevenKwgrant: Sorry, pushed.06:31
* StevenK attempts to merge in wgrant's latest branch, dies from conflicts06:34
wgrant:(06:34
StevenKwgrant: I can't make sense of them either06:34
wgrantOh?06:34
wgrantLet me see.06:34
wgrantzomg conflicts06:34
wgrantOh.06:35
wgrantYou demolished _sendNotification.06:35
wgrantI see.06:35
StevenKYou said to? :-)(06:36
StevenKs/(//06:36
wgrantStevenK: Pushed. You should just be able to pull.06:41
wgrant497 lines.06:41
StevenK\o/06:42
* StevenK looks at distroseriesqueue06:44
wgrantStevenK: Can you also fix bcc_addr calculation?06:45
wgrantStevenK: It should use the spr name and then fall back to the first bpr name.06:45
wgrantStevenK: And not duplicate the template.06:45
StevenKwgrant: http://pastebin.ubuntu.com/613612/06:47
wgrantStevenK: elif bprs06:48
wgrantStevenK: I'm still not quite sure how notification.py has ended up 20% shorter, despite some stuff being moved into it from queue.py...06:53
StevenKHaha06:53
StevenKIz bonus06:53
StevenKwgrant: Fixed distroseriesqueue*06:54
wgrantStevenK: I would avoid further elision like the nascentupload-announcements.txt fix.06:55
wgrantIt may conceal unexpected Bcc and From additions.06:55
StevenK:-(06:55
StevenKHow did you know that's how I fixed them?06:56
wgrantHeh06:56
wgrantI was actually typing that before you said you'd fixed them :(06:56
StevenKOh, so since I've done it, I can leave it? :_)06:56
wgrantNo.06:57
StevenKShould I fix nascentupload-announcements.txt as well?06:58
wgrantStevenK: Ideally.06:58
lifelesscody-somerville: your bug is fixed; will be deployed monday06:58
StevenK% psql -l | egrep -c 'ftest_[0-9]'07:03
StevenK807:03
StevenKWith no test suite running :-/07:03
StevenKwgrant: distroseriesqueue* fixed properly07:08
wgrantGreat.07:08
wgrantI think this is just about done.07:08
StevenKThe only thing I can think of is the hasattr() hack07:09
wgrantYes.07:09
wgrantThat's only used by notify(), right?07:09
wgrantAn extra arg at that single level won't hurt too much.07:10
StevenKNo, reject_changes_file07:10
wgrantWell, yes, but that's called immediately by notify()07:10
wgrantSo it doesn't affect the majority of the code.07:10
StevenKBah, I called it reject_changes_file*s* ?07:11
wgrant:( fixit07:11
StevenKFixed07:11
StevenKwgrant: r13111 pushing07:17
StevenKHmm, it's back over Full HD again.07:18
=== al-maisan is now known as almaisan-away
StevenKwgrant: Diff in the MP has updated, once more with feeling?07:21
wgrantStevenK: Soyuz tests are passing?07:28
StevenKStill running archivepublisher07:29
StevenKBut I can let you know in 30 minutes :-(07:29
wgrantSo, I'll rereview in a sec.07:30
StevenKwgrant: Running soyuz now, no failures in archivepublisher07:30
wgrantWhat are your next steps?07:30
wgrantAfter this branch?07:30
StevenKI was going to say hook this into the package copier, but that is dangerous07:31
wgrantIt might be worth seeing how hard it is to extract reject_changes_file() from notify(), making archiveuploader call it directly.07:31
wgrantBut if you want to go directly to the copier goal, you'll need to wean notify() and co. off the changesfile.07:31
StevenKI tried that, archiveuploader deals with both forms of rejection in one method07:31
wgrantStop using it for Changed-By and Maintainer, for example.07:31
wgrantBah.07:31
wgrantThat's stupid.07:31
wgrantBut OK.07:32
StevenKMy concern with the package copier calling it is that notify() is fairly heavyweight, and the package copier needs to be lean and fast07:32
wgrantDoes it?07:33
StevenKOtherwise copying times out and people yell at me. :-(07:33
wgrantThese copies won't be done inline.07:33
StevenKAhh07:33
wgrantWell, for security copies they probably will for the short-term.07:34
StevenKSo call notify() in PCJ, *not* do_copy07:34
wgrantBut this is pretty light-weight...07:34
wgrantNo, do_copy.07:34
wgrantBut only security copies and PCJ will use it for now.07:34
StevenKThat's fairly easy guarded07:34
persiaOn a vaguely related note, did the job to pro[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccess all the old copyright files ever run?07:34
wgrantNo need.07:34
wgrantThe other types of copies are unsupported.07:34
wgrantpersia: Old changelog files? Yes.07:35
=== almaisan-away is now known as al-maisan
persiaOh, excellent07:35
StevenKpersia: It took one month to run07:35
StevenKpersia: And processed roughly 580,000 SPRs.07:35
wgrantOnly 'cause you threw away my good one :P07:35
persiaStevenK: It took about one year to schedule, so I'm happy with the run time :)07:35
StevenKSo we thanked it by deleting it from the codebase.07:35
StevenKwgrant: I got lifeless'd07:35
StevenKwgrant: And I didn't throw it away, it mutated ...07:36
StevenKwgrant: Uh? What about ppa-to-ppa copies?07:36
wgrantStevenK: They shouldn't announce.07:36
wgrantWe will handle that in the integration.07:37
StevenKClearly07:37
wgrantBut it should be handled with the rest of the do-not-announce logic.07:37
wgrantNot by not calling notify().07:37
StevenKRight07:37
StevenKwgrant: Are you reviewing, or waiting for soyuz test results?07:37
StevenKOr doing something else entirely :-)07:38
wgrantWill look shortly.07:38
StevenKwgrant: 2 failures in soyzu08:07
StevenK*soyuz08:07
StevenKThey're both doctests, so I guess it's more INFO vs DEBUG fallout08:07
wgrantStevenK: Have you disposed of _filename yet?08:22
StevenKwgrant: Yes08:24
StevenKTrying to work out the xx-queue-pages.txt failure08:24
StevenKsoyuz-set-of-uploads failed due to INFO vs DEBUG08:24
wgrantThe rejection message seems to be None.08:26
StevenKYes, I think I've found the bug.08:26
StevenKAnd found a stray place _filename hasn't been erricated yet08:27
StevenKwgrant: r13112 pushed.08:31
StevenKwgrant: Did you notice my drive-by to drop pocketsuffix from queue?08:32
=== al-maisan is now known as almaisan-away
wgrantStevenK: I WTF'd at it for a minute and then worked out it was a drive-by, yes.08:32
wgrant*Not* really the right sort of branch for drive-bys, but I won't hurt you too much.08:32
StevenKWell, true, it's large and hurty enought08:33
StevenKs/t$//08:33
StevenKwgrant: Diff updated.08:34
wgrantStevenK: The summarystring stuff could do with a shuffle.08:40
StevenKwgrant: Er, which bit?08:40
wgrantI'd move the buildSummary bit (line 144) into an else block after the "if action == 'rejected'"08:40
wgrantSince the rejected bit clobbers it.08:40
StevenKwgrant: Done08:42
wgrantStevenK: Could you also de-underscore and de-CamelCase the remaining functions?08:51
wgrantApart from that I think it is pretty much landable.08:51
wgrantWe will see Julian scream in a few minutes, I guess?08:51
mrevellHow do?08:56
StevenKwgrant: Does mean you're willing to Approve it?08:59
StevenKs/s m/s that m/09:00
=== jtv1 is now known as jtv
jmlhuwshimi: hi09:01
huwshimijml: Hello!09:01
StevenKwgrant: r13113 pushed.09:02
jmlhuwshimi: let's talk :)09:02
huwshimijml: Skype?09:02
StevenKwallyworld_: Are you still the OCR?09:05
wallyworld_StevenK: perhaps not anymore09:05
wallyworld_i should change the topic09:05
* wallyworld_ is about to eat dinner09:05
=== wallyworld_ changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: | Critical bugs:209 - 0:[######=_]:256
=== StevenK changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Critical bugs:209 - 0:[######=_]:256
StevenKI wonder if that 209 count is still right09:06
wgrantIt's 210 now, I think.09:07
wgrantPossibly more.09:07
wallyworld_it seems to be stuck around 200 :-(09:07
wgrantIt's decreasing.09:07
wgrantBut then stuff gets escalated.09:07
wallyworld_right09:08
wgranthttp://webnumbr.com/launchpad-critical-bugs09:08
wallyworld_nice graph. i hadn't seen that before09:08
wgrantThere are 9 escalated bugs.09:10
StevenKwgrant: The diff has updated, can haz comment/approve?09:10
wgrantbigjools must be subjected to it first.09:11
StevenKbigjools: https://code.launchpad.net/~stevenk/launchpad/refactor-notification/+merge/6191909:11
bigjoolsbzr repacking a commit when you just want to push before your battery runs out is sub optimal09:12
bigjoolshey wallyworld_ you're up late09:12
adeuringgoodmorning09:12
wgrantThe notification.py diff is pretty much useless, but the new file is short and pretty readable.09:13
wgrantAnd self-contained.09:13
lifeless http://webnumbr.com/.join(launchpad-oops-bugs.all,launchpad-timeout-bugs.all,launchpad-critical-bugs.all)09:19
=== lifeless changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Critical bugs:206 - 0:[######=_]:256
jtvWho's up for a review?  https://code.launchpad.net/~jtv/launchpad/db-bug-788526/+merge/6262309:24
adeuringjtv: I'll look09:33
=== adeuring changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: adeuring | Critical bugs:209 - 0:[######=_]:256
jtvthanks adeuring09:34
LPCIBotProject windmill-db-devel build #329: STILL FAILING in 1 hr 8 min: https://lpci.wedontsleep.org/job/windmill-db-devel/329/09:36
StevenKDear Unity, why are you making my laptop screen flicker?09:41
danilosStevenK: it's not Unity, it's me!09:48
StevenKdanilos: How are you doing that, then? :-)09:48
danilosStevenK: just saying I might drop by and then it shudders (manifests as flicker ;))09:49
=== almaisan-away is now known as al-maisan
StevenKwgrant: bigjools has approved, your turn10:26
adeuringjtv: r=me10:32
jtvthanks!10:32
jmlFood time!!#@@!#10:33
jml(I'm pretty excited about it)10:33
wgrantStevenK: It is done.10:35
bigjoolswgrant: I'm sad that you're not on maintenance rotation any more, I was going to press-gang you into fixing the FatalUploadError-generating-an-oops-for-bad-gpg-signatures annoyance10:36
bigjoolssince every single soyuz oops for the last few days has been those10:37
wgrantbigjools: As I said, I was looking at that last week, but got distracted by the whole epic failure thing.10:37
wgrantYeah.10:37
wgrantThe missing mandatory field errors are now replaced by those.10:37
wgrantSince it does signature verification first.10:37
StevenKwgrant: bigjools wished for docstrings, so 52710:37
wgrantbigjools is a terrible person.10:37
wgrantBut probably correct.10:37
StevenKHaha10:37
* bigjools is merely enforcing the existing rules ;)10:38
wgrantAt least we removed a few functions that would have also needed 15-20 line docstrings.10:38
bigjoolsyarp10:39
wgrantI'm sure I can refactor some more out of it, but this is workable, landable, somewhat reviewable, and makes me cry less.10:39
lifelessgpghandler-service ftw10:40
wgrantYes10:40
wgrantHopefully first thing.10:40
lifelesswgrant: have you seen https://dev.launchpad.net/ArchitectureGuide/ServicesRequirements ?10:40
wgrantI have.10:40
lifelessgood ;)10:40
wgrantBut it's 10pm on your Friday night, so you are not here.10:41
lifelessI am writing up a mail to the list even now10:41
lifelessI have a cat nestled in the crook of my legs, wife on the couch beside me and tv on10:41
wgrantSeeing KPI used in a technical document makes me cringe, but I will survive.10:41
=== al-maisan is now known as almaisan-away
LPCIBotProject windmill-devel build #145: STILL FAILING in 1 hr 9 min: https://lpci.wedontsleep.org/job/windmill-devel/145/10:46
jmlactually, still no food, and I have to run an errand.10:47
jmlback soon.10:47
=== jtv is now known as jtv-afk
jmlback11:23
=== jtv-afk is now known as jtv
adeuringis anybody aroubd with Twisted-fu? I'm trying to let the test-keyserver return a 500 error when a non-existing key is looked up. (That's what our real-life keyserver does, really)11:34
wgrantA 500?11:35
wgrantThat would be an SKS bug.11:35
adeuringUsing ErroPage() seems to work, but how can I test this?11:35
adeuringwgrant: yes, it is -- but should we fix this too?11:35
adeuringwgrant: just try http://keyserver.ubuntu.com:11371/pks/lookup?search=0x6F0DAED1&op=vindex11:36
adeuringwgrant: but anyway, even if it would return a 404: My question is: How can I test that our test keyserver returns a 404 or 500 or whatever other error?11:40
wgrantNobody has done anything significant to zeca in quite a while... I'm not sure if it's tested.11:41
* wgrant looks around.11:41
wgrantOh, the tests aren't too bad.11:42
wgrantadeuring: So you're not sure how to assert an HTTP error in test_web?11:42
adeuringwgrant: right11:43
adeuringwgrant: Returning ErrorPage(...) in web.py _seems_ to work, bt I'd like to test that properly...11:43
wgrantadeuring: I presume twisted.web.client.getPage calls the errback if an error occurs.11:45
wgrantYeah: "Download a page. Return a deferred, which will callback with a page (as a string) or errback with a description of the error."11:45
adeuringwgrant: I have no real clue about twisted... So I would have to add an error callback?11:45
wgrantadeuring: getPage returns a Deferred, to which you can addCallback and addErrback.11:46
wgrantadeuring: You'll see it currently uses addCallback to add an assertion.11:46
wgrantOn the success case.11:46
adeuringwgrant: ah, right! thanks!11:46
spivadeuring: twisted.trial.unittest.TestCase has an assertFailure method that may help: http://twistedmatrix.com/documents/current/api/twisted.trial.unittest._Assertions.html#failUnlessFailure11:52
adeuringspiv: thanks!11:52
spivadeuring: (despite the API doc link, the preferred name for that method is assertFailure not failUnlessFailure)11:53
spivadeuring: the basic trick to know is that trial's TestCase allow you to return a Deferred from your test method (and setUp etc), and the test will wait for the result/failure of that before completing.11:54
adeuringspiv: ok11:54
jmlspiv: actually, most of our Twisted tests don't use trial TestCase11:54
spivjml: *shudder*11:55
jmlspiv: no, it's actually awesome11:55
spivjml: awesome can make a person shudder too!11:55
jmlspiv: 'run_tests_with = AsynchronousDeferredRunTest'11:55
spivjml: the interface for test writers is approximately the same?11:55
jmlspiv: yeah. things like the assert you mentioned are free-floating functions11:56
jmlspiv: and it's more strict with reactor cleanup11:56
jml(and there's more helpers for debugging)11:56
jml(and you need to do less multiple inheritance)11:56
spivjml: \o/11:57
jmlspiv: http://readthedocs.org/docs/testtools/en/latest/for-test-authors.html#twisted-support11:57
* henninge lunches12:44
=== henninge is now known as henninge-lunch
=== henninge-lunch is now known as henninge
=== almaisan-away is now known as al-maisan
=== bac changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: adeuring, bac | Critical bugs:209 - 0:[######=_]:256
bachello adeuring.  busy today?13:26
adeuringbac: not really13:26
henningeHi! I have re-installed my laptop and used rocketfuel-setup to get my LP setup going again. I also had saved my homedir and copied it back to the new installation, so I may have mixed stuff.13:34
henningeNow make schema won't work, it breaks off like this: http://paste.ubuntu.com/613727/13:34
henningeThe last line is about "ident authentification failing for user henning"13:35
henningeWhat's missing?13:35
henningeWould rocketfuel-setup not create a user for my account?13:39
StevenKrf-setup does not run utilities/launchpad-database-setup13:39
henningeoh13:40
StevenKhenninge: "utilities/launchpad-database-setup $(whoami)"13:40
* henninge should have read that again13:40
henningeStevenK: thanks!13:40
=== salgado_ is now known as salgado
StevenKI may be wrong, the rf-setup code makes me sob.13:41
henningeno, it's coming back to me that we split that back when we open sourced because people did not like rf to mess with their database.13:42
StevenKWell, truth be told, rf-setup is not something to be run often13:42
henningeexactly13:42
=== Ursinha-afk is now known as Ursinha
henningemake schema is doing what it should now. ;-)13:43
henningenow henninge can run tests ...13:43
* StevenK high fives henninge 13:45
henninge;-)13:45
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
bachi sinzui, gary says you brought up bug 186660 to him recently as something we might look at soon.  it would possibly close several bugs but none are marked critical.14:13
_mup_Bug #186660: Launchpad shouldn't store wiki names <lp-registry> <users> <Launchpad itself:Triaged> < https://launchpad.net/bugs/186660 >14:13
sinzuibac: That is right. We have ignored the issue for many years. I was just noting that with the SSO change last year. We might be able to close all wikiname bugs except the one saying it should be removed14:14
jtvallenap: you've got a test here called test_requestUpgrade_is_efficient.  It seems to assert that the query count does not increase with the number of jobs it needs to create.  I'm not so sure Storm will let us do that.14:15
jtvbac: I've got an oversized and tedious MP here, and I have to leave.  But _if_ you have no problem with that, then I'd be grateful if you could review!  https://code.launchpad.net/~jtv/launchpad/db-bug-788956/+merge/6266914:24
bacjtv: you're a natural-born salesman14:24
jtvYuck.14:24
jtvI've done sales, but I'm only good at it if I believe in what I sell.14:24
bacwho could pass oversized, tedious, and unattended?14:24
jtvYou could if you wanted to!14:25
bacjtv: i'll have look in a bit14:25
jtvGreat, thanks14:25
jtvHave a good weekend, everyone!14:40
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
allenapgmb: Do I get extra karma for getting two [r=allenap]s into a commit message? ;)15:13
gmballenap: Sadly not :).15:14
gmbHahah. "Strongly suggest you use lp-land." I did and it added the extra tags. Unhelpful.15:15
sinzuijcsackett: so you have time to talk?15:16
jcsackettsinzui: sure. mumble or sip?15:16
sinzuisip?15:17
sinzuiWe miss connected15:18
jcsackettwe did. :-P15:18
LPCIBotProject windmill-db-devel build #330: STILL FAILING in 1 hr 12 min: https://lpci.wedontsleep.org/job/windmill-db-devel/330/15:42
=== al-maisan is now known as almaisan-away
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
abentleyadeuring or bac: could you please review https://code.launchpad.net/~abentley/launchpad/duplicate-msgid/+merge/62697 ?16:34
adeuringabentley: sure16:34
abentleyadeuring: thanks.16:34
=== matsubara_ is now known as matsubara
adeuringabentley: r=me16:53
abentleyadeuring: thanks.16:53
LPCIBotProject windmill-devel build #146: STILL FAILING in 1 hr 13 min: https://lpci.wedontsleep.org/job/windmill-devel/146/16:55
LPCIBotProject windmill-db-devel build #331: STILL FAILING in 1 hr 7 min: https://lpci.wedontsleep.org/job/windmill-db-devel/331/17:11
abentleybac: does OOPS-1963SMS24 make any sense to you?  It's apparently the cause of bug #784008.17:11
_mup_Bug #784008: problem when pushing fix for a fix-committed bug <branch-scanner> <oops> <Launchpad itself:Triaged> < https://launchpad.net/bugs/784008 >17:11
* bac looks17:12
gmbadeuring, bac : Could one of you take a look at https://code.launchpad.net/~gmb/launchpad/choose-affected-product-oops-bug-370117/+merge/62704 for me?17:17
bacgmb: i will17:17
gmbbac: Thankee17:17
bacabentley: the OOPS does not make sense to me b/c the code it references no longer exists.17:21
abentleybac: Thanks.  I guess the bug probably is fixed, too, but I'll poke at that later.17:22
bacabentley: i hope so...17:22
bacgmb: short, sweet, r=bac17:23
gmbbac: Ta.17:23
abentleybac: I have trouble seeing why the bug and the oops would be connected, so it's possible another issue was at play for the oops, and the bug still exists.17:24
=== salgado is now known as salgado-lunch
=== matsubara is now known as matsubara-lunch
=== adeuring changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: bac | Critical bugs:209 - 0:[######=_]:256
=== salgado-lunch is now known as salgado
nigelbHi, I just filed bug 789222, which I introduced with my "fixes"18:25
_mup_Bug #789222: Sprints and specification subscribers are really not alphabetically sorted <Launchpad itself:New> < https://launchpad.net/bugs/789222 >18:25
nigelbshould I be separating the sprints and specification into separate branches and bugs or together is fine?18:25
nigelbI know the fix for it and I'm working on it.18:25
jmlnigelb: if the branch gets too complex to think about or review, then you'll know you should have split it.18:29
jmlnigelb: but probably it's ok to do them together.18:29
nigelbjml: Its basically just a small change of one lines each, unless you insist on writing new test cases to catch that.18:29
=== matsubara-lunch is now known as matsubara
jmlnigelb: well, if you introduced a bug with your fixes, it shows that we don't have enough tests for this area18:30
jmlnigelb: so, yes I will insist :)18:30
nigelbjml: heh :D18:34
nigelbI knew you'd insist :D18:34
nigelbjml: I don't know if I want to touch the doctests for the specifications.18:34
jmlnigelb: give it a try at least.18:35
nigelbI'm tempted to just write new unit tests.18:36
nigelbWait, that's a trap. I'll end up writing a whole bunch of unit tests.  I take that back :p18:36
jmlnigelb: you'll need some kind of test. do which ever is easier for you.18:38
nigelbjml: :)18:38
nigelbSorry for this sort of mess I caused :)18:38
jmlnp.18:40
nigelbjml: When is the sprint in Dublin?18:42
nigelbI guess the pie on the face is less likely now :(18:43
jmlnigelb: June 27th: 1 month18:43
jmlnigelb: yes, quite unlikely.18:43
jmlnigelb: but still possible.18:43
nigelbheh18:44
* jml is off18:46
jmlg'night all18:46
jmlsee you in a bit over a week's time.18:46
nigelbouch, I messed up postgres :(18:48
nigelbapparently, at some point I accidentally uninstalled it18:48
nigelbI ran rocketful-setup again, but that didn't get the schema on there18:48
nigelbhow do I fix that?18:49
nigelbnvm, I think I fixed it.18:50
nigelbNo I didn't, sigh.19:06
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
LPCIBotProject windmill-db-devel build #332: STILL FAILING in 1 hr 8 min: https://lpci.wedontsleep.org/job/windmill-db-devel/332/19:50
flacosteanyone knows how to make a source package branch the official one?19:55
LPCIBotProject windmill-devel build #147: STILL FAILING in 1 hr 9 min: https://lpci.wedontsleep.org/job/windmill-devel/147/20:02
nigelbbac: I'm picking that task up. Just that I broke my local dev set up and trying to figure out if I have to reinstall the whole thing.20:17
flacostebug 34777020:18
_mup_Bug #347770: UI for making a branch an official package branch <lp-code> <package-branches> <ui> <Launchpad itself:Triaged> < https://launchpad.net/bugs/347770 >20:18
bacnigelb: great to hear, except for the borked machine20:18
nigelbNote to self: reinstalling rabbitmq was a bad idea.20:19
flacostejames_w: is there an existing tool that uses the API to set official package branches? (is it done as part of package-importer?) or should I write my own (i want to set official package branches on another distribution)20:19
james_wflacoste, there's set_official.py in lp:udd I think20:19
flacostejames_w: i'll have a look20:31
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== bac changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Critical bugs:209 - 0:[######=_]:256
LPCIBotProject windmill-db-devel build #333: STILL FAILING in 1 hr 7 min: https://lpci.wedontsleep.org/job/windmill-db-devel/333/21:09
pooliehas anyone seen this error from ec2:21:15
poolieAttributeError: 'Entry' object has no attribute 'queue_status'21:15
pooliewhat a silly error too21:15
abentleypoolie: it sounds like ec2 was expecting a merge proposal but got something else.21:37
poolieyes21:39
pooliei gave it a branch21:40
poolieperhaps i'll shave that restfulclient yak21:40
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
LPCIBotProject windmill-devel build #148: STILL FAILING in 46 min: https://lpci.wedontsleep.org/job/windmill-devel/148/22:17
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
nigelbanyone around to review a branch?22:25
nigelbpoolie: You around?22:26
nigelbI'm headed to bed. If someone can review https://code.launchpad.net/~nigelbabu/launchpad/789222-sort-fix/+merge/62739 that'd be awesome :)22:27
=== Ursinha is now known as Ursinha-afk
pooliehi nigelb22:40
=== matsubara is now known as matsubara-afk
pooliereplied22:57
LPCIBotProject windmill-db-devel build #334: STILL FAILING in 43 min: https://lpci.wedontsleep.org/job/windmill-db-devel/334/23:00
lifeless*stretch*23:06
pooliehi there23:06
lifelessflacoste: there is an API call I believe. No web UI atm.23:06
flacostelifeless: yep23:09
lifelessI see the futher discussion now ;)23:09
poolielifeless: if you're in lp mode, can you tell me if there's a better way to write https://code.launchpad.net/~nigelbabu/launchpad/789222-sort-fix/+merge/6273923:23
poolietx23:27
lifelessno probs23:28

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