Skip to content

1.11.1: a foreign image holds the working directory its base's doctor checks - #42

Merged
echarles merged 1 commit into
mainfrom
fix/foreign-image-content-workdir
Nov 1, 2026
Merged

echarles merged 1 commit into
mainfrom
fix/foreign-image-content-workdir

Conversation

@echarles

@echarles echarles commented Nov 1, 2026

Copy link
Copy Markdown
Member

A foreign image's build copies datalayer-sandbox from the approved base, and the 2026.09 channel's doctor checks /home/datalayer/content. Docker's WORKDIR never created it for the contract's user, so a build of python:3.12-slim failed its last step with workdir failed: /home/datalayer/content is missing or not writable. The contract layer now creates it before the chown.

Copilot AI balanced review requested due to automatic review settings November 1, 2026 07:59

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.

🟢 Approval recommended

No active review issues were identified for the foreign-image content-directory fix.

No open issues 🎉

What changed in this PR

Fixes foreign-image builds by creating /home/datalayer/content before assigning ownership, so doctor checks copied from the approved base can find the expected working directory.

Changes:

  • Creates the content directory alongside the Jupyter runtime directory before chown.
  • Adds a regression test checking that directory creation precedes ownership assignment.
  • Bumps the package version to 1.11.1.
File Description
tests/​test_environment_foreign_contract_layer.py Tests that the content directory is included before chown.
code_sandboxes/​environments/​adapters/​datalayer.py Creates the content directory in the foreign-image contract layer.
code_sandboxes/​__version__.py Updates the version to 1.11.1.

Review effort: Balanced

@echarles
echarles merged commit aa96f13 into main Nov 1, 2026
9 checks passed
@echarles
echarles deleted the fix/foreign-image-content-workdir branch November 1, 2026 09:28
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