Skip to content

Add framework-independent Intel LKP helper utilities - #107

Merged
pevogam merged 3 commits into
avocado-framework:mainfrom
Sumitupadhyay1:lkp_benchmark
Jul 23, 2026
Merged

Add framework-independent Intel LKP helper utilities#107
pevogam merged 3 commits into
avocado-framework:mainfrom
Sumitupadhyay1:lkp_benchmark

Conversation

@Sumitupadhyay1

Copy link
Copy Markdown
Contributor

Add a set of framework-independent utilities that simplify working with Intel LKP locally, including helpers to:

  • Clone and install lkp-tests
  • Split and install benchmark jobs
  • Run LKP microbenchmarks locally
  • Discover benchmark result artifacts
  • Archive outputs generated during benchmark runs

Avocado PR: avocado-framework/avocado#6314

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new helper module autils/devel/lkp.py to drive Intel LKP microbenchmarks, providing functions to clone, install, run, and archive benchmark results. The review feedback highlights several critical improvements: validating the testbox parameter to prevent path traversal vulnerabilities, running the subsystem compilation without elevated privileges to avoid root-owned file pollution, executing lkp commands from the repository root rather than subdirectories to ensure reliability, and filtering glob results to only include valid files.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread autils/devel/lkp.py Outdated
Comment thread autils/devel/lkp.py Outdated
Comment thread autils/devel/lkp.py Outdated
Comment thread autils/devel/lkp.py Outdated
Comment thread autils/devel/lkp.py
@pevogam

pevogam commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Hi @Sumitupadhyay1, could you make the PR discoverable and provide some unit tests? See e.g. any previous commit regarding how new modules are added in here and what are the accompanying files in such commits.

@Sumitupadhyay1
Sumitupadhyay1 force-pushed the lkp_benchmark branch 2 times, most recently from 555354d to 2952585 Compare July 15, 2026 14:37
@Sumitupadhyay1

Copy link
Copy Markdown
Contributor Author

Hi @Sumitupadhyay1, could you make the PR discoverable and provide some unit tests? See e.g. any previous commit regarding how new modules are added in here and what are the accompanying files in such commits.

@pevogam I've updated the PR with required changes. Could you please review the same.

@pevogam

pevogam commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Alright, I triggered the tests and some static checks are failing. Please take a look when you can.

Add a set of framework-independent utilities that simplify working
with Intel LKP locally, including helpers to:

- Clone and install lkp-tests
- Split and install benchmark jobs
- Run LKP microbenchmarks locally
- Discover benchmark result artifacts
- Archive outputs generated during benchmark runs

Signed-off-by: Sumit Kumar <sumitkum@amd.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Sumitupadhyay1

Copy link
Copy Markdown
Contributor Author

@pevogam, I've taken care of failing static checks. Could you please review the same.

Sumitupadhyay1 and others added 2 commits July 23, 2026 09:53
pylint (docstyle/docparams extensions) flagged:
- docstring-first-line-empty on the module and every function docstring
- missing sphinx :type:/:rtype: fields alongside :param:/:returns:
- too-many-arguments on _run (7 > 5), disabled inline
- consider-using-f-string on all %-style command composition
- unused-argument on unasserted mock.patch injections in the test file
  (renamed with a leading underscore per the project convention)
- too-many-arguments on a test method with 5 @mock.patch decorators,
  disabled inline

Verified locally with the pinned tool versions (isort==5.10.1,
black==22.3.0, pylint==3.0.0) plus the unit tests, all green.

Co-authored-by: Cursor <cursoragent@cursor.com>

@pevogam pevogam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pevogam
pevogam merged commit 80c5e6f into avocado-framework:main Jul 23, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Review Requested to Done 114 in Default project Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done 114

Development

Successfully merging this pull request may close these issues.

2 participants