Skip to content

Run a pinned cmemc release instead of the installed one - #59

Merged
louiswesterheide merged 3 commits into
developfrom
feature/pinned-cmemc-CMEM-8419
Nov 23, 2026
Merged

louiswesterheide merged 3 commits into
developfrom
feature/pinned-cmemc-CMEM-8419

Conversation

@msaipraneeth

Copy link
Copy Markdown

Summary

Generated packages called whatever cmemc was on the PATH. A package built with a development build of cmemc was published with null values in its manifest, and installing it broke an older Corporate Memory. Every generated task now runs one pinned release through uvx.

 # src/Taskfile.yaml (generated packages)
 vars:
+  CMEMC_VERSION: 26.2.1
+  CMEMC: ${CMEMC:-uvx --from cmem-cmemc=={{.CMEMC_VERSION}} cmemc}
 tasks:
   build:
-    cmemc package build ...
+    {{.CMEMC}} package build ...
   # same for check, import, export, delete, publish
+  cmemc:   # task cmemc -- <args>, the pinned release for commands no task wraps

The version now lives in one place instead of two literals that used to drift:

 src/Taskfile.yaml                CMEMC_VERSION: 26.2.1   <- the only pin
 src/.gitlab-ci.yml.jinja
-  before_script: uv tool install --reinstall cmem-cmemc@26.2.1
 .github/workflows/check.yml
-  pip install --user cmem-cmemc==26.2.1
  • Setting CMEMC in .env (e.g. CMEMC=cmemc) runs another cmemc on purpose. The default is a shell ${CMEMC:-…} expansion, because a Taskfile vars: entry would otherwise win over .env.
  • uv replaces cmemc as a prerequisite. It was already required for task check:offline and the hooks.
  • Docs follow: generated README, copier-template rule, package-content skill, CHANGELOG.md, CLAUDE.md, and the /release preflight (it now asserts a single pin and no pipeline install).

Evidence

Both test cases rendered from the working tree, on a machine with no cmemc installed:

  • Before: task build → "cmemc": executable file not found in $PATH (or, with one installed, whatever version that was)
    After:
    $ task cmemc -- --version
    cmemc, version 26.2.1, running under python 3.13.8
    $ task build
    Building package archive `eccenca-testing-project-v0.0.0-36bc41d.cpa` ... done
    manifest nulls: []            # same for eccenca-testing-vocab
    
  • Without uv: task: The tasks run a pinned cmemc release through uv. Install it: https://docs.astral.sh/uv/
  • With CMEMC=echo LOCAL-CMEMC in .env: LOCAL-CMEMC package build eccenca-testing-project ...
  • CMEM_BASE_URI from the environment reaches the uvx-run cmemc.

Not run locally: the full task check against a live instance. This PR's CI run covers it.

Merge Danger

Door: two-way

Revert restores the old behaviour. Packages that ran copier update in between get it back with their next update.

Blast Radius: every generated package

  • Machines without uv can no longer run the cmemc tasks (they fail with an install hint).
  • The generated GitLab image must provide uvx. It already ran uv tool install, so it should.
  • Anyone who relied on their own installed cmemc version now gets 26.2.1 unless they set CMEMC in .env.

🤖 Generated with Claude Code

Saipraneeth and others added 3 commits November 16, 2026 21:48
Generated packages called whatever cmemc was on the PATH. A package built
with a development build of cmemc was published with null values in its
manifest, and installing it broke an older Corporate Memory.

Every generated task that runs cmemc now goes through CMEMC, which
defaults to `uvx --from cmem-cmemc==$CMEMC_VERSION cmemc` (26.2.1).
CMEMC_VERSION in src/Taskfile.yaml is the only pin: the generated GitLab
pipeline and this repository's GitHub workflow no longer install cmemc,
so the two pins that used to drift apart are gone. Setting CMEMC in .env
runs another cmemc on purpose, and `task cmemc -- <args>` runs the pinned
release for commands no task wraps.
The shipped rule tells agents to run cmemc commands as `task cmemc --
<args>`, so they get the pinned release, but the build-projects, shapes
and catalog-queries skills still showed bare cmemc commands. They now use
task cmemc too, so the guidance a generated package ships agrees with
itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package-content skill named cmemc 26.2.1 in prose, a second copy of
the version that would go stale on the next bump of CMEMC_VERSION; it now
says "the pinned cmemc release". The root README's uv prerequisite now
says that uv also runs the pinned cmemc of a generated package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@louiswesterheide
louiswesterheide merged commit fced90b into develop Nov 23, 2026
1 check passed
@louiswesterheide
louiswesterheide deleted the feature/pinned-cmemc-CMEM-8419 branch November 23, 2026 09:13
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.

3 participants