~andersson123/autopkgtest-cloud:service-message

Last commit made on 2024-04-11
Get this branch:
git clone -b service-message https://git.launchpad.net/~andersson123/autopkgtest-cloud
Only Tim Andersson can upload to this branch. If you are Tim Andersson please log in for upload directions.

Branch merges

Branch information

Name:
service-message
Repository:
lp:~andersson123/autopkgtest-cloud

Recent commits

b0c139c... by Tim Andersson

feat: web: add the possibility of displaying a service message with juju config

This commit adds the possibility of displaying a short service message
at the top of all pages.

This is useful in situations where there's an issue/recent bug that'll
affect all users.

To add a service message, use:

juju config autopkgtest-web important-service-message "my message".

The message is displayed with black text on a yellow background.

Displaying the service message requires a restart to apache2.

Failed
[FAILED] pre_commit:0 (build)
[WAITING] unit_tests:0 (build)
[WAITING] build_charms:0 (build)
13 of 3 results
d5bbd72... by Tim Andersson

Merge remote-tracking branch 'andersson123/lxd-cleanup-srv-files'

1c35b9a... by Tim Andersson

Merge remote-tracking branch 'andersson123/amend-inserts-paramstyle-named'

4f27e7e... by Tim Andersson

autopkgtest-cloud-worker: fix: remove old service files for lxd units

Whenever we introduce a new lxd remote and remove an old one, the
systemd services for that specific remote are still leftover. This MP
fixes that, and should make debugging armhf problems a bit easier.

Succeeded
[SUCCEEDED] pre_commit:0 (build)
[SUCCEEDED] unit_tests:0 (build)
[SUCCEEDED] build_charms:0 (build)
13 of 3 results
a5f2474... by Skia

Merge branch 'skia/really_clean_workdir'

https://code.launchpad.net/~hyask/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/463993

d8bceef... by Skia

fix: worker: ignore errors when deleting folders

Sometime on production, the removal of folders end up with the following kind of errors:
```
[Errno 39] Directory not empty: 'tests-tree'
```
or
```
[Errno 2] No such file or directory: 'rifle.json'
```
This makes sure really clean those folder, whatever happens.

b2b9d6f... by Tim Andersson

fix: web: use sqlite3.paramstyled = "named" where necessary

This commit makes other db write operations use the named paramstyle for
sqlite, rather than the default, which is qmark.

This just makes DB inserts a bit cleaner, rather than passing a tuple,
using named parameters is much safer, and adds the bonus of being able
to pass dictionaries to DB inserts.

To quote waveform, the named paramstyle is the "One True Paramstyle"!

https://peps.python.org/pep-0249/#paramstyle

Succeeded
[SUCCEEDED] pre_commit:0 (build)
[SUCCEEDED] unit_tests:0 (build)
[SUCCEEDED] build_charms:0 (build)
13 of 3 results
ed0de87... by Tim Andersson

fix: web: fix file permissions of .config folder

prior to this only the root user had read and write access to this
directory, which is obviously less than ideal. This is due to some
inherent behaviour of pathlib, see [1]. Because of this behaviour, the
.config directory had these permissions, but the
.config/autopkgtest-web/ directory had correct permissions.

This commit also explicitly sets the permissions for the directories,
just as an added way of ensuring these directories will have the correct
permissions.

[1] https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir

Succeeded
[SUCCEEDED] pre_commit:0 (build)
[SUCCEEDED] unit_tests:0 (build)
[SUCCEEDED] build_charms:0 (build)
13 of 3 results
1eb18a9... by Tim Andersson

Merge remote-tracking branch 'andersson123/preserve-a-p-in-queued-tests'

ecad88b... by Tim Andersson

fix: generate-charm-inventory: ignore all merge commits

Succeeded
[SUCCEEDED] pre_commit:0 (build)
[SUCCEEDED] unit_tests:0 (build)
[SUCCEEDED] build_charms:0 (build)
13 of 3 results