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

tomwardillTotal: 56 tests, 1 failures, 49 errors, 0 skipped in 1 minutes 48.597 seconds.10:05
tomwardillthat went... well10:05
SpecialK|Canonbut 6 succeeded right?10:14
SpecialK|Canongotta celebrate the wins10:14
SpecialK|Canon`def test_foo(): pass`10:14
SpecialK|CanonI had a colleague who used to do that actually - said he liked knowing that however much he'd broken stuff, at least something went right10:15
tomwardillI've been known to break tests like that10:15
tomwardillif you sufficiently mangle the test setup, there's no guarantee even that will work10:16
SpecialK|CanonOh absolutely10:16
SpecialK|CanonIt's not invulnerable, but it's a nice baseline10:17
tomwardilllp.services.scripts.base.SilentLaunchpadScriptFailure: 110:17
tomwardillnow, how can that just ... not be silent?10:17
* tomwardill breaks out pdb10:17
cjwatsonYeah, garbo likes to do that10:18
cjwatsonGood opportunity to make your test add logger output as a test detail10:19
cjwatson(Though TestGarbo.setUp is supposed to do that ...)10:20
=== SpecialK|Canon changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | Firefighting: - | Critical bugs: <98 | Support and spam reporting: https://answers.launchpad.net/launchpad
tomwardillcjwatson: does using <allow> in a configure.zcml allow write?14:51
tomwardillgetting a ForbiddenAttribute trying to set an attribute on OCIFile14:52
pappacenamaybe you need a <require> with set_schema?14:55
tomwardillyeah,t hat's what I was wondering14:55
tomwardilljust slightly surprising that an explicit <allow> doesn't... allow14:56
tomwardillwhich makes me think I've got something else wrong somewhere14:56
cjwatsontomwardill: <allow> is only for gets, not sets15:02
cjwatsonAs pappacena says, you need <require set_attribute=> or <require set_schema=> for sets15:03
cjwatsonHonestly I think removeSecurityProxy makes more sense than completely open set permissions15:04
tomwardillhmm, yeah, that would work15:04
* tomwardill does that15:04
cjwatsonOK, I think my buildmaster tests all pass again.  Next step is to make them make sense15:06
* tomwardill knows that feeling15:07
tomwardillthought i was done,t hen ran some more tests15:07
tomwardillSURPRISE NOPE!15:07
tomwardillmock_oci_datetime.noew = lambda: now15:13
tomwardillwell, found a bug15:13
pappacenamock_oci_datetime.meow = lambda: cat15:14
tomwardillhah15:14
tomwardillthere's a matching DB patch for this, but could do with someone checking I've not missed anything/done something silly in: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38412115:40
tomwardillgarbage collection for OCIFile15:40
SpecialK|Canonsilly q - why did you move IOCIFS?15:43
tomwardillso it was in a more appropriate place in the file (next to IOCIFile)15:44
tomwardillas I had a 'I know I wrote this,w here the heck is the code' moment15:44
tomwardill(blame past tom for putting it in a weird place to start with)15:44
cjwatsonI don't see anything obviously wrong at a first skim-read, but my head is mostly full of buildd-manager at the moment so I'll give it a proper look later.  Other people should feel free to review too15:58
tomwardill"delivery area not accessible, follow up instructions on the way" no piano today then :(16:00
SpecialK|Canontomwardill: do these tests share state?16:12
SpecialK|Canon...I guess yes, shared testdb across tests16:12
SpecialK|Canonno, I just can't count, ignore me16:12
tomwardillSpecialK|Canon: no, the db is rolled back16:12
tomwardilljaj16:12
tomwardill*hah16:12
tomwardillmatching DB patch: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38412916:16
cjwatsonRight, we roll back the db between every build, either by transaction.abort() if there've been no commits, or by restoring a fresh DB from a template16:16
cjwatson*between every test16:16
cjwatsonAnd attack any case of state sharing between tests with fire16:17
SpecialK|Canonnod, cheers, I've now regained my ability to count/read and noticed the second makeOCIFile call...16:17
cjwatsonSpecialK|Canon: https://code.launchpad.net/~cjwatson/launchpad-buildd/+git/launchpad-buildd/+merge/38414019:30
cjwatsonVery rough, but gets it out of my head19:31
pappacena{"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","detail":{}}]}20:13
pappacenaThanks for such detailed message, DockerHub. That helped a lot... :unamused:20:13
pappacenahttps://hub.docker.com/repository/docker/pappacena/test-image 🎉21:54
pappacenaIt kind of worked! :-)21:54
pappacenahttps://usercontent.irccloud-cdn.com/file/OBSogPP9/its-something.png21:55

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