OTA-2024: Add unit test CI job for openshift/agentic-skills - #81732
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. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe OpenShift agentic-skills CI configuration installs ChangesAgentic skills CI configuration
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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. |
|
/pj-rehearse auto-ack |
|
@jhadvig: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
| tests: | ||
| - as: unit | ||
| commands: | | ||
| python3 -m unittest cluster-update/product-lifecycle/scripts/tests/test_plc_lookup.py -v |
There was a problem hiding this comment.
Maybe instead we can run python3 -m pytest --ignore=evals -v ?
I think this should autodiscover any unittest.TestCases classes, so we don't need to point to a specific set of unit tests for a single skill
f78aeb0 to
6fd9109
Compare
|
/pj-rehearse |
|
@Cali0707: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jhadvig you may need to install pytest: |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6fd9109 to
3c5e96f
Compare
|
/pj-rehearse auto-ack |
|
@jhadvig: your |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse auto-ack |
|
@jhadvig: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-openshift-agentic-skills-main-eval |
|
@jhadvig: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jhadvig the eval job is currently failing for unrelated reasons, I don't think that should block here |
|
@Cali0707 thank you /pj-rehearse ack |
|
@jhadvig: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, jhadvig The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@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. |
284a08b
into
openshift:main
…t#81732) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Updates OpenShift CI presubmit configuration for
openshift/agentic-skills. Adds aunitjob that runspython3 -m pytest --ignore=evals -vin theskill-scannerimage. The job skips changes limited to non-impacting files, includingevals/. The existingevaljob is unchanged.CI feedback reports that
OTA-2024is valid, but itsopenshift-5.1target version does not match the expected5.0.*oropenshift-5.0.*target.