Skip to content

workspace concretize: define missing variables and expand software specs - #1761

Open
chinglung880218 wants to merge 1 commit into
Ramble-Project:developfrom
chinglung880218:fix-concretize-missing-variables
Open

workspace concretize: define missing variables and expand software specs#1761
chinglung880218 wants to merge 1 commit into
Ramble-Project:developfrom
chinglung880218:fix-concretize-missing-variables

Conversation

@chinglung880218

Copy link
Copy Markdown
Contributor

Fixes an issue where running 'ramble workspace concretize' failed with a schema ValidationError (CommentedMap is not of type 'string') when compiler or software specs contained variable templates (e.g., {system_compiler_spec}).

Key changes:

  • Call app_inst.define_missing_variables() during concretize to ensure system, platform, and modifier variables are registered in app_inst.variables.
  • Add _expand_software_spec() to expand template variables in SoftwareSpec instances (pkg_spec, compiler_spec, compiler) for both compilers and specs.
  • Add regression unit tests with mock application and modifier in workspace_concretize.py.

@chinglung880218
chinglung880218 force-pushed the fix-concretize-missing-variables branch 2 times, most recently from edec350 to bc4a89a Compare September 3, 2026 00:38
Fixes an issue where running 'ramble workspace concretize' failed with a
schema ValidationError (CommentedMap is not of type 'string') when compiler
specs contained variable templates (e.g., {system_compiler_spec}).

Key changes:
- Call app_inst.define_missing_variables() during concretize to ensure
  system, platform, and modifier variables are registered in app_inst.variables.
- Add _expand_software_spec() to expand template variables in SoftwareSpec
  instances (pkg_spec, compiler_spec, compiler) for compiler definitions.
- Add regression unit tests with mock application and modifier in
  workspace_concretize.py.

Signed-off-by: Ching-Lung Hsu <chinglunghsu@google.com>
@chinglung880218
chinglung880218 force-pushed the fix-concretize-missing-variables branch from bc4a89a to 029eb60 Compare September 3, 2026 04:00
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