~cjwatson/launchpad-layers:errors-layer

Last commit made on 2023-04-28
Get this branch:
git clone -b errors-layer https://git.launchpad.net/~cjwatson/launchpad-layers
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
errors-layer
Repository:
lp:~cjwatson/launchpad-layers

Recent commits

64a81a6... by Colin Watson

WIP

Failed
[FAILED] lint:0 (build)
11 of 1 result
dd01ba1... by Colin Watson

Move crontab handling to payload layer

It's useful for nearly any Launchpad deployment, and doesn't have
onerous dependencies.

c0bbf6f... by Colin Watson

Move LAZR config file handling to payload layer

It's useful for nearly any Launchpad deployment, and doesn't have
onerous dependencies.

1aa9997... by Colin Watson

Add charms.launchpad.payload.get_payload_config

This is useful in both the prospective `launchpad-assets` and
`launchpad-loggerhead` charms, so let's have it in common code for
charms that don't need database integration.

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
6e56e75... by Colin Watson

Move part of launchpad-base into a new launchpad-payload layer

Some charms - at least the prospective `launchpad-assets`, which
publishes CSS/JS etc. assets for use by frontends - only really need an
unpacked Launchpad payload, and don't need the rest of `launchpad-base`.
Extract that part into a separate layer.

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
55af52f... by Colin Watson

Avoid deprecated reactive functions

`set_state` and `remove_state` were deprecated in charms.reactive 0.5.0;
see https://charmsreactive.readthedocs.io/en/latest/changelog.html.

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
6a50917... by Colin Watson

Configure outbound email if send_email is true

Most of Launchpad's email is sent using immediate delivery, which uses
`smtplib` directly; but some, such as email sent by garbo jobs, instead
queues it up until the end of the transaction. The latter mode wasn't
configured properly on production, so outgoing email ended up in a
default "stub" mailer which sent everything to root@localhost. Add
configuration to send queued production email to localhost:25 as well.

Individual charms must call `configure_email` to install
`mail-configure.zcml` in the appropriate configuration directory, or
remove it if `send_email` is false.

LP: #2017136

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
81c2d5b... by Colin Watson

Add trailing slash to supermirror_root

`lp.code.browser.branchref.BranchRefNavigation.traverse_branch` expects
a trailing slash here, and generates broken URLs if it doesn't get one.

LP: #2017026

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
7a9f543... by Colin Watson

.launchpad.yaml: Update snap property syntax

The list-of-names format is now deprecated.

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result
0311e05... by Colin Watson

Clear configured states on DB relation changes

Otherwise we don't notice if (for example) the relation tells us that a
DB password has changed, or if the relation is broken.

Succeeded
[SUCCEEDED] lint:0 (build)
11 of 1 result