~andersson123/autopkgtest-cloud:backup-worker-logs

Last commit made on 2024-04-10
Get this branch:
git clone -b backup-worker-logs 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:
backup-worker-logs
Repository:
lp:~andersson123/autopkgtest-cloud

Recent commits

7c31918... by Tim Andersson

feat: cloud-worker: Add service and timer for store-worker-logs

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

feat: autopkgtest-cloud-worker: add script for storing worker logs

This script gets the journal from the last 6 hours for each datacentre
and architecture combination then places them in swift storage so we
have historical logs. It also then checks the storage for logs older
than 180 days, and removes those logs from the storage.

1c35b9a... by Tim Andersson

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

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
4bd32b5... by Tim Andersson

Merge remote-tracking branch 'andersson123/worker-re-enable-retries'