/srv/irclogs.ubuntu.com/2020/04/16/#launchpad-dev.txt

=== lifeless_ is now known as liffeless
=== liffeless is now known as lifeless
* tomwardill gets lost in a maze of webhooks10:31
tomwardillsome of these are alike, but not all10:31
cjwatsonOh it would probably help if the lp-signing charm ran DB migrations, such as the one to create the DB10:42
cjwatsonHowever I was about to want to change a bit of the schema anyway ...10:42
cjwatsonQuite convenient10:42
tomwardillhahaha10:42
tomwardillRan 1 tests with 0 failures, 0 errors, 0 skipped in 1.176 seconds.10:43
tomwardilla working lifecycle, notify and webhook test!10:43
cjwatsonfor recipes?10:44
tomwardillregistry upload job10:45
tomwardillwith the ObjectModifiedEvent and _do_lifecycle changes you suggested10:45
cjwatsonAh right, was just wondering how you were managing to test webhooks10:49
cjwatsonGiven that we don't have OCI recipe webhooks yet10:49
tomwardillwe do for OCIRecipeBuild10:50
tomwardillwhich is enough here10:50
cjwatsonOh, so we do, ignore me10:52
cjwatsonCompletely forgot even doing that myself10:52
tomwardillhah :)10:53
cjwatsonTop programming tip: base64.b64encode != base64.b64decode10:53
tomwardilldone the same thing, many times :)10:54
tomwardilli find those really hard to read/parse10:54
cjwatsonhttps://code.launchpad.net/~cjwatson/lp-signing/+git/lp-signing/+merge/382413   in which Colin cheats at databases11:01
tomwardillerrr... https://pastebin.canonical.com/p/KNRZm3Qwvj/12:19
cjwatsonA single recipe might have multiple registry upload jobs, no?12:25
cjwatsonA single recipe build, even12:25
tomwardillcjwatson: it can, but it definitely does not in this case (the raising code is: self.assertContentEqual([job], ocibuild.registry_upload_jobs) )12:26
cjwatsonHopefully pdb will enlighten12:28
tomwardillyeah, turned out to be an error elsewhere12:29
tomwardillironically it was failing in the _run_fails test12:30
tomwardillbut not in a way I wanted12:30
tomwardillcjwatson: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/381981 is ready again12:45
cjwatsonThanks, will look12:47
tomwardillstarting to feel a lot more complete now the lifecycle stuff is hooked up12:48
tomwardillbut there is still plenty missing, I'm sure.12:48
tomwardillit occurs to me that might need a rebase13:18
* tomwardill does that13:18
tomwardill(first, tea)13:18
tomwardillit does, it needs teh getFileByName changes13:23
* tomwardill does them13:23
tomwardill(now, with tea)13:23
cjwatsonilasc: One remaining comment on https://code.launchpad.net/~ilasc/turnip/+git/turnip/+merge/377045; after that I think it can land, since the LP side is on production13:29
ilasccool, thanks Colin13:30
tomwardillbranch rebased13:40
tomwardillcjwatson: if my local instance is generating OOPS (from running a job), is there any way I can see them?16:11
cjwatsontomwardill: See if they're in /var/tmp/lperr16:15
cjwatsontomwardill: If they aren't, try setting error_exchange: none in [error_reports] in the config16:15
cjwatsontomwardill: If all else fails, grit your teeth and strace, but it shouldn't normally be needed16:16
tomwardill{"repositories":["busybox","pjdc/registry-2","registry","test-wget-image","twom/base_with_curl","twom-test/test-wget-image"]}16:22
tomwardilland that's an image on staging rocks16:22
tomwardill(multiple times in fact, because tomwardill is an idiot sometimes)16:22
tomwardillcjwatson: getting "amqp.exceptions.AccessRefused: Exchange.declare: (403) ACCESS_REFUSED - operation not permitted on the default exchange" running tests, any ideas?16:39
cjwatsontomwardill: which TestCase class are you using?16:40
tomwardillit's happening to tests that worked perfectly well a couple of hours a go (including most of the existing oci tests)16:41
cjwatsonUm.  Bounce rabbitmq-server in your container maybe?16:41
cjwatsonCheck for stray processes?16:41
tomwardillI just restarted the whole container16:41
tomwardillthis is a bit weird16:41
cjwatsonOr that16:41
cjwatsonI'm not very good at administering rabbit; I tend to just nuke it from orbit if it gets weird16:42
tomwardillI've tried a complete reboot and a `sudo pkill -f rabbit`, still got the same problem16:42
cjwatson(The reason I ask about TestCase is stuff like https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/376996)16:43
cjwatsonOh also did you perhaps leave error_exchange: none in your config?16:44
tomwardilloooh16:44
tomwardillthat'd do it16:44
cjwatsonIt's a bit of a pain.  I assume it would be possible to handle some other way by running bits of python-oops-amqp or something ...16:45
tomwardillyep, that'd do it16:45
tomwardillworking now16:45
tomwardillta16:45
cjwatsonI usually just try to reproduce in the test suite instead because then CaptureOops takes care of it16:45
tomwardillwell, the tests are broken, but broken in a way that I now understand16:45
* cjwatson tries to get through another review before EOD16:47
tomwardillas much as I like mock, it's not the easiest thing int he world to assert against it's call arguments17:00
cjwatsonYeah, almost all of those things involve digging through stacks of tuples17:03
tomwardillfollow on MP that adds auth handling to registry push: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38243917:12
tomwardillexcept that security.cfg change should be in the prerequisite17:17
* tomwardill moves it17:17
tomwardillexcept, no it probably doesn't need to exist, it's due to the subscriber bug :)17:28
tomwardillokay, fixes made and branch pushed17:43
* tomwardill calls that EOD17:45

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