Skip to content

feat: consolidate verification into the modpoll verify command - #135

Merged
gavinying merged 1 commit into
v2from
verify-command
Nov 12, 2026
Merged

gavinying merged 1 commit into
v2from
verify-command

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

Maintainer review of the 2.0.0a7 surface (2026-11-12), follow-up to #132/#134:

  • New subcommand: modpoll verify --config MODEL --tcp HOST replaces the --full-read flag cluster. It reads every point of one Thing Model once (read-only, no retries, timeout capped at 10 s), records a per-point result, and --report FILE/--upload keep their meaning under it. --report/--upload/--confirm/--yes/--product now belong to verify and are rejected elsewhere with a pointer to the command.
  • --device is removed: --config already covers local files, URLs and modiohub: Workspace references, so the catalog fetch (parse_device, fetch_catalog_model, GitHub helpers) is deleted. Reports for local models name the product through the existing --product.
  • --chassis/--firmware/--configuration are removed; the report schema treats the environment as optional, so reports simply omit it.

Verification

  • make check passes; pytest tests -m "not integration": 235 passed, 58 deselected, including new refusal cases for every removed spelling and verify-mode option matrix.
  • End-to-end against local modsim 2.0.0a8: modpoll verify --config examples/modsim.tm.json --tcp ... --product acme/modsim --report report.json exits 0 with all 37 points ok; CSV under verify and verification flags without verify are rejected with one-line exit-code-2 errors.

modpoll verify --config MODEL --tcp HOST reads every point of one Thing
Model once, read-only and without retries, with a bounded timeout and a
per-point result; --report FILE writes the verification report and
--upload shows it and uploads it after confirmation. The --full-read,
--device and --chassis/--firmware/--configuration options are removed:
--config already covers local files, URLs and modiohub: Workspace
references, and the report schema treats the environment as optional.
Verification options without the verify subcommand exit 2 with a
pointer to it. The catalog fetch (parse_device, fetch_catalog_model and
the GitHub helpers) and its tests are deleted.
@gavinying
gavinying merged commit e9a0f48 into v2 Nov 12, 2026
6 checks passed
@gavinying
gavinying deleted the verify-command branch November 12, 2026 15:47
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