Skip to content

Conversation

@wangke19
Copy link
Contributor

@wangke19 wangke19 commented Nov 20, 2025

after some discussions, we decided to do the following,

Summary

  • Simplified test infrastructure to single-module architecture
  • Removed custom test suite configuration and test spec manipulation
  • Updated build configuration to use standard build machinery
  • Cleaned up custom Makefile targets
  • Added README.md with Tests section

Changes

Infrastructure (Commit 1)

  • Simplified cmd/oauth-apiserver-tests-ext/main.go (reduced from 113 to 54 lines)
    • Removed custom suite definitions, test manipulation, hooks
    • Now just registers extension with OTE framework
  • Updated Dockerfile.rhel7 to use standard make build
  • Cleaned up Makefile - removed custom test targets
  • Added README.md with Tests section following cluster-kube-apiserver-operator pattern

Dependencies (Commit 2)

  • Ran go mod tidy and go mod vendor
  • Removed unused ginkgo-related vendor files
  • Updated vendor/ directory

Verification

  • make build passes
  • ✅ Test binary runs with OTE framework commands
  • ✅ Both binaries built successfully (oauth-apiserver: 116M, oauth-apiserver-tests-ext: 28M)
  • ✅ Two commits following migration guide structure

Pattern Reference

Follows the pattern from:

  • cluster-kube-apiserver-operator's gangwgr-test-infrastructure-setup-v2 branch
  • service-ca-operator PR #290
  • cluster-config-operator PR #452

Migration Guide

Based on: ote-single-module-migration-guide.md (Scenario B: Simplifying existing OTE implementation)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

@wangke19 wangke19 changed the title Migrate to single-module OTE test infrastructure CNTRLPLANE-1259: Simplified test infrastructure to single-module architecture Nov 20, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 20, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 20, 2025

@wangke19: This pull request references CNTRLPLANE-1259 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 the "4.21.0" version, but no target version was set.

In response to this:

Summary

  • Simplified test infrastructure to single-module architecture
  • Removed custom test suite configuration and test spec manipulation
  • Updated build configuration to use standard build machinery
  • Cleaned up custom Makefile targets
  • Added README.md with Tests section

Changes

Infrastructure (Commit 1)

  • Simplified cmd/oauth-apiserver-tests-ext/main.go (reduced from 113 to 54 lines)
  • Removed custom suite definitions, test manipulation, hooks
  • Now just registers extension with OTE framework
  • Updated Dockerfile.rhel7 to use standard make build
  • Cleaned up Makefile - removed custom test targets
  • Added README.md with Tests section following cluster-kube-apiserver-operator pattern

Dependencies (Commit 2)

  • Ran go mod tidy and go mod vendor
  • Removed unused ginkgo-related vendor files
  • Updated vendor/ directory

Verification

  • make build passes
  • ✅ Test binary runs with OTE framework commands
  • ✅ Both binaries built successfully (oauth-apiserver: 116M, oauth-apiserver-tests-ext: 28M)
  • ✅ Two commits following migration guide structure

Pattern Reference

Follows the pattern from:

  • cluster-kube-apiserver-operator's gangwgr-test-infrastructure-setup-v2 branch
  • service-ca-operator PR #290
  • cluster-config-operator PR #452

Migration Guide

Based on: ote-single-module-migration-guide.md (Scenario B: Simplifying existing OTE implementation)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

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.

@openshift-ci openshift-ci bot requested review from sanchezl and tkashem November 20, 2025 13:13
@wangke19 wangke19 force-pushed the ote-single-module-migration branch from d821e61 to 5bf5686 Compare November 20, 2025 13:26
@wangke19
Copy link
Contributor Author

/test e2e-aws

@wangke19 wangke19 force-pushed the ote-single-module-migration branch from 5bf5686 to e63d0c4 Compare November 21, 2025 09:40
@gangwgr
Copy link

gangwgr commented Nov 21, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2025
@openshift-ci
Copy link

openshift-ci bot commented Nov 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gangwgr, wangke19
Once this PR has been reviewed and has the lgtm label, please assign p0lyn0mial 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

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 21, 2025

@wangke19: This pull request references CNTRLPLANE-1259 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 the "4.21.0" version, but no target version was set.

In response to this:

after some discussions, we decided to do the following,

Summary

  • Simplified test infrastructure to single-module architecture
  • Removed custom test suite configuration and test spec manipulation
  • Updated build configuration to use standard build machinery
  • Cleaned up custom Makefile targets
  • Added README.md with Tests section

