From 373693f39e041f4fec8b577c2f571d8c1e6b15ac Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 16 Jun 2026 10:37:58 +0200 Subject: [PATCH 1/3] refactor(ci): consolidate build-all-versions workflows (4 -> 2 files) Merge the per-arch build-all and install-deps files into one each: build-all-versions-{amd64,arm64}.yaml -> build-all-versions.yaml build-all-versions-install-deps-{amd64,arch}.yaml -> build-all-versions-install-deps.yaml Arch becomes a matrix axis carrying the per-arch agent (artemis/gaia), BACKEND (kubernetes/docker) and R_PKG_CACHE_DIR. Routing is unchanged: the existing `task == "build-all-${ARCH}"` selector means `--var task=build-all-amd64` still runs only the amd64 rows. OS / OS_VERSION / R_VERSION / K8S_INSTANCE_TYPE are still passed via --var. These pipelines are manual-only (no cron). --- .crow/build-all-versions-amd64.yaml | 153 ------------------ ...build-all-versions-install-deps-arm64.yaml | 56 ------- ...l => build-all-versions-install-deps.yaml} | 15 +- ...ons-arm64.yaml => build-all-versions.yaml} | 89 +++++----- 4 files changed, 66 insertions(+), 247 deletions(-) delete mode 100644 .crow/build-all-versions-amd64.yaml delete mode 100644 .crow/build-all-versions-install-deps-arm64.yaml rename .crow/{build-all-versions-install-deps-amd64.yaml => build-all-versions-install-deps.yaml} (82%) rename .crow/{build-all-versions-arm64.yaml => build-all-versions.yaml} (77%) diff --git a/.crow/build-all-versions-amd64.yaml b/.crow/build-all-versions-amd64.yaml deleted file mode 100644 index be356fb..0000000 --- a/.crow/build-all-versions-amd64.yaml +++ /dev/null @@ -1,153 +0,0 @@ -### Required extra vars -# ARCH (amd64) -# OS (alpine) -# OS_VERSION (3.22) -# R_VERSION (4.5.3) -# crow pipeline create --var ARCH=amd64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --var task=build-all-amd64 --branch=main --log-level=info 5 -when: - - event: manual - evaluate: 'task == "build-all-amd64"' - -skip_clone: true - -labels: - platform: linux/amd64 - agent: artemis - -matrix: - include: - - SPLIT_INTO: 4 - SPLIT_INDEX: 1 - BACKEND: kubernetes - - SPLIT_INTO: 4 - SPLIT_INDEX: 2 - BACKEND: kubernetes - - SPLIT_INTO: 4 - SPLIT_INDEX: 3 - BACKEND: kubernetes - - SPLIT_INTO: 4 - SPLIT_INDEX: 4 - BACKEND: kubernetes - # - SPLIT_INTO: 4 - # SPLIT_INDEX: 5 - # BACKEND: kubernetes - -depends_on: - - build-all-versions-install-deps-amd64 - -steps: - - name: 'Build binaries' - image: 'reg.devxy.io/rpkgs/build-env-${OS}:${OS_VERSION}' - pull: true - environment: - RED_HAT_DEV_PW: - from_secret: RED_HAT_DEV_PW - B2_S3_ACCESS_KEY: - from_secret: B2_S3_ACCESS_KEY - B2_S3_SECRET_KEY: - from_secret: B2_S3_SECRET_KEY - PGPASS: - from_secret: PGPASS - REPO_RO_TOKEN: - from_secret: REPO_RO_TOKEN - GITHUB_PAT: - from_secret: GITHUB_PAT - # normal env vars - GIT_USER: pat-s - # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves - R_PKG_CACHE_DIR: '' - R_LIBS_USER: /mnt/cache/R-pkgs - CCACHE_DIR: /mnt/cache/ccache - NCPUS: 2 - volumes: - - ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache - commands: - - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - - mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages - # Windows-only: 'RInno', 'KeyboardSimulator', 'R2PPT', 'RWinEdt', 'blatr', 'excel.link', 'spectrino', 'taskscheduleR', 'MDSGUI', 'BiplotGUI', 'R2wd', 'rFUSION', 'MediaNews', 'rFUSION', 'MediaNews' - # pkgs = readRDS('/mnt/cache/pkgs_amd64.rds'); - - XVFB=$(command -v xwfb-run 2>/dev/null || command -v xvfb-run); XVFB_ARGS=""; if command -v xwfb-run >/dev/null 2>&1; then dnf install -y -q weston 2>/dev/null; XVFB_ARGS="-c weston"; fi - - $XVFB $XVFB_ARGS -n $SPLIT_INDEX -- /opt/R/$R_VERSION/bin/Rscript local/build-all.R $SPLIT_INTO $SPLIT_INDEX $NCPUS 2>&1 - - | - PRIMARY_MINOR=$(echo "$R_VERSION" | cut -d. -f1-2) - for RBIN in /opt/R/[0-9]*/bin/R; do - RV=$(basename "$(dirname "$(dirname "$RBIN")")") - RMINOR=$(echo "$RV" | cut -d. -f1-2) - [ "$RMINOR" = "$PRIMARY_MINOR" ] && continue - echo "=== R-minor-sensitive pass under R $RV ===" - LIB="/mnt/cache/R-pkgs-$RMINOR" - mkdir -p "$LIB" - R_LIBS_USER="$LIB" "$(dirname "$RBIN")/R" -q -e 'if (!requireNamespace("bincraft", quietly = TRUE) || packageVersion("bincraft") != "4.2.2") pak::pak("git::https://codefloe.com/rpkgs/bincraft.git@v4.2.2")' || true - R_LIBS_USER="$LIB" $XVFB $XVFB_ARGS -n $SPLIT_INDEX -- "$(dirname "$RBIN")/Rscript" local/build-all.R --sensitive-only $SPLIT_INTO $SPLIT_INDEX $NCPUS 2>&1 || true - done - # archive missed packages - - /opt/R/$R_VERSION/bin/R -q -e "bincraft::process_unarchived_pkgs(paste(Sys.getenv('OS'), Sys.getenv('OS_VERSION')), Sys.getenv('ARCH'), workers = $NCPUS)" - backend_options: - docker: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' - - name: 'Upload package indexes' - image: 'reg.devxy.io/rpkgs/build-env-${OS}:${OS_VERSION}' - pull: true - environment: - B2_S3_ACCESS_KEY: - from_secret: B2_S3_ACCESS_KEY - B2_S3_SECRET_KEY: - from_secret: B2_S3_SECRET_KEY - R_LIBS_USER: /mnt/cache/R-pkgs - volumes: - - ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache - commands: - - | - CODENAME=$(/opt/R/$R_VERSION/bin/Rscript -e "cat(bincraft::set_codename(NULL))") - /opt/R/$R_VERSION/bin/R -q -e "bincraft::upload_package_index(codename = '$CODENAME', s3_endpoint = 'https://s3.eu-central-003.backblazeb2.com', s3_region = 'eu-central-003', s3_bucket = 'devxy-rpkgs-binaries', s3_access_key_id = Sys.getenv('B2_S3_ACCESS_KEY'), s3_secret_access_key = Sys.getenv('B2_S3_SECRET_KEY'))" - for RBIN in /opt/R/[0-9]*/bin/R; do - RMINOR=$(basename "$(dirname "$(dirname "$RBIN")")" | cut -d. -f1-2) - /opt/R/$R_VERSION/bin/R -q -e "bincraft::upload_package_index(codename = '$CODENAME', r_minor = '$RMINOR', s3_endpoint = 'https://s3.eu-central-003.backblazeb2.com', s3_region = 'eu-central-003', s3_bucket = 'devxy-rpkgs-binaries', s3_access_key_id = Sys.getenv('B2_S3_ACCESS_KEY'), s3_secret_access_key = Sys.getenv('B2_S3_SECRET_KEY'))" || true - done - backend_options: - docker: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' diff --git a/.crow/build-all-versions-install-deps-arm64.yaml b/.crow/build-all-versions-install-deps-arm64.yaml deleted file mode 100644 index 98decea..0000000 --- a/.crow/build-all-versions-install-deps-arm64.yaml +++ /dev/null @@ -1,56 +0,0 @@ -when: - - event: manual - evaluate: 'task == "build-all-arm64"' - -skip_clone: true - -labels: - agent: gaia - -steps: - - name: 'Install deps and bincraft' - image: 'reg.devxy.io/rpkgs/build-env-${OS}:${OS_VERSION}' - pull: true - environment: - REPO_RO_TOKEN: - from_secret: REPO_RO_TOKEN - GITHUB_PAT: - from_secret: GITHUB_PAT - B2_S3_ACCESS_KEY: - from_secret: B2_S3_ACCESS_KEY - B2_S3_SECRET_KEY: - from_secret: B2_S3_SECRET_KEY - PGPASS: - from_secret: PGPASS - R_PKG_CACHE_DIR: /mnt/cache/pkgcache - R_LIBS_USER: /mnt/cache/R-pkgs - CCACHE_DIR: /mnt/cache/ccache - volumes: - - ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache - commands: - # one-time full wipe to fix corrupted .so files from previous failed builds - # - rm -rf /mnt/cache/R-pkgs - - mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages - - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - - git clone -q https://codefloe.com/rpkgs/bincraft.git /tmp/bincraft - - /opt/R/$R_VERSION/bin/R -q -e 'pak::sysreqs_db_update(); pak::local_install("/tmp/bincraft"); pak::pak(c("RPostgres", "s3fs", "data.table", "future", "jsonlite")); packageVersion("bincraft")' - - /opt/R/$R_VERSION/bin/R -q -e "source('local/packages-to-build.R'); saveRDS(pkgs, '/mnt/cache/packages/pkgs_to_build.rds'); saveRDS(pkgs[r_minor_sensitive == TRUE], '/mnt/cache/packages/r_minor_sensitive_pkgs.rds'); sprintf('Precomputed %s package versions (%s r-minor-sensitive)', nrow(pkgs), nrow(pkgs[r_minor_sensitive == TRUE]))" - backend_options: - docker: - resources: - requests: - memory: 5Gi - cpu: 1000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' diff --git a/.crow/build-all-versions-install-deps-amd64.yaml b/.crow/build-all-versions-install-deps.yaml similarity index 82% rename from .crow/build-all-versions-install-deps-amd64.yaml rename to .crow/build-all-versions-install-deps.yaml index 285a4e2..61e3dea 100644 --- a/.crow/build-all-versions-install-deps-amd64.yaml +++ b/.crow/build-all-versions-install-deps.yaml @@ -1,12 +1,23 @@ +# Consolidated install-deps for build-all (both arches in one file). +# Arch is a matrix axis; the existing task selector still routes it: +# task == "build-all-amd64" runs the amd64 row, "build-all-arm64" the arm64 row. +# OS / OS_VERSION / R_VERSION / K8S_INSTANCE_TYPE are still passed via --var. when: - event: manual - evaluate: 'task == "build-all-amd64"' + evaluate: 'task == "build-all-${ARCH}"' skip_clone: true labels: platform: linux/${ARCH} - agent: artemis + agent: ${AGENT} + +matrix: + include: + - ARCH: amd64 + AGENT: artemis + - ARCH: arm64 + AGENT: gaia steps: - name: 'Install deps and bincraft' diff --git a/.crow/build-all-versions-arm64.yaml b/.crow/build-all-versions.yaml similarity index 77% rename from .crow/build-all-versions-arm64.yaml rename to .crow/build-all-versions.yaml index be45659..36969b2 100644 --- a/.crow/build-all-versions-arm64.yaml +++ b/.crow/build-all-versions.yaml @@ -1,55 +1,72 @@ -### Required extra vars -# ARCH (amd64) -# OS (alpine) -# OS_VERSION (3.22) -# R_VERSION (4.5.3) +### Required extra vars (passed via --var at manual trigger time) +# OS (alpine) / OS_VERSION (3.22) / R_VERSION (4.5.3) / K8S_INSTANCE_TYPE (amd64) +# Arch is selected by the task name and routed via the matrix: +# crow pipeline create --var task=build-all-amd64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --var K8S_INSTANCE_TYPE=... --branch=main 5 +# crow pipeline create --var task=build-all-arm64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --branch=main 5 # Skip list lives in local/excluded-packages.json (read by local/build-all.R). -# crow pipeline create --var ARCH=arm64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --var task=build-all-arm64 --branch=main --log-level=info 5 -# crow pipeline create --var ARCH=arm64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --var task=build-all-arm64 --branch=main --log-level=info 5 when: - event: manual - evaluate: 'task == "build-all-arm64"' + evaluate: 'task == "build-all-${ARCH}"' skip_clone: true labels: - agent: gaia + platform: linux/${ARCH} + agent: ${AGENT} matrix: include: - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 1 - # BACKEND: kubernetes - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 2 - # BACKEND: kubernetes - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 3 - # BACKEND: kubernetes - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 4 - # BACKEND: kubernetes - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 5 - # BACKEND: kubernetes - - SPLIT_INTO: 4 + - ARCH: amd64 + AGENT: artemis + BACKEND: kubernetes + R_PKG_CACHE_DIR: '' + SPLIT_INTO: 4 SPLIT_INDEX: 1 - BACKEND: docker - - SPLIT_INTO: 4 + - ARCH: amd64 + AGENT: artemis + BACKEND: kubernetes + R_PKG_CACHE_DIR: '' + SPLIT_INTO: 4 SPLIT_INDEX: 2 - BACKEND: docker - - SPLIT_INTO: 4 + - ARCH: amd64 + AGENT: artemis + BACKEND: kubernetes + R_PKG_CACHE_DIR: '' + SPLIT_INTO: 4 SPLIT_INDEX: 3 - BACKEND: docker - - SPLIT_INTO: 4 + - ARCH: amd64 + AGENT: artemis + BACKEND: kubernetes + R_PKG_CACHE_DIR: '' + SPLIT_INTO: 4 SPLIT_INDEX: 4 + - ARCH: arm64 + AGENT: gaia BACKEND: docker - # - SPLIT_INTO: 5 - # SPLIT_INDEX: 5 - # BACKEND: docker + R_PKG_CACHE_DIR: /mnt/cache/pkgcache + SPLIT_INTO: 4 + SPLIT_INDEX: 1 + - ARCH: arm64 + AGENT: gaia + BACKEND: docker + R_PKG_CACHE_DIR: /mnt/cache/pkgcache + SPLIT_INTO: 4 + SPLIT_INDEX: 2 + - ARCH: arm64 + AGENT: gaia + BACKEND: docker + R_PKG_CACHE_DIR: /mnt/cache/pkgcache + SPLIT_INTO: 4 + SPLIT_INDEX: 3 + - ARCH: arm64 + AGENT: gaia + BACKEND: docker + R_PKG_CACHE_DIR: /mnt/cache/pkgcache + SPLIT_INTO: 4 + SPLIT_INDEX: 4 depends_on: - - build-all-versions-install-deps-arm64 + - build-all-versions-install-deps steps: - name: 'Build binaries' @@ -71,7 +88,7 @@ steps: # normal env vars GIT_USER: pat-s # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves - R_PKG_CACHE_DIR: /mnt/cache/pkgcache + R_PKG_CACHE_DIR: ${R_PKG_CACHE_DIR} R_LIBS_USER: /mnt/cache/R-pkgs CCACHE_DIR: /mnt/cache/ccache NCPUS: 2 -- 2.54.0 From 4835fa0472a2434ccad8291cba5a6a5ee07490e6 Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 16 Jun 2026 11:21:00 +0200 Subject: [PATCH 2/3] fix(ci): declare manual variables for build-all so the run form is populated The consolidated build-all routed on `task ==`, which crow #1165 filters out of the manual-run form, leaving "no configurable variables". Declare target_arch (routes the matrix) plus OS / OS_VERSION / R_VERSION / K8S_INSTANCE_TYPE as variables, and route on `target_arch == "${ARCH}"` so the form is populated and arch selection works from the UI. CLI callers now pass `--var target_arch=amd64` instead of `--var task=build-all-amd64`. --- .crow/build-all-versions-install-deps.yaml | 31 +++++++++++++++++--- .crow/build-all-versions.yaml | 34 ++++++++++++++++++---- 2 files changed, 55 insertions(+), 10 deletions(-) diff --git a/.crow/build-all-versions-install-deps.yaml b/.crow/build-all-versions-install-deps.yaml index 61e3dea..ee7ec16 100644 --- a/.crow/build-all-versions-install-deps.yaml +++ b/.crow/build-all-versions-install-deps.yaml @@ -1,10 +1,33 @@ # Consolidated install-deps for build-all (both arches in one file). -# Arch is a matrix axis; the existing task selector still routes it: -# task == "build-all-amd64" runs the amd64 row, "build-all-arm64" the arm64 row. -# OS / OS_VERSION / R_VERSION / K8S_INSTANCE_TYPE are still passed via --var. +# Triggered together with build-all-versions; `target_arch` routes the matrix. +# Variables are declared so the manual-run form exposes them (crow #1165); +# they are merged with build-all-versions' identical declarations. +variables: + target_arch: + description: "Architecture to build." + options: + - amd64 + - arm64 + default: amd64 + OS: + description: "Base OS image name (e.g. alpine, redhat, ubuntu)." + default: alpine + OS_VERSION: + description: "OS version / image tag (e.g. 3.24, 9, jammy, noble)." + default: "3.24" + R_VERSION: + description: "Primary R version under /opt/R." + options: + - 4.5.3 + - 4.4.3 + default: 4.5.3 + K8S_INSTANCE_TYPE: + description: "k8s node instance-type (amd64/kubernetes only; ignored for arm64/docker)." + default: AX42 + when: - event: manual - evaluate: 'task == "build-all-${ARCH}"' + evaluate: 'target_arch == "${ARCH}"' skip_clone: true diff --git a/.crow/build-all-versions.yaml b/.crow/build-all-versions.yaml index 36969b2..4912c73 100644 --- a/.crow/build-all-versions.yaml +++ b/.crow/build-all-versions.yaml @@ -1,12 +1,34 @@ -### Required extra vars (passed via --var at manual trigger time) -# OS (alpine) / OS_VERSION (3.22) / R_VERSION (4.5.3) / K8S_INSTANCE_TYPE (amd64) -# Arch is selected by the task name and routed via the matrix: -# crow pipeline create --var task=build-all-amd64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --var K8S_INSTANCE_TYPE=... --branch=main 5 -# crow pipeline create --var task=build-all-arm64 --var OS=alpine --var OS_VERSION=3.24 --var R_VERSION=4.5.3 --branch=main 5 +### Manual full rebuild of all CRAN binaries for one OS/arch. +# Set the variables below in the manual-run form (or via --var on the CLI). +# `target_arch` routes the matrix; OS/OS_VERSION/R_VERSION/K8S_INSTANCE_TYPE +# select the platform image, cache volume and node. # Skip list lives in local/excluded-packages.json (read by local/build-all.R). +variables: + target_arch: + description: "Architecture to build." + options: + - amd64 + - arm64 + default: amd64 + OS: + description: "Base OS image name (e.g. alpine, redhat, ubuntu)." + default: alpine + OS_VERSION: + description: "OS version / image tag (e.g. 3.24, 9, jammy, noble)." + default: "3.24" + R_VERSION: + description: "Primary R version under /opt/R." + options: + - 4.5.3 + - 4.4.3 + default: 4.5.3 + K8S_INSTANCE_TYPE: + description: "k8s node instance-type (amd64/kubernetes only; ignored for arm64/docker)." + default: AX42 + when: - event: manual - evaluate: 'task == "build-all-${ARCH}"' + evaluate: 'target_arch == "${ARCH}"' skip_clone: true -- 2.54.0 From 9c2384279d14065050020efb9fcc5e4497587732 Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 16 Jun 2026 11:29:44 +0200 Subject: [PATCH 3/3] refactor(ci): drop K8S_INSTANCE_TYPE and kubernetes backend from build-all Placement is handled by the agent label (artemis/gaia) and only the docker backend is used, so the kubernetes backend_options blocks, the arch/instance nodeSelector, and the K8S_INSTANCE_TYPE variable are dead. Remove them and the now-redundant BACKEND matrix column. --- .crow/build-all-versions-install-deps.yaml | 16 ------- .crow/build-all-versions.yaml | 49 ++-------------------- 2 files changed, 3 insertions(+), 62 deletions(-) diff --git a/.crow/build-all-versions-install-deps.yaml b/.crow/build-all-versions-install-deps.yaml index ee7ec16..11738ce 100644 --- a/.crow/build-all-versions-install-deps.yaml +++ b/.crow/build-all-versions-install-deps.yaml @@ -21,9 +21,6 @@ variables: - 4.5.3 - 4.4.3 default: 4.5.3 - K8S_INSTANCE_TYPE: - description: "k8s node instance-type (amd64/kubernetes only; ignored for arm64/docker)." - default: AX42 when: - event: manual @@ -76,16 +73,3 @@ steps: requests: memory: 5Gi cpu: 1000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' diff --git a/.crow/build-all-versions.yaml b/.crow/build-all-versions.yaml index 4912c73..479c8d6 100644 --- a/.crow/build-all-versions.yaml +++ b/.crow/build-all-versions.yaml @@ -1,7 +1,7 @@ ### Manual full rebuild of all CRAN binaries for one OS/arch. # Set the variables below in the manual-run form (or via --var on the CLI). -# `target_arch` routes the matrix; OS/OS_VERSION/R_VERSION/K8S_INSTANCE_TYPE -# select the platform image, cache volume and node. +# `target_arch` routes the matrix; OS/OS_VERSION/R_VERSION select the platform +# image and cache volume. Placement is via the agent label (artemis/gaia). # Skip list lives in local/excluded-packages.json (read by local/build-all.R). variables: target_arch: @@ -22,9 +22,6 @@ variables: - 4.5.3 - 4.4.3 default: 4.5.3 - K8S_INSTANCE_TYPE: - description: "k8s node instance-type (amd64/kubernetes only; ignored for arm64/docker)." - default: AX42 when: - event: manual @@ -40,49 +37,41 @@ matrix: include: - ARCH: amd64 AGENT: artemis - BACKEND: kubernetes R_PKG_CACHE_DIR: '' SPLIT_INTO: 4 SPLIT_INDEX: 1 - ARCH: amd64 AGENT: artemis - BACKEND: kubernetes R_PKG_CACHE_DIR: '' SPLIT_INTO: 4 SPLIT_INDEX: 2 - ARCH: amd64 AGENT: artemis - BACKEND: kubernetes R_PKG_CACHE_DIR: '' SPLIT_INTO: 4 SPLIT_INDEX: 3 - ARCH: amd64 AGENT: artemis - BACKEND: kubernetes R_PKG_CACHE_DIR: '' SPLIT_INTO: 4 SPLIT_INDEX: 4 - ARCH: arm64 AGENT: gaia - BACKEND: docker R_PKG_CACHE_DIR: /mnt/cache/pkgcache SPLIT_INTO: 4 SPLIT_INDEX: 1 - ARCH: arm64 AGENT: gaia - BACKEND: docker R_PKG_CACHE_DIR: /mnt/cache/pkgcache SPLIT_INTO: 4 SPLIT_INDEX: 2 - ARCH: arm64 AGENT: gaia - BACKEND: docker R_PKG_CACHE_DIR: /mnt/cache/pkgcache SPLIT_INTO: 4 SPLIT_INDEX: 3 - ARCH: arm64 AGENT: gaia - BACKEND: docker R_PKG_CACHE_DIR: /mnt/cache/pkgcache SPLIT_INTO: 4 SPLIT_INDEX: 4 @@ -144,22 +133,6 @@ steps: limits: memory: 20Gi cpu: 2000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' - name: 'Upload package indexes' image: 'reg.devxy.io/rpkgs/build-env-${OS}:${OS_VERSION}' pull: true @@ -187,20 +160,4 @@ steps: cpu: 1000m limits: memory: 20Gi - cpu: 2000m - kubernetes: - resources: - requests: - memory: 5Gi - cpu: 1000m - limits: - memory: 20Gi - cpu: 2000m - nodeSelector: - kubernetes.io/arch: ${ARCH} - node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE} - tolerations: - - key: 'CI' - operator: 'Equal' - value: 'true' - effect: 'NoSchedule' + cpu: 2000m \ No newline at end of file -- 2.54.0