/srv/irclogs.ubuntu.com/2020/05/07/#launchpad.txt

Peng_Is there some kind of historical data where you can see what package versions a PPA had in mid to late 2016? :D00:36
Peng_I'm not looking for debs, just information00:36
sarnolda wild Peng_ appears00:39
sarnoldPeng_: if you can get to "view package details", then "view all builds", you can find a list of previous things00:40
sarnoldPeng_: the ppa I'm most familiar with has builds from 2008 listed00:40
Peng_Ahh!00:44
Peng_The PPA I was looking at had two builds under "view all builds". I just found that they use a second PPA for building and then copy the packages.00:46
Peng_That PPA has all the history, though it only goes back to 2016-11. Maybe they had a secret third PPA.00:46
Peng_Thank you!00:46
sarnoldPeng_: aha :) interesting method, hehe00:48
cjwatsonteward: https://dev.launchpad.net/Getting08:00
cjwatsonBug notification handling is done in lib/lp/bugs/mail/bugnotificationbuilder.py, though quite a lot of grepping around will be necessary08:01
cjwatson(Ideally bug notifications would be converted to the general framework in lib/lp/services/mail/basemailer.py)08:02
cjwatsonLord-Kamina: Well ... I can't say I'm very impressed with dput-ng.  I could reproduce the problem you described, but only if my SSH private key has a passphrase set.08:58
cjwatsonLord-Kamina: I don't know why this would have changed at your end though.  It seems to be entirely a client-side bug.08:59
wgrantWhat benefits does dput-ng provide over dput?08:59
wgrantBesides bugs08:59
cjwatsonLord-Kamina: If you want to check whether it's the same problem, then try applying https://paste.ubuntu.com/p/R67VTysypr/ to /usr/lib/python2.7/dist-packages/dput/uploaders/sftp.py09:00
cjwatsonFor me it said "PasswordRequiredException: Private key file is encrypted"09:01
cjwatsonYeah, I can't answer as to its benefits09:03
cjwatsonBut its SFTP implementation is clearly broken and shouldn't be used unless fixed quite a bit (at least passphrase support)09:05
cjwatsonMaybe its FTP implementation works.  I haven't tried09:05
cjwatsonThere are various bug reports on https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=dput-ng concerning the sftp uploader - not sure any of them are specifically this09:06
seb128hey there, launchpad translations question10:13
seb128https://translations.launchpad.net/ubuntu/focal/+source/libpeas is a bit in a buggy state10:14
seb128the upstream template is 'libpeas-1.0' but launchpad still has 'libpeas' , is there a way to delete one of those?10:15
seb128ideally I would like to delete libpeas-1.0 and rename libpeas to libpeas-1.0 since the old 'libpeas' is what is correctly translated10:15
Lord-Kaminawgrant Honestly I don't know. I expect most likely the guide I read a few years ago used dput-ng because reasons and maybe at some point it was in fact better than regular dput. *shrugs*14:34
tewardcjwatson: then I assume basemailer.py also needs some dmarc love/attention?14:51
teward(grepping isn't new to me thanks to some larger and much worse in-house python stuff I've been rewriting lol)14:52
cjwatsonteward: The whole thing will, but each individual mail handler is likely to need individual thought and attention for how people interact with it and what the right way to substitute From is14:55
cjwatsonteward: But we can generally do things one at a time14:55
tewardmakes sense.14:55
tewardbug mailer shouldn't be too hard.14:55
tewardthough Reply-To is sometimes not respected by endpoint mail clients in rare cases (read: MS Outlook/Exchange in rare cases)14:56
cjwatsonI'm also interested in making sure that the conversations still look sensible in people's mail clients14:56
cjwatsonSince it's still real people at the other end, not just impersonal notifications from the bug tracker14:57
tewardcjwatson: that's where it gets... tricky.  The way we handled this in-house was to alter the "From" field's display name by sender and have the sane recipient address underneath the hood.  I.E. for a listserv named "Test123" with test123@example.com the From field became "'Thomas Ward via Test123' <test123@example.com>" (obviously using the format function I'm just writing this out by hand because reasons)14:59
tewardthe display name changes14:59
tewardbut the underlying address doesn't14:59
tewardDMARC is a PITA though if you REALLY want to make listservs compliant14:59
tewardor other kind of relay-mailers, etc.14:59
tewardit LOOKS like get_bugmail_from_address is what'd need revised here for DMARC compat, but that's an all-or-nothing change :/15:00
teward... but would eliminate the Bjorn oddball handling case15:01
tewardthat'd get murky fast.15:01
tewardcjwatson: I think the overarching question is: how critical / important does DMARC compatibility for email notifications, etc. rank on the scale of "Things that Should Get Done"15:01
teward*loads the LP repo up in Pycharm for reasons*15:03
tewardalso, what version of Python are you guys using to drive LP?15:04
teward(necessary so I create the right local venv)15:05
tomwardillteward: If you've used rocketfuel (from https://dev.launchpad.net/Running ), then just doing 'make' should do you. https://dev.launchpad.net/Running/LXD is also useful as rocketfuel will install system things15:06
tomwardill(otherwise, python 2.7)15:06
tewardtomwardill: not looking to run :P15:06
tomwardillspecifically on xenial, although it may work on other versions15:07
tewardtomwardill: looking for devcompat15:07
teward'cause I Py3 everything xD15:07
tewardso if i need to compat for 2.7 i'll compat for 2.7 :P15:07
tomwardillfair enough15:07
cjwatsonteward: I don't know15:09
cjwatsonWe should improve from where we are now :)15:09
cjwatsonteward: And you definitely want to use https://dev.launchpad.net/Running/LXD rather than just a straight virtualenv15:10
tewardcjwatson: correct, but the venv is so I can isntall things so PyCharm can resolve depends15:10
tewardnot *running* the thing15:10
teward;)15:10
cjwatsonteward: Even if only running the tests15:10
tewardjust want it to stop throwing RED everywhere while I type :)15:10
tewardi'll do a runtest later15:10
tewardin the Normal Way15:10
teward:)15:10
cjwatsonteward: I believe there are ways to get pycharm to look into a container15:10
tewardcjwatson: but i found where the call to get_bugmail_from_address (and the actual mail constructor happens) - lib/lp/bugs/scripts/bugnotification.py->construct_email_notifications which in turn calls get_bugmail_from_address from bugnotificationbuilder.py15:11
cjwatsonSure, sounds broadly plausible15:11
tewardso your builder isn't actually building the message xD15:12
cjwatsonBug notifications are unnecessarily complicated and I'm sure there are several quirks15:12
tewardyeah this is one of them, but i know where the from constructor needs adjusted now at least15:12
cjwatsonNotice that get_bugmail_from_address does already produce somewhat more dmarc-friendly From headers in some cases15:13
tewardcjwatson: correct.  but if we condense all the cases together, we have a few edge cases where there won't be DMARC-friendly15:14
tewardbasically, anywhere where we pull a non-lp address into the From header breaks DMARC15:14
cjwatsonWhat are the edge cases where that would still need to happen?15:14
tewardnone15:14
tewardbut there's special handling for janitor15:14
cjwatsonThe special handling for janitor just sends as Launchpad Bug Tracker <12345@bugs.launchpad.net>, so I don't quite understand15:15
tewardyeah for its from constructor it needs a special display name15:16
cjwatsonI think we should at least consider starting with just applying the behaviour in the hide_email_addresses case across the board15:16
tewardthat's what would happen15:16
tewardgive me a sec and I'll share my diff15:16
cjwatsonI expect quite a lot of test suite fallout too of course15:17
tewardindeed.  but i haven't touched tests yet.  https://paste.ubuntu.com/p/36gW2R6ZtX/ is the theoretical code reduction that'd happen15:18
tewardtaking out MOST of the returns and the handling cases and dropping simply to handling displayname in an if/else and then just a single return15:18
tewardthat SHOULD handle all the cases for bug notification emails but again, E:UNTESTED right now15:18
cjwatsonRight, that was broadly what I was thinking, indeed15:18
tewardit drastically reduces the size of the constructor though15:18
tewardat least, for the From header15:19
tewardand i'll run some tests locally15:19
tewardbut first15:19
tewardCoffee and Food15:19
tewardE:REQUIREDITEMS15:19
cjwatsonSince it already works for people who hide email addresses, which is lots, it presumably can't go that badly wrong15:19
teward*true*.  I haven't even dug yet into the tests lol.  Going to do the Tried and True method of "JFDI" in the test env without running tests yet.15:20
tewardi'll clean tests later xD15:20
tewardbut again, food and coffee.15:20
tewardi'm surprised i'm even awake right now without those :P15:21
cjwatsonteward: As for py3, we'd like to get there too and there's a fair bit of work in progress, but as you can see there's a lot of code15:22
cjwatson"bin/with-xvfb bin/test -vvct lp.bugs" should (a) take a while (b) be enough to find most of the test fallout15:22
tewardtruth.  I'd try a Py3 conversion but i don't have the cycles to do a full conversion, so I'm targeting the DMARC stuff here xD  once you go to Py 3.7+ though you can take most of those "%s" formatted strings, etc. and use f-strings which are *a lot* nicer.15:23
cjwatsonI haven't persuaded all my colleagues of the niceness of f-strings yet.  (3.6 has them too)15:23
teward(also kiiiiinda helps that I've had to rewrite three in-house listserv platforms using my dmarcmsg library on PyPI for those listservs xD)15:23
cjwatsonhttps://git.launchpad.net/~cjwatson/launchpad/log/?h=py3 is my extremely messy semi-port15:24
cjwatsonBeen working on that on and off since late last year15:24
tewardindeed.15:24
cjwatson(Well, and longer if you count dependencies)15:25
tewardcjwatson: remind me because E:NotFullyVersed but how do I just push this to my own code section where I can actually commit?  I remember the evil BZR way not sure if it's straightforward for LPGIT15:25
teward(currently versed in Salsa, Gitlab, and standard Git/Gitea atm :P)15:25
teward(i.e. my own branch)15:25
tewardOH GOOD THE COFFEE IS DONE15:25
cjwatsonhttps://help.launchpad.net/Code/Git#Configuring_Git and then "git remote add teward lp:~teward/launchpad; git push -u teward yourbranchname"15:26
cjwatson(also, #launchpad-dev maybe)15:26
tewardyep moving there15:26
cjwatsonteward: I am probably also obliged to point out https://dev.launchpad.net/ContributorAgreement before you go much further15:28
cjwatson(sorry, but you know how it is ...)15:29

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