Changes

Infrastructure (Commit 1)

  • Simplified cmd/oauth-apiserver-tests-ext/main.go (reduced from 113 to 54 lines)
  • Removed custom suite definitions, test manipulation, hooks
  • Now just registers extension with OTE framework
  • Updated Dockerfile.rhel7 to use standard make build
  • Cleaned up Makefile - removed custom test targets
  • Added README.md with Tests section following cluster-kube-apiserver-operator pattern

Dependencies (Commit 2)

  • Ran go mod tidy and go mod vendor
  • Removed unused ginkgo-related vendor files
  • Updated vendor/ directory

Verification

  • make build passes
  • ✅ Test binary runs with OTE framework commands
  • ✅ Both binaries built successfully (oauth-apiserver: 116M, oauth-apiserver-tests-ext: 28M)
  • ✅ Two commits following migration guide structure

Pattern Reference

Follows the pattern from:

  • cluster-kube-apiserver-operator's gangwgr-test-infrastructure-setup-v2 branch
  • service-ca-operator PR #290
  • cluster-config-operator PR #452

Migration Guide

Based on: ote-single-module-migration-guide.md (Scenario B: Simplifying existing OTE implementation)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

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.

@wangke19
Copy link
Contributor Author

/verified by CI tests

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 24, 2025
@openshift-ci-robot
Copy link
Contributor

@wangke19: This PR has been marked as verified by CI tests.

In response to this:

/verified by CI tests

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.

@p0lyn0mial
Copy link
Contributor

@wangke19 wangke19 force-pushed the ote-single-module-migration branch from e63d0c4 to 8035c02 Compare November 25, 2025 08:09
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Nov 25, 2025
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2025
@openshift-ci
Copy link

openshift-ci bot commented Nov 25, 2025

New changes are detected. LGTM label has been removed.

@wangke19
Copy link
Contributor Author

wangke19 and others added 2 commits November 25, 2025 18:29
Infrastructure changes to adopt OTE (OpenShift Tests Extension) framework:

- Simplified cmd/oauth-apiserver-tests-ext/main.go (113 → 54 lines)
  - Removed custom suite definitions, test manipulation, and hooks
  - Now directly registers extension with OTE framework
  - Uses standard OTE command structure

- Updated build configuration:
  - Modified Dockerfile.rhel7 to use standard `make build`
  - Removed custom test targets from Makefile (tests-ext-build, tests-ext-update)
  - Updated .gitignore for .gz test binary

- Enhanced documentation:
  - Added comprehensive README.md with:
    - API Groups section (OAuth and User APIs)
    - Resource types documentation
    - Overview of core features
    - Tests section following cluster-kube-apiserver-operator pattern

- Cleaned up test directory:
  - Removed test/.openshift-tests-extension/openshift_payload_oauth-apiserver.json
  - Removed test/extended/README.md and test/extended/main.go
  - Added test/OWNERS

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Dependency updates following test infrastructure simplification:

- Updated go.mod:
  - Moved github.com/onsi/ginkgo/v2 from direct to indirect dependency
  - Moved github.com/onsi/gomega from direct to indirect dependency
  - Removed github.com/go-task/slim-sprig/v3 (ginkgo CLI dependency)

- Cleaned up vendor/ directory (256 files, ~196K deletions):
  - Removed github.com/go-task/slim-sprig/v3 (ginkgo CLI dependency)
  - Removed github.com/onsi/ginkgo/v2 (CLI tools and internal packages)
  - Removed github.com/onsi/gomega (full package)
  - Removed vendor/github.com/openshift-eng/openshift-tests-extension/pkg/ginkgo/*
  - Removed transitive dependencies:
    - golang.org/x/net/html (gomega dependency)
    - golang.org/x/text/encoding (gomega dependency)
    - golang.org/x/tools/cover and go/ast/inspector (ginkgo CLI deps)
  - Updated vendor/modules.txt

These packages are no longer needed as direct dependencies since the
codebase now uses the OTE framework instead of custom ginkgo integration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@wangke19 wangke19 force-pushed the ote-single-module-migration branch from 2530976 to 0a47835 Compare November 25, 2025 10:31
@openshift-ci
Copy link

openshift-ci bot commented Nov 25, 2025

@wangke19: all tests passed!

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.

4 participants