Skip to content

Conversation

kuiwang02
Copy link

⏺ # Add OTE (OpenShift Tests Extension) into olmv0 (Follow the olmv1 approach and reference code)

Summary

This PR introduces OTE (OpenShift Tests Extension) into olmv0, adding a comprehensive testing framework for operator lifecycle management v0 testing.

Key Changes

New Testing Extension

  • Added staging/tests-extension/ directory with complete test framework infrastructure
  • Main test runner (cmd/main.go) for executing test suites
  • Extended test framework (test/extended/) with OLMv0 specific test specs
  • Binary data generation for test resources using go-bindata

Build System Updates

  • Updated .bingo/ configuration to include new development tools:
    • go-bindata v3.1.2+incompatible for embedding binary data
    • golangci-lint v2.1.6 for enhanced code linting
  • Added Makefile for test extension build and execution
  • Updated Dockerfile to support the new testing framework

Configuration

  • OWNERS file for proper code review assignments
  • Git ignore rules for test artifacts
  • OpenShift payload configuration for test execution

Files Added/Modified

Core Files

  • staging/tests-extension/cmd/main.go - Main test runner
  • staging/tests-extension/test/extended/specs/olmv0.go - OLMv0 test specifications
  • staging/tests-extension/Makefile - Build configuration
  • staging/tests-extension/OWNERS - Code ownership

Build Configuration

  • .bingo/Variables.mk - Updated build variables
  • .bingo/go-bindata.mod - Go-bindata module configuration
  • .bingo/golangci-lint.mod - Linting tool configuration
  • operator-lifecycle-manager.Dockerfile - Updated Docker build

Test Result

./bin/olmv0-tests-ext run-test "[sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check"
  Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-olm/staging/tests-extension
  ============================================================================================================================
  Random Seed: 1757646230 - will randomize all specs

  Will run 1 of 1 specs
  ------------------------------
  [sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check
  /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-olm/staging/tests-extension/test/extended/specs/olmv0.go:11
  • [0.000 seconds]
  ------------------------------

  Ran 1 of 1 Specs in 0.000 seconds
  SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
[
  {
    "name": "[sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check",
    "lifecycle": "blocking",
    "duration": 0,
    "startTime": "2025-09-12 03:03:50.875399 UTC",
    "endTime": "2025-09-12 03:03:50.876175 UTC",
    "result": "passed",
    "output": ""
  }
]

Assisted-by: Claude Code

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 12, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 12, 2025

@kuiwang02: This pull request references OCPQE-29415 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 story to target the "4.21.0" version, but no target version was set.

In response to this:

⏺ # Add OTE (OpenShift Tests Extension) into olmv0 (Follow the olmv1 approach and reference code)

Summary

This PR introduces OTE (OpenShift Tests Extension) into olmv0, adding a comprehensive testing framework for operator lifecycle management v0 testing.

Key Changes

New Testing Extension

  • Added staging/tests-extension/ directory with complete test framework infrastructure
  • Main test runner (cmd/main.go) for executing test suites
  • Extended test framework (test/extended/) with OLMv0 specific test specs
  • Binary data generation for test resources using go-bindata

Build System Updates

  • Updated .bingo/ configuration to include new development tools:
    • go-bindata v3.1.2+incompatible for embedding binary data
    • golangci-lint v2.1.6 for enhanced code linting
  • Added Makefile for test extension build and execution
  • Updated Dockerfile to support the new testing framework

Configuration

  • OWNERS file for proper code review assignments
  • Git ignore rules for test artifacts
  • OpenShift payload configuration for test execution

Files Added/Modified

Core Files

  • staging/tests-extension/cmd/main.go - Main test runner
  • staging/tests-extension/test/extended/specs/olmv0.go - OLMv0 test specifications
  • staging/tests-extension/Makefile - Build configuration
  • staging/tests-extension/OWNERS - Code ownership

Build Configuration

  • .bingo/Variables.mk - Updated build variables
  • .bingo/go-bindata.mod - Go-bindata module configuration
  • .bingo/golangci-lint.mod - Linting tool configuration
  • operator-lifecycle-manager.Dockerfile - Updated Docker build

Test Result

./bin/olmv0-tests-ext run-test "[sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check"
 Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-olm/staging/tests-extension
 ============================================================================================================================
 Random Seed: 1757646230 - will randomize all specs

 Will run 1 of 1 specs
 ------------------------------
 [sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check
 /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-olm/staging/tests-extension/test/extended/specs/olmv0.go:11
 • [0.000 seconds]
 ------------------------------

 Ran 1 of 1 Specs in 0.000 seconds
 SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
[
 {
   "name": "[sig-operator][Jira:OLM] OLMv0 should pass a trivial sanity check",
   "lifecycle": "blocking",
   "duration": 0,
   "startTime": "2025-09-12 03:03:50.875399 UTC",
   "endTime": "2025-09-12 03:03:50.876175 UTC",
   "result": "passed",
   "output": ""
 }
]

Assisted-by: Claude Code

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.

Copy link
Contributor

openshift-ci bot commented Sep 12, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kuiwang02
Once this PR has been reviewed and has the lgtm label, please assign joelanford for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@perdasilva
Copy link
Contributor

/retest

Copy link
Contributor

openshift-ci bot commented Sep 12, 2025

@kuiwang02: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-olm-flaky a3ba3ae link false /test e2e-gcp-olm-flaky

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants