Skip to content

manifest: stamp resolved/frozen manifests with the schema version#975

Open
pdgendt wants to merge 1 commit into
zephyrproject-rtos:mainfrom
pdgendt:manifest-emit-version
Open

manifest: stamp resolved/frozen manifests with the schema version#975
pdgendt wants to merge 1 commit into
zephyrproject-rtos:mainfrom
pdgendt:manifest-emit-version

Conversation

@pdgendt

@pdgendt pdgendt commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

west manifest --resolve and --freeze dropped the manifest: version: key from their output. That output is a single manifest synthesized from the input and its imports -- which may each declare a different version -- so no single declared version describes it, and an older west would silently mis-parse newer content instead of failing with a clean ManifestVersionError.

Stamp the output with SCHEMA_VERSION, the highest manifest schema version this west supports. That is a safe upper bound: west cannot emit anything newer than the schema it implements, and it covers imports that declare a newer version than the top-level manifest.

`west manifest --resolve` and `--freeze` dropped the `manifest:
version:` key from their output. That output is a single manifest
synthesized from the input and its imports -- which may each declare a
different version -- so no single declared version describes it, and an
older west would silently mis-parse newer content instead of failing
with a clean ManifestVersionError.

Stamp the output with SCHEMA_VERSION, the highest manifest schema
version this west supports. That is a safe upper bound: west cannot
emit anything newer than the schema it implements, and it covers
imports that declare a newer version than the top-level manifest.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (ff022a1) to head (a302ba4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #975   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          11       11           
  Lines        3532     3533    +1     
=======================================
+ Hits         3050     3051    +1     
  Misses        482      482           
Files with missing lines Coverage Δ
src/west/manifest.py 95.17% <100.00%> (+<0.01%) ⬆️

@pdgendt
pdgendt marked this pull request as ready for review July 21, 2026 20:54
@pdgendt
pdgendt requested review from carlescufi and marc-hb July 21, 2026 20:55
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