From dcb4336098744d930cb418c79b431da12249a18b Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 6 Sep 2024 16:14:40 +0200 Subject: [PATCH] try warm up logic --- .woodpecker/process_cran_updates.yaml | 5 +- .woodpecker/warm_up_process_cran_updates.yaml | 51 +++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 .woodpecker/warm_up_process_cran_updates.yaml diff --git a/.woodpecker/process_cran_updates.yaml b/.woodpecker/process_cran_updates.yaml index 422c907..43d3896 100644 --- a/.woodpecker/process_cran_updates.yaml +++ b/.woodpecker/process_cran_updates.yaml @@ -4,6 +4,9 @@ when: skip_clone: true +depends_on: + - warm_up_process_cran_updates + matrix: include: - PLATFORM: redhat-9 @@ -30,8 +33,6 @@ steps: secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT] image: docker.io/devxygmbh/${ARCH}-binaries-r-${PLATFORM} pull: true - # to ensure the PACKAGES upload step is being executed - failure: ignore environment: GIT_USER: pat-s # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves diff --git a/.woodpecker/warm_up_process_cran_updates.yaml b/.woodpecker/warm_up_process_cran_updates.yaml new file mode 100644 index 0000000..3ef4d85 --- /dev/null +++ b/.woodpecker/warm_up_process_cran_updates.yaml @@ -0,0 +1,51 @@ +when: + - event: [cron] + cron: process-cran-updates + +skip_clone: true + +matrix: + include: + - PLATFORM: redhat-9 + PKGS_ID: rhel9 + ARCH: arm64 + - PLATFORM: redhat-8 + PKGS_ID: rhel8 + ARCH: arm64 + - PLATFORM: ubuntu-2404 + PKGS_ID: noble + ARCH: arm64 + - PLATFORM: ubuntu-2204 + PKGS_ID: jammy + ARCH: arm64 + - PLATFORM: alpine-320 + PKGS_ID: alpine320 + ARCH: arm64 + - PLATFORM: alpine-320 + PKGS_ID: alpine320 + ARCH: amd64 + +steps: + - name: 'Warming up' + image: busybox:latest + failure: ignore + commands: + - sleep 300 + - echo "Warmed Up" + + backend_options: + kubernetes: + resources: + requests: + memory: 12Gi + cpu: 700m + limits: + memory: 14Gi + cpu: 4000m + nodeSelector: + kubernetes.io/arch: '${ARCH}' + tolerations: + - key: 'CI' + operator: 'Equal' + value: 'true' + effect: 'NoSchedule'