CMP-4630: ComplianceAsCode/ocp4e2e: Add non-cluster unit presubmit - #84258
Conversation
|
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: Team 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)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughThe ComplianceAsCode CI configuration adds a unit test step. The step runs ChangesComplianceAsCode Unit Tests
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change adds a non-cluster unit-test presubmit for ocp4e2e without altering product runtime behavior; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) Full details: Stable And Deterministic Test NamesExplanation The pull request changes only CI YAML. The added test identifier and generated Prow job name are static ( Full details: Test Structure And QualityExplanation PASS: The pull request changes only two YAML CI configuration files. The diff adds a Full details: Microshift Test CompatibilityExplanation PASS: The pull request changes only two CI YAML files. The parent-to-HEAD diff adds a Full details: Single Node Openshift (Sno) Test CompatibilityExplanation The pull request changes only CI configuration and a generated Prow job. The diff adds a Full details: Topology-Aware Scheduling CompatibilityExplanation PASS — The pull request changes only the ci-operator test configuration and generated Prow presubmit job. The diff adds a Full details: Ote Binary Stdout ContractExplanation PASS: The pull request changes only two CI YAML files. It adds a Full details: Ipv6 And Disconnected Network Test CompatibilityExplanation The pull request changes only two CI YAML files. The added job runs Full details: No-Weak-CryptoExplanation The pull request changes only two YAML CI configuration files. The added lines define a Full details: Container-PrivilegesExplanation PASS — The pull request adds only a Full details: No-Sensitive-Data-In-LogsExplanation PASS: The PR adds only a ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
CC: @taimurhafeez |
4d394f6 to
5a0fe24
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/retest |
The ocp4e2e presubmits only run live-cluster e2e jobs, so the repo's Go unit tests (helpers, resultparser) are never exercised in CI. Add a `unit` test that runs `make test-unit` from src, mirroring compliance-operator's unit step, guarded by skip_if_only_changed for docs/LICENSE-only changes. Needs no cloud lease. Presubmits regenerated with prowgen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
5a0fe24 to
d763e22
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@yuumasato: This pull request references CMP-4630 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 bug to target the "5.1.0" version, but no target version was set. 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. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: taimurhafeez, yuumasato 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 |
|
/pj-rehearse |
|
@yuumasato: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse ack |
|
@yuumasato: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@yuumasato: all tests passed! 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. |
What
Adds a
unitpresubmit toComplianceAsCode/ocp4e2ethat runsmake test-unitfromsrc, mirroring theunitstep inComplianceAsCode/compliance-operator.Today the ocp4e2e presubmits are all live-cluster AWS e2e jobs, so the repo's Go unit tests (
helpers,resultparser) are never run in CI. This job:make test-unit(go test -coverover the packages that have tests, excluding vendor and the cluster-backed root e2e package),skip_if_only_changed: ^.*(md|adoc)$|^LICENSE$.Why now
ocp4e2e PR ComplianceAsCode/ocp4e2e#84 (CMP-4630) adds a unit regression test for the assertion-file generator. Without this presubmit, that test would never run in CI. The
make test-unittarget lands in that PR.How generated
ci-operator/config/ComplianceAsCode/ocp4e2e/ComplianceAsCode-ocp4e2e-main.yaml(added theunittest).ci-operator/jobs/.../ComplianceAsCode-ocp4e2e-main-presubmits.yamlwithmake ci-operator-prowgen WHAT=ComplianceAsCode/ocp4e2e.🤖 Generated with Claude Code
Summary by CodeRabbit
unitpresubmit forComplianceAsCode/ocp4e2e.make test-unitfromsrcwith Go unit-test coverage.LICENSE-only changes.