diff options
author | Zuul <zuul@review.opendev.org> | 2022-06-01 21:28:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-06-01 21:28:53 +0000 |
commit | 6cb2692101b88fe8e67874f93d54625f75b843a5 (patch) | |
tree | 48c672372cc7d24bd445bd43b1d31214444fb889 /releasenotes | |
parent | 7842e3fcf10e116ca47cfffbd82022802b53432d (diff) | |
parent | 3ffbf10f250788ecff5c0ade3030a275eca54481 (diff) | |
download | zuul-6cb2692101b88fe8e67874f93d54625f75b843a5.tar.gz |
Merge "Add prune-database command"
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/prune-database-eca38464b9606254.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/releasenotes/notes/prune-database-eca38464b9606254.yaml b/releasenotes/notes/prune-database-eca38464b9606254.yaml new file mode 100644 index 000000000..85322c185 --- /dev/null +++ b/releasenotes/notes/prune-database-eca38464b9606254.yaml @@ -0,0 +1,21 @@ +--- +features: + - | + A new command, ``prune-database`` has been added to `zuul-admin` + in order to remove database entries older than a certain age. +upgrade: + - | + A SQL schema migration is added in order to add an ``updated`` + column to the buildset table which will be used by the + `prune-database` command to determine which buildsets to delete. + The migration will attempt to use the most recent timestamp + associated with the buildset when initializing this column, + however, if no timestamps are available, it will initialize it to + 1970-01-01. Since this is considerably before Zuul's birthdate, + this means that any buildsets without timestamp information will + be pruned the first time `prune-database` is run. It is expected + that buildsets with no timestamps, even very recent ones, are + typically uninteresting and therefore this should not cause a + hardship. If this is not the case for your installation, you may + want to inspect the database and change the ``updated`` column to + a more recent value in these cases. |