Repository navigation
chore(devcontainer): Ubuntu 26.04, pixi 0.83.0 and git-lfs - #1201
Merged
Merged
Conversation
…om python_template Dockerfile and post-create.sh match python_template main: base 3-ubuntu26.04 (ubuntu-24.04 is frozen at 2025-10-16), pixi 0.83.0, git-lfs, and post-create with --frozen so a fresh workspace keeps pixi.lock unchanged.
Contributor
Contributor
Reviewer's GuideUpdates the published dev container to Ubuntu 26.04 with pixi 0.83.0 and system-level Git LFS, while making post-creation environment and task setup consume the committed pixi.lock without rewriting it. Review the image/package compatibility impact, CA validation, Git LFS initialization, and the reported clean-workspace and test results. Sequence diagram for frozen devcontainer creationsequenceDiagram
participant Docker
participant Container as DevContainer
participant Pixi
participant Lock as pixi.lock
participant GitLFS as git-lfs
Docker->>Container: Build Ubuntu 26.04 image
Container->>Container: apt-get install git-lfs
Container->>GitLFS: git lfs install --system
Container->>Container: test ! -e /etc/ssl/certs/emSign_ECC_Root_CA_-_G3.pem
Container->>Pixi: pixi install --frozen
Pixi->>Lock: Read committed lock
Container->>Pixi: pixi run --frozen task
Pixi->>Lock: Read committed lock
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Performance Report for
|
| Metric | Value |
|---|---|
| Total tests | 4110 |
| Total time | 678.14s |
| Mean | 0.1650s |
| Median | 0.0040s |
Top 10 slowest tests
| Test | Time (s) |
|---|---|
test.test_bench_examples.TestBenchExamples::test_example_meta |
17.941 |
test.test_ab::test_ab_on_a_clean_tree_names_the_head_even_when_its_output_is_not_ignored |
17.209 |
test.test_evidence_flow::test_every_svg_keeps_the_motion_rule |
11.817 |
test.test_ab::test_ab_explicit_base_and_image_url |
10.123 |
test.test_ab::test_ab_measures_each_side_with_its_own_code |
10.116 |
test.test_ab::test_ab_judges_a_claim_on_a_metric_the_change_adds |
10.074 |
test.test_ab::test_ab_images_pushes_them_to_the_evidence_ref_and_links_them |
9.988 |
test.test_ab::test_ab_images_without_a_github_remote_keeps_text_and_exits_0 |
9.870 |
test.test_ab::test_ab_png_dir_writes_one_png_per_metric |
9.857 |
test.test_ab::test_ab_reports_which_side_failed_and_keeps_its_output |
9.732 |
Updated by Performance Tracking workflow
devcontainer.json bind-mounts ~/.config/gh, and docker refuses a bind mount whose source does not exist, so a host that never ran gh could not create the container. init-host.sh now creates that directory as it does ~/.claude. Not unit-testable (host-side docker behaviour); checked by running init-host.sh under a fresh HOME and docker run --mount with both mounts: exit 125 before, 0 after.
Performance Report for
|
| Metric | Value |
|---|---|
| Total tests | 4110 |
| Total time | 674.82s |
| Mean | 0.1642s |
| Median | 0.0040s |
Top 10 slowest tests
| Test | Time (s) |
|---|---|
test.test_bench_examples.TestBenchExamples::test_example_meta |
18.700 |
test.test_ab::test_ab_on_a_clean_tree_names_the_head_even_when_its_output_is_not_ignored |
17.433 |
test.test_evidence_flow::test_every_svg_keeps_the_motion_rule |
11.940 |
test.test_ab::test_ab_png_dir_writes_one_png_per_metric |
10.937 |
test.test_ab::test_ab_images_pushes_them_to_the_evidence_ref_and_links_them |
10.616 |
test.test_ab::test_ab_images_without_a_github_remote_keeps_text_and_exits_0 |
10.389 |
test.test_ab::test_ab_reports_which_side_failed_and_keeps_its_output |
10.258 |
test.test_ab::test_ab_explicit_base_and_image_url |
10.162 |
test.test_ab::test_ab_judges_a_claim_on_a_metric_the_change_adds |
10.081 |
test.test_ab::test_ab_without_images_pushes_nothing |
10.059 |
Updated by Performance Tracking workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bencher's own dev container image now builds on Ubuntu 26.04 with pixi 0.83.0 and git-lfs, the same as python_template. A host that has no
~/.config/ghcan now create the container.Evidence
The image built from
.devcontainer/Dockerfile(docker build -f .devcontainer/Dockerfile .devcontainer, thendocker run):a297feb)VERSION_ID)/etc/ssl/certspixi --versiongit lfs versionI measured the branch column. The main column for pixi and git-lfs comes from the main Dockerfile.
Container creation on a host with no
~/.config/gh(a freshHOME, theninit-host.sh, thendocker run --mountwith the two bind mounts fromdevcontainer.json):docker runexit codebind source path does not exist)A full
dlcreate pluspixi run teston this branch gave 4084 passed, 26 skipped, andgit statuswas clean after the create and after the tests. The create took about 115 s.What this changes
.devcontainer/Dockerfile:FROM mcr.microsoft.com/devcontainers/base:3-ubuntu26.04,PIXI_VERSION=v0.83.0, and git-lfs on the system PATH. The CA check stays: the build fails if the G3 root is present..devcontainer/post-create.sh:pixi install --frozenandpixi run --frozen. A plain install with a newer pixi rewritespixi.lock, and then every fresh workspace starts dirty..devcontainer/claude-code/init-host.sh: creates~/.config/ghas well as~/.claude. Docker refuses a bind mount whose source does not exist, so before this change a host that never ranghcould not create the container.The Dockerfile and
post-create.share copies of python_template main.Where this fits
devcontainer.jsonpullsghcr.io/blooop/python_template/devcontainer:latest. So a default launch gets Ubuntu 26.04 from python_template's image, not from this Dockerfile. This Dockerfile drives bencher's own published image (thebuild-and-pushjob indevcontainer.yml) andpixi run dev-use-local. Thepost-create.shandinit-host.shchanges apply to every launch.How I checked it
docker run --mountcheck above.build-and-pushCI job builds the new Dockerfile on this PR.dlworkspace onb88f5dee:ruff check(all checks passed),ruff format --check(583 files already formatted), a smokepytestof three test files (44 passed), andgit statusclean after create and after the tests. I did not re-run the full suite; CI carries it.pixi.lockis already format v7, and pixi 0.83.0 prints no manifest warnings, so there is no lock commit.setup-pixistep in CI uses the default pixi version (latest), so no CI pixi pin is older than 0.83.0.Merge danger
Door: two-way. A revert restores the 24.04 image.
Blast radius: small. bencher's published dev container image changes base OS. A tool that needs a 24.04 package can break in that image. CI tests run in pixi, not in this image.
🤖 Generated with Claude Code