Merge autopkgtest-cloud:remove-eol-series into autopkgtest-cloud:master

Proposed by Brian Murray
Status: Merged
Merged at revision: 22e92e80220ba20b1995dae22cf54598b32a71ed
Proposed branch: autopkgtest-cloud:remove-eol-series
Merge into: autopkgtest-cloud:master
Diff against target: 29 lines (+19/-0)
1 file modified
docs/administration.rst (+19/-0)
Reviewer Review Type Date Requested Status
Paride Legovini Approve
Ubuntu Release Team Pending
Review via email: mp+435772@code.launchpad.net

Description of the change

The steps from removing end of life releases from the autopkgtst.db were not documented so I added the process I followed to remove hirsute and impish.

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

LGTM, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/docs/administration.rst b/docs/administration.rst
2index 47b4e02..101affa 100644
3--- a/docs/administration.rst
4+++ b/docs/administration.rst
5@@ -175,6 +175,25 @@ being copied forward (``seed-new-release``) or devel results existing
6 * Check `/running <https://autopkgtest.ubuntu.com/running/>`_ lists the new
7 release, and check some package pages too.
8
9+Removing an End of Life series
10+------------------------------
11+
12+You’ll first want to stop the apache2 service so that browsing results will not
13+fail while the database is being modified. Then there are two jobs which use
14+the autopkgtest.db which will also need disabling. The ``download-results``
15+service is constantly using the ``~/autopkgtest.db`` and will need to be
16+stopped. The ``publish-db`` service which updates ``~/public/autopkgtest.db``
17+is run minutely and will either need to be changed to hourly or ``chmod -x
18+/home/ubuntu/webcontrol/publish-db`` to stop it from running.
19+
20+Once those steps are done then the rows can be deleted from the database.
21+
22+* ``sqlite3 -header -column autopkgtest.db "DELETE FROM current_version WHERE release='impish';"``
23+* ``sqlite3 -header -column autopkgtest.db "DELETE FROM result WHERE result.test_id IN (SELECT test.id FROM test WHERE test.release='impish');"``
24+* ``sqlite3 -header -column autopkgtest.db "DELETE FROM test WHERE test.release='impish';"``
25+* ``sqlite3 -header -column autopkgtest.db "vacuum;"``
26+
27+
28 Integration with GitHub and GitLab pull/merge requests
29 ------------------------------------------------------
30

Subscribers

People subscribed via source and target branches