/srv/irclogs.ubuntu.com/2018/09/04/#launchpad.txt

=== JanC_ is now known as JanC
pieqHello! I was trying to use the staging Launchpad instance to test something, but it looks like it's offline. Is it normal?03:53
pieqwgrant, ^ ?03:53
wgrantpieq: something must have gone wrong with the update over the weekend. I'm afk atm but will fix it when I'm back03:56
pieqwgrant, no worries, no hurries :) Thanks for the feedback!03:56
=== chihchun_afk is now known as chihchun
pieqStill no love for staging launchpad? :)06:59
wgrantpieq: Looks like it'll be at least 24 hours. The DB takes a while to restore.07:02
wgrantpieq: Can you use qastaging instead?07:02
pieqwgrant, I'm testing a script that publishes things on launchpad, and to test on the staging instance I use `$ APPORT_STAGING=1 my-script`. Is it possible to use qastaging the same way?07:04
wgrantpieq: Published what sort of things?07:04
pieqbug reports07:04
wgrantpieq: That will work fine on qastaging, but I don't know if apport has a built-in environment variable for it.07:04
wgrant - launchpad.py: Change $APPORT_STAGING to $APPORT_LAUNCHPAD_INSTANCE, so that07:05
wgrantSo APPORT_LAUNCHPAD_INSTANCE=qastaging will probably work07:05
pieqwgrant, I will check if this works, thanks!07:05
pieqwgrant, hm... but in my script I use launchpadlib's EDGE_SERVICE_ROOT (for production instance) or STAGING_SERVICE_ROOT (for staging). I don't see another option for QA staging07:08
wgrantpieq: You can just use 'production', 'staging' or 'qastaging' in place of those constants, usually.07:13
wgrant(edge hasn't been a thing for about six years)07:13
pieqwgrant, EDGE_SERVICE_ROOT = 'https://api.edge.launchpad.net/'07:14
pieqSTAGING_SERVICE_ROOT = 'https://api.staging.launchpad.net/'07:14
pieqwgrant, so for production I should just use 'https://api.launchpad.net/' and for qastaging 'https://api.qastaging.launchpad.net/'?07:15
wgrantpieq: That's right, but with a post-2011ish launchpadlib you can usually just use the name rather than the full URL.07:15
wgrant'production', 'staging' or 'qastaging'07:15
pieqwgrant, oh great07:15
pieqlet me travel in time, back to 2018 then! :D07:16
wgrantA good plan07:17
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk

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