Skip to content

Extends suppored input formats for hardware key#4877

Open
happz wants to merge 3 commits into
mainfrom
hardware-from-file-or-blob
Open

Extends suppored input formats for hardware key#4877
happz wants to merge 3 commits into
mainfrom
hardware-from-file-or-blob

Conversation

@happz
Copy link
Copy Markdown
Contributor

@happz happz commented May 7, 2026

  • CLI option now accepts JSON blob, and JSON or YAML files.
  • Metadata key accepts JSON or YAML files besides already accepting hardware requirements.
  • CLI option no longer accepts key=value form, it turns out to be much harder to merge with other forms. It is trivial to rewrite it as JSON.

Related to #3542.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • modify the json schema
  • mention the version
  • include a release note

@happz happz added this to planning May 7, 2026
@happz happz added area | hardware Implementation of hardware requirements ci | full test Pull request is ready for the full test execution labels May 7, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning May 7, 2026
@happz happz moved this from backlog to implement in planning May 7, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the hardware key in provision plugins to support JSON/YAML file references and direct JSON blobs, while removing support for key=value CLI snippets. A new utility function _normalize_structured_blob handles these inputs, including URL fetching. Feedback suggests using is_url() for robust URL detection and specifying utf-8 encoding when reading files.

Comment thread tmt/utils/__init__.py Outdated
Comment thread tmt/utils/__init__.py
happz added 3 commits May 11, 2026 09:36
* CLI option now accepts JSON blob, and JSON or YAML files.
* Metadata key accepts JSON or YAML files besides already accepting
  hardware requirements.
* CLI option no longer accepts `key=value` form, it turns out to be much
  harder to merge with other forms. It is trivial to rewrite it as JSON.

Related to #3542.
@happz happz force-pushed the hardware-from-file-or-blob branch from e973289 to c6996af Compare May 11, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | hardware Implementation of hardware requirements ci | full test Pull request is ready for the full test execution

Projects

Status: implement

Development

Successfully merging this pull request may close these issues.

1 participant