summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-06-01 21:28:53 +0000
committerGerrit Code Review <review@openstack.org>2022-06-01 21:28:53 +0000
commit6cb2692101b88fe8e67874f93d54625f75b843a5 (patch)
tree48c672372cc7d24bd445bd43b1d31214444fb889 /releasenotes
parent7842e3fcf10e116ca47cfffbd82022802b53432d (diff)
parent3ffbf10f250788ecff5c0ade3030a275eca54481 (diff)
downloadzuul-6cb2692101b88fe8e67874f93d54625f75b843a5.tar.gz
Merge "Add prune-database command"
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/prune-database-eca38464b9606254.yaml21
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.