From c5d6af699325bc23c20deb36943254f1ee778262 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 5 Oct 2020 12:33:55 -0400 Subject: [PATCH] ceph-pr-api: Clean dpkg db on job abort Signed-off-by: David Galloway --- ceph-pr-api/config/definitions/ceph-pr-api.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ceph-pr-api/config/definitions/ceph-pr-api.yml b/ceph-pr-api/config/definitions/ceph-pr-api.yml index a9fa5b35..5712479f 100644 --- a/ceph-pr-api/config/definitions/ceph-pr-api.yml +++ b/ceph-pr-api/config/definitions/ceph-pr-api.yml @@ -69,5 +69,17 @@ - ../../../scripts/dashboard/install-backend-api-test-deps.sh - shell: "cd src/pybind/mgr/dashboard; timeout 7200 ./run-backend-api-tests.sh" + # This job seems to get aborted more often than others. Multiple times in the past week, + # it's gotten aborted during an apt transaction which leaves a dirty dpkg DB. + # This will make sure that gets cleaned up before the next job runs (and would inevitably fail). + publishers: + - postbuildscript: + builders: + - role: SLAVE + build-on: + - ABORTED + build-steps: + - shell: "sudo dpkg --configure -a" + wrappers: - ansicolor -- 2.39.5