Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

update-ci-images

БесплатноЗапускает вложенные скриптыНе проверен

Long-running orchestration to rebuild every Positron CI image (ubuntu24_04, rocky_8, rocky_9, debian, openSUSE15_6, SLES15_6, and postgres — each as a…

posit-devот posit-dev★ 4 361 звезда на GitHub

Об этом скилле

Update all CI images

Rebuild every CI image at a single new tag, driving the workflow_dispatch build workflows in posit-dev/positron-builds against a positron PR branch and babysitting the runs until they all pass.

The build workflows are in positron-builds because they use internal inputs. docker/images stays in this repository. Each workflow runs from the main branch of positron-builds and checks out positron at its positron_ref input, so a Dockerfile change on a pushed positron branch can be built before the branch merges. A fork branch cannot be built.

The tag

The tag is <node>-py<python>-r<r>, for example 24.18.0-py3.14.7-r4.6.1:

  • <node> is the full Node version in the images (must match .nvmrc; build/npm/preinstall.ts hard-fails otherwise).
  • <python> is the primary Python: the uv venv at /root/.venv, and the value of POSITRON_PY_VER_SEL in the container-based workflows.
  • <r> is the primary R: the rig default, and the value of POSITRON_R_VER_SEL in the container-based workflows.

A new tag for every change to any of the three means image contents and the workflow env flip together in one PR. Open PR branches keep pulling the old tag with the old selectors until they rebase, so nothing goes red under them.

Postgres has none of the three but gets the same tag, so one string identifies a complete image set.

Inputs

Parse from the user's invocation (ask only if missing):

  • node version, python version, R version — at least one must differ from what the images have now. Read the current values from docker/images/ubuntu24_04/docker-compose.amd64.yml (NODE_VERSION) and docker/images/ubuntu24_04/Dockerfile.ubuntu24_04 (uv venv --python=, rig default). Derive the tag from the three.
  • concurrency N (optional, default 4) — max build jobs in flight at once.

The alt interpreters (pyenv Python 3.13.0, R 4.4.2 or 4.4.3 on SLES) and the hidden ones (conda Python 3.12.10, R 4.4.1) are not part of the tag and are not touched by this skill.

The job matrix — 7 builds total

Workflow (in positron-builds) Variants
ci-images-build-os.yml os in {ubuntu24_04, rocky_8, rocky_9, debian, openSUSE15_6, SLES15_6} = 6
ci-images-build-postgres.yml postgres = 1

Each workflow run builds both architectures (amd64 + arm64) as a matrix on native runners and then merges them into a single multi-arch manifest list, e.g. ghcr.io/<owner>/positron-ubuntu24:<tag>, positron-postgres:<tag>. There is one run (one dispatch) per image, not per architecture. Each build leg pushes a per-arch tag to the same package (positron-ubuntu24:<tag>-amd64, positron-ubuntu24:<tag>-arm64, …), and the workflow's merge job assembles the manifest list from them. Postgres has no Node, Python or R and gets no version change.

<dir> of this skill below means .claude/skills/update-ci-images.


Phase 0 — Preflight

Run and confirm all pass before changing anything:

gh auth status                       # authenticated, has workflow + repo scope
git -C "$REPO" status --porcelain     # MUST be empty (clean tree)
git -C "$REPO" rev-parse --abbrev-ref HEAD   # report the base branch (any is fine)
gh repo view --json nameWithOwner -q .nameWithOwner   # expect posit-dev/positron
gh workflow view ci-images-build-os.yml -R posit-dev/positron-builds >/dev/null   # you can read the build workflows

Verify each version that changes exists before you burn build minutes:

  • Node: curl -sfI https://nodejs.org/dist/v<node>/node-v<node>-linux-x64.tar.xz and ...-linux-arm64.tar.xz. If either 404s, stop and tell the user.
  • Python: uv python list --all-versions The primary must also differ from every other Python in the image: pyenv alt (3.13.0), the hidden conda env (3.12.10) and conda base, which the Dockerfiles pin with conda install -n base python=. Two interpreters with one version label make the kernel picker choose the wrong one, and uv reuses a matching system interpreter instead of downloading a managed build.| grep cpython-<python>-. The Dockerfiles install the newest uv at build time, so any version in uv's list is installable. Pick a patch whose string is not a prefix of another installed version: the e2e selectors match by substring, so 3.13.1 would also match 3.13.15.
  • R: HEAD-request the Posit CDN for every distro and both arches: ubuntu-2404/pkgs/r-<r>_1_{amd64,arm64}.deb, debian-13/pkgs/r-<r>_1_{amd64,arm64}.deb, {centos-8,rhel-9,opensuse-156}/pkgs/R-<r>-1-1.{x86_64,aarch64}.rpm, all under https://cdn.posit.co/r/.
  • PPM snapshot vs R minor: when the R minor changes, the dated PPM_SNAPSHOT must postdate PPM's binaries for that minor on every distro, or the dev-deps install compiles everything from source. Check one package per distro: download dplyr_<ver>.tar.gz from `https://packagemanager.posit.co/cran/
Полный SKILL.md на GitHub

Установить update-ci-images в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/bump-interpreter-versions.shscripts/bump-node-version.shscripts/bump-ppm-snapshot.shscripts/bump-selector-pins.shscripts/dispatch-job.shscripts/retag-consumers.shscripts/wait-for-runs.sh

FAQ

Что делает скилл update-ci-images?

Long-running orchestration to rebuild every Positron CI image (ubuntu24_04, rocky_8, rocky_9, debian, openSUSE15_6, SLES15_6, and postgres — each as a multi-arch amd64+arm64 manifest) at one new tag. The tag names the Node, primary Python and primary R versions baked into the images (`<node>-py<python>-r<r>`). Bumps whichever of the three changed, repoints every consumer at the new tag, dispatches the build workflows in posit-dev/positron-builds against the PR branch with bounded concurrency, monitors the runs, auto-fixes failures and retries, and leaves the PR open for human review once all 7 builds are green.

Как установить скилл update-ci-images?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл update-ci-images запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить update-ci-images с