Skip to content

Fix CI base image and add libsodium#172

Merged
phelma merged 1 commit into
mainfrom
fix-ci-base-image
Jul 8, 2026
Merged

Fix CI base image and add libsodium#172
phelma merged 1 commit into
mainfrom
fix-ci-base-image

Conversation

@phelma

@phelma phelma commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Why

Every CircleCI job currently fails at install-slack-deps.sh: Debian buster was archived off deb.debian.org, so apt-get update on buildpack-deps:buster now 404s.

What

  • Bump the base image to buildpack-deps:bookworm.
  • Bump the asdf cache key (v2v3) so Ruby is recompiled against bookworm's OpenSSL 3 rather than restored from a buster-built cache linking the removed OpenSSL 1.1.
  • Install libsodium-dev in all jobs, ahead of the upcoming secrets task groups which need rbnacl (libsodium sealed-box encryption of GitHub secret values).

Verification

Verified locally in docker on arm64 (matching the arm.medium resource class): apt on bookworm resolves and installs libsodium-dev, providing libsodium.so. The branch-filtered workflow only runs on main/dependabot*, so the real verification is the pipeline run after merge — this PR should be merged and observed green (through prerelease) before the task-groups PR lands.

buildpack-deps:buster can no longer apt-get install anything since buster
was archived off deb.debian.org, breaking every job. Move to bookworm and
bump the asdf cache key so ruby is rebuilt against bookworm's OpenSSL.

Also install libsodium in all jobs, ahead of rake_github gaining secrets
tasks that need rbnacl.
Copilot AI review requested due to automatic review settings July 8, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CircleCI environment to unblock failing jobs caused by the archived Debian buster apt repositories, while preparing CI for upcoming secrets tooling that requires libsodium.

Changes:

  • Switched CircleCI base image from buildpack-deps:buster to buildpack-deps:bookworm.
  • Bumped the asdf cache key version (v2v3) to avoid restoring buster-built Ruby/OpenSSL artifacts.
  • Added a CI step (and new script) to install libsodium-dev for rbnacl support.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/ci/common/install-libsodium.sh Adds a reusable CI script to install libsodium-dev via apt.
.circleci/config.yml Moves CI to bookworm, adds libsodium installation step, and bumps asdf cache key version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/ci/common/install-libsodium.sh
@phelma phelma merged commit 6cc31e8 into main Jul 8, 2026
1 check passed
@phelma phelma deleted the fix-ci-base-image branch July 8, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants