try warm up logic

This commit is contained in:
Patrick Schratz 2024-09-06 16:14:40 +02:00
commit dcb4336098
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 54 additions and 2 deletions

View file

@ -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

View file

@ -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'