OTA-2024: Add unit test CI job for openshift/agentic-skills#81732
OTA-2024: Add unit test CI job for openshift/agentic-skills#81732jhadvig wants to merge 1 commit into
Conversation
|
@jhadvig: This pull request references OTA-2024 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target either version "5.0." or "openshift-5.0.", but it targets "openshift-5.1" instead. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe OpenShift agentic-skills build configuration adds a ChangesAgentic skills test configuration
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jhadvig The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Add a `unit` presubmit job that runs plc_lookup.py unit tests on PRs touching skill scripts. Uses the existing skill-scanner image which already has Python 3.11 and the repo source. Skips on docs-only and evals-only changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8d21dd3 to
22a2131
Compare
|
/pj-rehearse auto-ack |
|
@jhadvig: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@jhadvig: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Add a
unitpresubmit job foropenshift/agentic-skillsthat runs Python unit tests for theplc_lookup.pyCLI tool (added in openshift/agentic-skills#35).Changes
unittest entry runningpython3 -m unittest discoveragainstcluster-update/product-lifecycle/scripts/tests/make ci-operator-prowgenThe job reuses the existing
skill-scannerimage (Python 3.11 + repo source) and skips on docs-only and evals-only changes.Context
Part of OTA-2024 — evaluation work for AI-guided cluster updates. The unit tests cover the Product Life Cycle API CLI tool: status passthrough, phase extraction, package-to-product lookup with duplicate handling, fallback search, and API error handling (33 tests, 0.02s).
Test plan
python3 -m unittest discover -s cluster-update/product-lifecycle/scripts/tests -v(33 pass)make ci-operator-configran successfullymake ci-operator-prowgenran successfully🤖 Generated with Claude Code
Summary by CodeRabbit
Adds a new OpenShift CI presubmit
unitjob foropenshift/agentic-skills(configured inci-operator/config/openshift/agentic-skills/openshift-agentic-skills-main.yaml) to run theplc_lookup.pytool’s Python unit tests viapython3 -m unittest discoverusing the existingskill-scannerimage. The job is wired to skip when changes are docs-only or evals-only, while leaving the existingevaljob behavior unchanged (config generated withmake ci-operator-prowgen; 33 unit tests reportedly pass locally).CI robot feedback also notes that OTA-2024 is a valid Jira issue, but its target version is currently misaligned with the branch expectations (
openshift-5.1vs5.0.*/openshift-5.0.*).