Skip to content

chore(devcontainer): Ubuntu 26.04, pixi 0.83.0 and git-lfs - #1201

Merged
blooop merged 2 commits into
mainfrom
chore/devcontainer-ubuntu-26.04
Oct 25, 2026
Merged

blooop merged 2 commits into
mainfrom
chore/devcontainer-ubuntu-26.04

Conversation

@blooop

@blooop blooop commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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/gh can now create the container.

Evidence

The image built from .devcontainer/Dockerfile (docker build -f .devcontainer/Dockerfile .devcontainer, then docker run):

main (CA patch a297feb) this branch
OS (VERSION_ID) 24.04 26.04
emSign ECC Root CA - G3 in /etc/ssl/certs 0 0
pixi --version 0.75.0 (Dockerfile pin) 0.83.0
git lfs version not installed by the Dockerfile 3.7.1

I 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 fresh HOME, then init-host.sh, then docker run --mount with the two bind mounts from devcontainer.json):

main this branch
docker run exit code 125 (bind source path does not exist) 0

A full dl create plus pixi run test on this branch gave 4084 passed, 26 skipped, and git status was 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 --frozen and pixi run --frozen. A plain install with a newer pixi rewrites pixi.lock, and then every fresh workspace starts dirty.
  • .devcontainer/claude-code/init-host.sh: creates ~/.config/gh as well as ~/.claude. Docker refuses a bind mount whose source does not exist, so before this change a host that never ran gh could not create the container.

The Dockerfile and post-create.sh are copies of python_template main.

Where this fits

devcontainer.json pulls ghcr.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 (the build-and-push job in devcontainer.yml) and pixi run dev-use-local. The post-create.sh and init-host.sh changes apply to every launch.

How I checked it

  • The local image build and the docker run --mount check above.
  • The build-and-push CI job builds the new Dockerfile on this PR.
  • In a fresh dl workspace on b88f5dee: ruff check (all checks passed), ruff format --check (583 files already formatted), a smoke pytest of three test files (44 passed), and git status clean after create and after the tests. I did not re-run the full suite; CI carries it.
  • pixi.lock is already format v7, and pixi 0.83.0 prints no manifest warnings, so there is no lock commit.
  • Every setup-pixi step 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

…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.
@sourcery-ai

sourcery-ai Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Sorry @blooop, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Updates 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 creation

sequenceDiagram
    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
Loading

File-Level Changes

Change Details Files
Modernize the dev-container base image and bundled development tools.
  • Switch the image from Ubuntu 24.04 to Ubuntu 26.04.1.
  • Upgrade the standalone pixi binary to 0.83.0.
  • Install and system-configure git-lfs so Git LFS repositories work through plain git.
  • Retain the build-time CA trust regression check against the updated Ubuntu certificate package.
.devcontainer/Dockerfile
Make environment setup reproducible without modifying the committed lockfile.
  • Run pixi installation with --frozen during container creation.
  • Run optional pixi tasks with --frozen as well.
  • Document that dependency changes must explicitly regenerate and commit pixi.lock.
.devcontainer/post-create.sh

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

Copy link
Copy Markdown

Performance Report for 4767aeb

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

Full report

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.
@github-actions

Copy link
Copy Markdown

Performance Report for b88f5de

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

Full report

Updated by Performance Tracking workflow

@blooop
blooop merged commit 05d9709 into main Oct 25, 2026
10 checks passed
@blooop
blooop deleted the chore/devcontainer-ubuntu-26.04 branch October 25, 2026 22:04
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.

1 participant