[avocado-misc] Perf: Use the built perf binary [depends on https://github.com/avocado-framework/avocado/pull/6272]#3087
Conversation
744bff9 to
105e34b
Compare
|
@nasastry, could you please review this pull request. |
|
@PraveenPenguin can you please let us know if |
|
@PraveenPenguin can you also please help with moving forward on avocado-framework/avocado#6272 ? |
|
@nasastry, could you please review this pull request and get it merged to the upstream. |
|
@nasastry, could you please review this pull request and let me know if any changes required. |
1 similar comment
|
@nasastry, could you please review this pull request and let me know if any changes required. |
sure @narasimhan-v |
|
@nasastry, could you please review this pull request. |
|
Hi @PraveenPenguin, could you please help get this pull request merged? All checks have passed, there are no conflicts with the base branch, and the changes have already been approved. Merging this will allow us to proceed with avocado-framework/avocado#6272. Thanks for your support! |
|
install_distro_packages() returns False when packages are already installed. This causes ensure_tool() to raise RuntimeError. All tests CANCEL with "Failed to install packages for perf". Raised PR to fix the issue avocado-framework/avocado#6298 |
|
Consider renaming YAML files to match their test names. |
@disgoel, Changes taken care. And test are working as expected. Could you please review and approve the same. |
@disgoel, Changes taken care. And test are working as expected. Could you please review and approve the same. |
|
@disgoel, could you please review and approve this pull request. Merging this will allow us to proceed with avocado-framework/avocado#6272. Thanks for your support! |
@Sumitupadhyay1 can you look at review comments for perf_script_bug.py & perfmon.py. Otherwise looks good. |
@disgoel, Changes taken care. Could you please review and approve the same. |
00f8ec0 to
9273c70
Compare
|
@disgoel, all the requested changes taken care. Could you please review and approve this pull request. |
|
@Sumitupadhyay1 can you please squash in logical commits .. @disgoel please review |
f074608 to
34998b1
Compare
- Introduced support for specifying a custom perf binary path. - Updated perf test scripts to use ensure_tool() from distro_packages for handling dependent packages when a perf binary path is provided. - Added corresponding .data/ YAML files for test configuration. Signed-off-by: Sumit Kumar <sumitkum@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
- Rename .data YAML files to match test module names; set perf_bin to /tmp/perf. - Restore perf_duplicate.yaml mux (run_type) for perf_duplicate_probe. - perfmon: mux perf_bin without ensure_tool; install only build deps. - perf_script_bug: align with ensure_tool and perf_script_bug.yaml naming. Signed-off-by: Sumit Kumar <sumitkum@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
34998b1 to
67aad1f
Compare
Address review feedback from @disgoel on PR avocado-framework-tests#3087: - Remove the perf_bin mux block in setUp(); tests/validate uses system perf via PATH, so self.perf_bin was never consumed. - Drop associated state (_mux_perf_bin, _saved_path) and PATH restore logic that only existed to support the dead block. - Remove the unnecessary "libpfm4 build deps only" comment. - Trim now-dead perf_bin entries from perfmon.py.data yaml(s). Signed-off-by: Sumit Kumar <sumitkum@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
disgoel
left a comment
There was a problem hiding this comment.
@Sumitupadhyay1 Thanks for addressing the review comments. LGTM
|
@nasastry, Could you please approve and merge this pull request. |
|
@PraveenPenguin Since the patch is approved, merging it. |
for dependency handling when a custom binary path is provided.
to ensure consistency and reproducibility across environments.
Note:
[avocado-utils] : add validation for perf binary in ensure_tool() avocado-framework/avocado#6272