Tarantool development patches archive
 help / color / mirror / Atom feed
From: "Oleg Piskunov" <o.piskunov@tarantool.org>
To: tarantool-patches@dev.tarantool.org
Cc: "Alexander Turenko" <alexander.turenko@tarantool.org>
Subject: [Tarantool-patches] [PATCH v1] gitlab-ci: cleanup temporary perf images
Date: Wed, 20 May 2020 03:36:37 +0300	[thread overview]
Message-ID: <1589934997.349902287@f427.i.mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 2013 bytes --]



- add cleanup after perf docker
  image preparation (perf_bootstrap job).
- cleanup perf docker images on execution hosts
  after perf testing (cleanup stage).
 
Closes #5003
---
 
Github:  https://github.com/tarantool/tarantool/tree/opiskunov/gh-5003-perf-images-cleanup
Issue:  https://github.com/tarantool/tarantool/issues/5003

 .gitlab-ci.yml | 31 ++++++++++++++++++++++++++++---
 .gitlab.mk     |  4 ++++
 2 files changed, 32 insertions(+), 3 deletions(-)
 
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 256b368..4c1fa0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -196,6 +196,8 @@ perf_bootstrap:
     - perf
   script:
     - ${GITLAB_MAKE} perf_prepare
+  after_script:
+    - ${GITLAB_MAKE} perf_cleanup_bootstrap
 
 # Testing part
 
@@ -255,12 +257,35 @@ perf_linkbench_ssd:
 
 # Post-testing part
 
-remove_images:
+remove_images_sh1:
   <<: *perf_only_definition
   stage: cleanup
-  when: always
   tags:
-    - perf
+    - sh1_shell
+  script:
+    - ${GITLAB_MAKE} perf_cleanup
+
+remove_images_sh2:
+  <<: *perf_only_definition
+  stage: cleanup
+  tags:
+    - sh2_shell
+  script:
+    - ${GITLAB_MAKE} perf_cleanup
+
+remove_images_sh3:
+  <<: *perf_only_definition
+  stage: cleanup
+  tags:
+    - sh3_shell
+  script:
+    - ${GITLAB_MAKE} perf_cleanup
+
+remove_images_sh9:
+  <<: *perf_only_definition
+  stage: cleanup
+  tags:
+    - sh9_shell
   script:
     - ${GITLAB_MAKE} perf_cleanup
 
diff --git a/.gitlab.mk b/.gitlab.mk
index d1d93cd..feff3f9 100644
--- a/.gitlab.mk
+++ b/.gitlab.mk
@@ -90,6 +90,10 @@ perf_prepare: perf_clone_benchs_repo
 perf_cleanup: perf_clone_benchs_repo
        make -f bench-run/targets.mk cleanup
 
+# Remove temporary performance image after bootstrap phase
+perf_cleanup_bootstrap:
+       make -f bench-run/targets.mk cleanup
+
 # #################################
 # Run tests under a virtual machine
 # #################################
--
1.8.3.1
 

[-- Attachment #2: Type: text/html, Size: 2961 bytes --]

             reply	other threads:[~2020-05-20  0:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20  0:36 Oleg Piskunov [this message]
2020-05-20  8:30 ` Sergey Bronnikov
2020-05-21  7:09   ` Oleg Piskunov
2020-05-20 16:44 ` Alexander V. Tikhonov
2020-05-21  7:53   ` Oleg Piskunov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589934997.349902287@f427.i.mail.ru \
    --to=o.piskunov@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v1] gitlab-ci: cleanup temporary perf images' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox