Conversation
aviralni
force-pushed
the
pyzes_ras_support
branch
from
September 23, 2026 06:03
9ddd3fc to
33454bd
Compare
Added following RAS APIs to python binding: 1. zesDeviceEnumRasErrorSets 2. zesRasGetProperties 3. zesRasGetSupportedCategoriesExp 4. zesRasGetStateExp2 5. zesRasGetConfigExp 6. zesRasSetConfigExp 7. zesRasClearStateExp Along with the required handle, enums, structure types and structures (zes_ras_properties_t, zes_ras_state_exp2_t, zes_ras_config_exp_t), unit tests, a RAS section in the black box test and README updates. Related-To: SYSM-429 Signed-off-by: Aviral Nigam <[email protected]>
aviralni
force-pushed
the
pyzes_ras_support
branch
from
September 23, 2026 10:44
33454bd to
0c00b59
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Default destructive counter clearing, invalid threshold wrapping, and masked test failures must be addressed.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Adds RAS support to the Sysman Python binding.
Changes:
- Adds RAS types, structures, constants, and seven API wrappers.
- Adds unit and black-box test coverage.
- Documents the new APIs.
| File | Description |
|---|---|
bindings/sysman/python/source/pyzes.py |
Implements RAS bindings. |
bindings/sysman/python/test/unit_tests/test_ras.py |
Tests RAS wrappers. |
bindings/sysman/python/source/examples/pyzes_black_box_test.py |
Adds RAS hardware tests and CLI options. |
bindings/sysman/python/README.md |
Documents supported RAS APIs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1027
to
+1036
| else: | ||
| # Only clear categories that have no errors so that no counter data is lost | ||
| for j in range(count): | ||
| if states[j].errorCounter != 0: | ||
| continue | ||
| rc = pz.zesRasClearStateExp(ras_handles[i], categories[j]) | ||
| check_rc( | ||
| f"zesRasClearStateExp(ras {i}, {get_ras_error_category_string(categories[j])})", | ||
| rc, | ||
| ) |
Comment on lines
+1671
to
+1672
| if args.set_threshold is not None and args.set_threshold < 0: | ||
| parser.error("--set-threshold must be a non-negative integer") |
| | `zesDeviceGetEccState` | ECC | 0.1.2 | None | | ||
| | `zesDeviceSetEccState` | ECC | 0.1.2 | None | | ||
| | **RAS (Reliability, Availability, Serviceability)** |-|-|-| | ||
| | `zesDeviceEnumRasErrorSets` | RAS | 0.1.3 | None | |
This branch has not been deployed
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.



Uh oh!
There was an error while loading. Please reload this page.