<HTML><BODY><div><div>Each temporary docker perf image is about 5 GB<br>and we don’t have space to keep them localy on servers.</div><div> </div><div>- add cleanup after perf docker<br>  image preparation (perf_bootstrap job).<br>- cleanup perf docker images on execution hosts<br>  after perf testing (cleanup stage).</div><div> </div><div>Closes #5003<br>---</div><div> </div><div>Github: <a href="https://github.com/tarantool/tarantool/tree/opiskunov/gh-5003-perf-images-cleanup">https://github.com/tarantool/tarantool/tree/opiskunov/gh-5003-perf-images-cleanup</a><br>Issue: <a href="https://github.com/tarantool/tarantool/issues/5003">https://github.com/tarantool/tarantool/issues/5003</a><br> </div><div> .gitlab-ci.yml | 33 ++++++++++++++++++++++++++-------<br> .gitlab.mk     |  7 +++++--<br> 2 files changed, 31 insertions(+), 9 deletions(-)</div><div> </div><div>diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml<br>index 256b368..5f488ea 100644<br>--- a/.gitlab-ci.yml<br>+++ b/.gitlab-ci.yml<br>@@ -103,6 +103,12 @@ variables:<br>   script:<br>     - ${GITLAB_MAKE} perf_run</div><div> </div><div>+.perf_cleanup_definition: &perf_cleanup_definition<br>+   <<: *perf_only_definition<br>+   stage: cleanup<br>+   script:<br>+     - ${GITLAB_MAKE} perf_cleanup<br>+<br> # Tests</div><div> </div><div> release:<br>@@ -196,6 +202,8 @@ perf_bootstrap:<br>     - perf<br>   script:<br>     - ${GITLAB_MAKE} perf_prepare<br>+  after_script:<br>+    - ${GITLAB_MAKE} perf_cleanup_image</div><div> </div><div> # Testing part</div><div> </div><div>@@ -255,14 +263,25 @@ perf_linkbench_ssd:</div><div> </div><div> # Post-testing part</div><div> </div><div>-remove_images:<br>-  <<: *perf_only_definition<br>-  stage: cleanup<br>-  when: always<br>+remove_images_sh1:<br>+  <<: *perf_cleanup_definition<br>   tags:<br>-    - perf<br>-  script:<br>-    - ${GITLAB_MAKE} perf_cleanup<br>+    - sh1_shell<br>+<br>+remove_images_sh2:<br>+  <<: *perf_cleanup_definition<br>+  tags:<br>+    - sh2_shell<br>+<br>+remove_images_sh3:<br>+  <<: *perf_cleanup_definition<br>+  tags:<br>+    - sh3_shell<br>+<br>+remove_images_sh9:<br>+  <<: *perf_cleanup_definition<br>+  tags:<br>+    - sh9_shell</div><div> </div><div> # Packages and sources</div><div> </div><div>diff --git a/.gitlab.mk b/.gitlab.mk<br>index d1d93cd..f2a9b77 100644<br>--- a/.gitlab.mk<br>+++ b/.gitlab.mk<br>@@ -86,10 +86,13 @@ perf_clone_benchs_repo:<br> perf_prepare: perf_clone_benchs_repo<br>        make -f bench-run/targets.mk prepare</div><div> </div><div>-# Remove temporary performance image from the test host<br>-perf_cleanup: perf_clone_benchs_repo<br>+# Remove temporary performance image<br>+perf_cleanup_image:<br>        make -f bench-run/targets.mk cleanup</div><div> </div><div>+# Remove temporary performance image from the test host<br>+perf_cleanup: perf_clone_benchs_repo perf_cleanup_image<br>+<br> # #################################<br> # Run tests under a virtual machine<br> # #################################<br>--<br>1.8.3.1<br> </div></div></BODY></HTML>