-
Notifications
You must be signed in to change notification settings - Fork 39
CNTRLPLANE-1259: Simplified test infrastructure to single-module architecture #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@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:
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. |
d821e61 to
5bf5686
Compare
|
/test e2e-aws |
5bf5686 to
e63d0c4
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gangwgr, wangke19 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 |
|
@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:
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. |
|
/verified by CI tests |
|
@wangke19: This PR has been marked as verified by In 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. |
e63d0c4 to
8035c02
Compare
|
New changes are detected. LGTM label has been removed. |
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>
2530976 to
0a47835
Compare
|
@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. |
after some discussions, we decided to do the following,
Summary
Changes
Infrastructure (Commit 1)
make buildDependencies (Commit 2)
go mod tidyandgo mod vendorVerification
make buildpassesPattern Reference
Follows the pattern from:
gangwgr-test-infrastructure-setup-v2branchMigration 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