-
Notifications
You must be signed in to change notification settings - Fork 1
Rocm subversion enhancement #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
- Add check_exp_rocm_sub_versions method that returns bool - Track validation results using boolean flags before setting final status - Update result.message to include all validation outcomes - Prevent result override by collecting all check results first - Follow pattern similar to package_analyzer and dkms_analyzer Co-authored-by: Cursor <cursoragent@cursor.com>
| "exp_rocm": "7.0.0-38", | ||
| "exp_rocm_sub_versions": { | ||
| "version_rocm": "7.0.0-38" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldnt the "subversion" part be whatever is after the ":". exp_rocm arg should stay as it is, the exp_rocm_sub_versions should check the subversion part. Here it looks like subversion is just another way to say rocm_version, i dont see the colon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per ES implementation everthing under rocm/.info/* is considered subversion where one of the line is version_rocm but we can replace expected value under exp_rocm_subverdion with anything from below
r$ grep . -r /opt/rocm/.info/* /opt/rocm/.info/version:7.0.1 /opt/rocm/.info/version-hiprt:7.0.1-42 /opt/rocm/.info/version-hiprt-devel:7.0.1-42 /opt/rocm/.info/version-lrt:7.0.1-42 /opt/rocm/.info/version-oclrt:7.0.1-42 /opt/rocm/.info/version-ocl-sdk:7.0.1-42 /opt/rocm/.info/version-openmp:7.0.1-42 /opt/rocm/.info/version-rocm:7.0.1-42 /opt/rocm/.info/version-rocm-developer-tools:7.0.1-42 /opt/rocm/.info/version-rocm-hip:7.0.1-42
| # Handle comma-separated plugin names (but not option values like JSON) | ||
| arg_stripped = arg.strip() | ||
| looks_like_value = arg_stripped.startswith("{") or arg_stripped.startswith("[") | ||
| if not arg.startswith("-") and "," in arg and not looks_like_value: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have not made the decision to allow comma separated plugins, so lets remove this
| "version": "6.2.0-66", | ||
| "version-rocm": "6.2.0-66", | ||
| "version-hip-sdk": "6.2.0-66", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, what is the difference between rocm_version="6.2.0-66" and rocm_sub_version? where version="6.2.0-66"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here version and version-rocm is output of :
`(venv) (py39) jaspals@ppac-cyxtera-cx77-5:~/node-scraper$ grep . -r /opt/rocm/.info/version-rocm
7.0.1-42
(venv) (py39) jaspals@ppac-cyxtera-cx77-5:~/node-scraper$ grep . -r /opt/rocm/.info/version
7.0.1
`
subversions is anything present under this cmd like version-hiprt:7.0.1-42, also version-lrt:7.0.1-42 etc :
(venv) (py39) jaspals@ppac-cyxtera-cx77-5:~/node-scraper$ grep . -r /opt/rocm/.info/* /opt/rocm/.info/version:7.0.1 /opt/rocm/.info/version-hiprt:7.0.1-42 /opt/rocm/.info/version-hiprt-devel:7.0.1-42 /opt/rocm/.info/version-lrt:7.0.1-42 /opt/rocm/.info/version-oclrt:7.0.1-42 /opt/rocm/.info/version-ocl-sdk:7.0.1-42 /opt/rocm/.info/version-openmp:7.0.1-42 /opt/rocm/.info/version-rocm:7.0.1-42 /opt/rocm/.info/version-rocm-developer-tools:7.0.1-42 /opt/rocm/.info/version-rocm-hip:7.0.1-42
|
I think we are adding too many error messages somewhere, the count for errors is 2 but its only displaying one. Either we are not displaying both errors or we there should just be 1 error count: Im using the plugin config from the functional test: |
Run:
node-scraper run-plugins RocmPlugin --exp-rocm 7.0.1-42 --exp-rocm-sub-versions '{"version-lrt":"7.0.1-42", "version-rocm-developer-tools": "7.0.1-42"}'