Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jan 21, 2026

As found in the review of #904 (migration from pkwalify to jsonschema), the schema version check can be confusing.

  • Add a couple sentences in MAINTAINERS.rst to clearly state what this version check actually performs and achieves and when (not) to bump the version.

  • Rename "min_version" to "manifest_version" and swap the perspective

"min" and "max" are relative terms, ambiguous when losing track of the point of view. "min_version" stood for
"minimum_west_version_needed_to_read_this_manifest". But this is the manifest perspective, which is confusing when reading west code which is the opposite point of view. A given version of west code is never going to change when reading it or running it! So, flip the perspective and look at things from the west point of view when in the west code: rename the also vague _SCHEMA_VER to _MAX_SUPPORTED_SCHEMA_VER.

As found in the review of zephyrproject-rtos#904 (migration from pkwalify to jsonschema),
the schema version check can be confusing.

- Add a couple sentences in MAINTAINERS.rst to clearly state what this
  version check actually performs and achieves and when (not) to bump the
  version.

- Rename "min_version" to "manifest_version" and swap the perspective

"min" and "max" are relative terms, ambiguous when losing track of the
point of view. "min_version" stood for
"minimum_west_version_needed_to_read_this_manifest". But this is the
manifest perspective, which is confusing when reading west code which is
the opposite point of view.  A given _version_ of west code is never going
to change when reading it or running it! So, flip the perspective and
look at things from the west point of view when in the west code: rename
the also vague _SCHEMA_VER to _MAX_SUPPORTED_SCHEMA_VER.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review January 21, 2026 00:29
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.93%. Comparing base (ed868f7) to head (ed61320).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #909   +/-   ##
=======================================
  Coverage   85.93%   85.93%           
=======================================
  Files          11       11           
  Lines        3455     3455           
=======================================
  Hits         2969     2969           
  Misses        486      486           
Files with missing lines Coverage Δ
src/west/manifest.py 95.43% <100.00%> (ø)

@pdgendt pdgendt requested review from carlescufi and pdgendt January 21, 2026 07:24
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.

2 participants