Skip to content

Add a just update-outfiles helper script - #1321

Draft
dlqqq wants to merge 1 commit into
aws:mainfrom
dlqqq:add-just-update-outfiles
Draft

Add a just update-outfiles helper script#1321
dlqqq wants to merge 1 commit into
aws:mainfrom
dlqqq:add-just-update-outfiles

Conversation

@dlqqq

@dlqqq dlqqq commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Motivation

Regenerating a version's .env.out lockfiles today means running the full src/main.py build, which builds the entire image (CPU and GPU) just to end up calling micromamba env export --explicit on the base env. That is far more than is needed to refresh a lock after editing an .env.in (e.g. bumping a dependency or pinning a channel), and it isn't discoverable.

Summary

Adds a top-level justfile and adds just to the dev environment.yml. A lockfile is just the fully-resolved base conda environment, so the recipe reproduces exactly that: it solves the {cpu,gpu}.env.in (plus pinned_env.in, and the CUDA arg_based_env.in for GPU) in the matching mambaorg/micromamba base image and records it with micromamba env export --explicit. No full image build, and no GPU hardware — GPU packages resolve against the CONDA_OVERRIDE_CUDA virtual package.

Recipes:

  • just update-cpu-outfile <version>
  • just update-gpu-outfile <version>
  • just update-outfiles <version> (both)

You can verify it against an unchanged .env.in: regenerating should leave the committed .env.out unchanged apart from packages that legitimately have newer builds on conda-forge.

@dlqqq
dlqqq force-pushed the add-just-update-outfiles branch 3 times, most recently from ef7b1c8 to 4d4b09e Compare August 28, 2026 21:08
@dlqqq
dlqqq force-pushed the add-just-update-outfiles branch from 4d4b09e to 8de4a6b Compare August 28, 2026 21:43
@dlqqq dlqqq changed the title Add a justfile with an update-outfiles recipe Add a just update-outfiles helper script Aug 28, 2026
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