Skip to content

Promote Develop: Name the Snippets' Host Mount Paths and Give mktemp an Explicit Template - #3879

Merged
ptr727 merged 1 commit into
mainfrom
develop
Nov 5, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes #3878 to main.

Closes #1763.

Verified by running the new mktemp line in debian:bookworm-slim and busybox:1.36, with TMPDIR unset and with it set. #3878 had two local strict review passes, which found one problem between them, now fixed, and a Copilot round with no findings.

🤖 Generated with Claude Code

…ate (#3878)

## Summary

This finishes the two points still open on #1763. Its `HOME` and
`USERPROFILE` part was split out into #3852, which is closed.

- **Host mount paths.** Each devcontainer snippet now has a JSONC
comment above `mounts`. It names the host paths that must exist and says
why: Docker either refuses an absent source or creates an empty
directory in its place. This is option 1 of the maintainer's answer to
#3754. The comment cites no hub-only doc, because the snippets are
copied into other repositories.
- **`mktemp` template.** The Python post-create step used `mktemp -t
uv-install.XXXXXX.sh`. It now uses `mktemp
"${TMPDIR:-/tmp}/uv-install.XXXXXX"`, an explicit template that still
honors `TMPDIR`. The template ends with its run of `X`s, because BSD
`mktemp` would read anything after them literally. The step runs the
file with `sh "$installer"`, so it never needed the `.sh` suffix.

The `comments` label is needed for the added comment lines.

## Verification

- I ran the new `mktemp` line in `debian:bookworm-slim` (the snippet's
image family) and in `busybox:1.36`, with `TMPDIR` unset and with it
set. It created the file under the expected directory each time.
- `tests/test_cli_usage.py` passed.
- The local strict review was run twice. Pass 1 found one problem: the
comment stated the requirement but not the reason, which is fixed in
`c0113cf7`. Pass 2 found nothing. `prose_lint` reported no violations.

The promotion PR will carry the `Closes #1763` line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 4, 2026 22:07
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

🟢 Approval recommended

No active review issues remain, with the changes documenting required host mounts and making temporary installer creation portable while preserving the existing cleanup and execution flow.

No open issues 🎉

What changed in this PR

This pull request promotes the devcontainer updates to main, documenting required host mount paths and making temporary installer creation portable across mktemp implementations.

Changes:

  • Documents required SSH, Git signing, and GitHub CLI host paths in both devcontainer definitions.
  • Replaces mktemp -t with an explicit TMPDIR-aware template for the Python installer.
  • Preserves the existing installer cleanup and execution flow.

This pull request is ready to be approved.

File Description
catalog/​snippets/​devcontainer/​python/​post-create.sh Uses an explicit, TMPDIR-aware temporary-file template for the uv installer.
catalog/​snippets/​devcontainer/​python/​devcontainer.json Documents required host paths for bind mounts and Docker behavior.
catalog/​snippets/​devcontainer/​dotnet/​devcontainer.json Documents required host paths for bind mounts and Docker behavior.

Review effort: Lite

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.31%. Comparing base (8565add) to head (3a81362).
⚠️ Report is 468 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3879   +/-   ##
=======================================
  Coverage   83.31%   83.31%           
=======================================
  Files          29       29           
  Lines        9956     9956           
=======================================
  Hits         8295     8295           
  Misses       1661     1661           
Flag Coverage Δ
python-3.13 83.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit fda0e56 into main Nov 5, 2026
14 checks passed
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.

Python devcontainer snippet: mount path join and mktemp -t portability

2 participants