From 50c8a03c36619e6927cc2b759f4d11466f534e14 Mon Sep 17 00:00:00 2001 From: pat-s Date: Wed, 27 Nov 2024 23:47:14 +0100 Subject: [PATCH] adjust max cores for package index WFs --- .woodpecker/update-package-index-alpine-320-arm64.yaml | 3 ++- .woodpecker/update-package-index-redhat-8-amd64.yaml | 3 ++- .woodpecker/update-package-index-redhat-8-arm64.yaml | 3 ++- .woodpecker/update-package-index-redhat-9-amd64.yaml | 3 ++- .woodpecker/update-package-index-redhat-9-arm64.yaml | 3 ++- .woodpecker/update-package-index-ubuntu-2204-amd64.yaml | 3 ++- .woodpecker/update-package-index-ubuntu-2204-arm64.yaml | 3 ++- .woodpecker/update-package-index-ubuntu-2404-amd64.yaml | 3 ++- .woodpecker/update-package-index-ubuntu-2404-arm64.yaml | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.woodpecker/update-package-index-alpine-320-arm64.yaml b/.woodpecker/update-package-index-alpine-320-arm64.yaml index 706cf1a..f336b76 100644 --- a/.woodpecker/update-package-index-alpine-320-arm64.yaml +++ b/.woodpecker/update-package-index-alpine-320-arm64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-redhat-8-amd64.yaml b/.woodpecker/update-package-index-redhat-8-amd64.yaml index 31c0d8e..00815de 100644 --- a/.woodpecker/update-package-index-redhat-8-amd64.yaml +++ b/.woodpecker/update-package-index-redhat-8-amd64.yaml @@ -24,8 +24,9 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-redhat-8-arm64.yaml b/.woodpecker/update-package-index-redhat-8-arm64.yaml index 5db586c..847afea 100644 --- a/.woodpecker/update-package-index-redhat-8-arm64.yaml +++ b/.woodpecker/update-package-index-redhat-8-arm64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-redhat-9-amd64.yaml b/.woodpecker/update-package-index-redhat-9-amd64.yaml index 4cc1095..6e4a04c 100644 --- a/.woodpecker/update-package-index-redhat-9-amd64.yaml +++ b/.woodpecker/update-package-index-redhat-9-amd64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-redhat-9-arm64.yaml b/.woodpecker/update-package-index-redhat-9-arm64.yaml index 4fc1f3d..61fcce2 100644 --- a/.woodpecker/update-package-index-redhat-9-arm64.yaml +++ b/.woodpecker/update-package-index-redhat-9-arm64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-ubuntu-2204-amd64.yaml b/.woodpecker/update-package-index-ubuntu-2204-amd64.yaml index f9aa70c..8a7e8ea 100644 --- a/.woodpecker/update-package-index-ubuntu-2204-amd64.yaml +++ b/.woodpecker/update-package-index-ubuntu-2204-amd64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(); warnings()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(); warnings()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-ubuntu-2204-arm64.yaml b/.woodpecker/update-package-index-ubuntu-2204-arm64.yaml index 27f3398..d7ba682 100644 --- a/.woodpecker/update-package-index-ubuntu-2204-arm64.yaml +++ b/.woodpecker/update-package-index-ubuntu-2204-arm64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-ubuntu-2404-amd64.yaml b/.woodpecker/update-package-index-ubuntu-2404-amd64.yaml index 376e1e1..304647d 100644 --- a/.woodpecker/update-package-index-ubuntu-2404-amd64.yaml +++ b/.woodpecker/update-package-index-ubuntu-2404-amd64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: diff --git a/.woodpecker/update-package-index-ubuntu-2404-arm64.yaml b/.woodpecker/update-package-index-ubuntu-2404-arm64.yaml index 0df0e96..b0e329b 100644 --- a/.woodpecker/update-package-index-ubuntu-2404-arm64.yaml +++ b/.woodpecker/update-package-index-ubuntu-2404-arm64.yaml @@ -24,9 +24,10 @@ steps: - git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git . - rm -rf /mnt/cache/packages/* - R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")' + - R -q -e 'pak::pak("pat-s/cranlike@s3")' - R -q -e 'packageVersion("bincraftR")' - cd /mnt/cache/packages - - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' + - R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores() / 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()' backend_options: kubernetes: resources: