Skip to content

Fix cache directory ownership in Docker builds - #10707

Merged
auvipy merged 2 commits into
celery:mainfrom
phanky1:docker-build
Sep 26, 2026
Merged

auvipy merged 2 commits into
celery:mainfrom
phanky1:docker-build

Conversation

@phanky1

@phanky1 phanky1 commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Description

PyPy 3.11 Docker builds started failing after the base image switched to the pp80 ABI. The pinned cryptography==50.0.1 release has no matching wheel, so pip falls back to building from source. The build tooling then attempts to install Rust, but fails because the developer user cannot create ~/.cache/puccinialin inside the .cache directory owned by root.

This change creates .cache with developer as its owner before installing dependencies, giving the Rust installer permission to write there.

Copilot AI lite review requested due to automatic review settings September 25, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review comments remain, and the change addresses the reported build failure.

Review effort: Lite
Findings: None

What changed in this PR

Updates the Docker build to make the developer cache writable during dependency installation, fixing PyPy builds that compile cryptography from source.

Changes:

  • Creates ${HOME}/.cache.
  • Assigns ownership to UID/GID 1000.
  • Enables Rust tooling to write cache files.
File Description
docker/​Dockerfile Initializes the developer-owned package cache directory.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@auvipy
auvipy self-requested a review September 26, 2026 04:18
@auvipy auvipy added this to the 5.7.0 milestone Sep 26, 2026
@auvipy
auvipy merged commit e76495f into celery:main Sep 26, 2026
9 of 11 checks passed
@auvipy

auvipy commented Sep 26, 2026

Copy link
Copy Markdown
Member

@GangEunzzang apparently this fixes the docker build ci failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants