Emit machine-readable support-matrix from netengine validate#125
Merged
aidankhogg merged 2 commits intoJun 29, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
--format text|jsonoption tonetengine validateand implement JSON output that includes each active feature-state entry withpath,state,stage,reason,current_value, anddefault_valueusing_resolve_feature_state_pathsand_is_active_feature_valuefor discovery.validate_feature_statesflags toload_spec,load_spec_with_composition,load_spec_with_environment, and the CLI helper_load_spec_for_cli, allowing the CLI to produce machine-readable results before failing._jsonable_feature_valueand_active_feature_state_resultsinnetengine/cli/main.pyand make thevalidatecommand emit structured payloads and exit non-zero when any active field isunsupported.tests/test_cli.py, and updatedocs/support-matrix.mdanddocs/spec-reference.mdwith CI usage examples (netengine validate --format json).Testing
pytest -q tests/test_cli.py tests/test_feature_states.py, and all tests passed (30 passed).test_validate_json_reports_active_feature_statesandtest_validate_json_unsupported_active_feature_exits_nonzerointests/test_cli.py.Codex Task