Skip to content

chore(rbg): add envtest#145

Merged
Syspretor merged 2 commits intosgl-project:mainfrom
Syspretor:chore/add-env-test
Jan 22, 2026
Merged

chore(rbg): add envtest#145
Syspretor merged 2 commits intosgl-project:mainfrom
Syspretor:chore/add-env-test

Conversation

@Syspretor
Copy link
Copy Markdown
Collaborator

@Syspretor Syspretor commented Jan 21, 2026

Ⅰ. Motivation

Ⅱ. Modifications

  1. Add envtest framework
  2. Add test-envtest in makefile
  3. Add github action to check envtest

Ⅲ. Does this pull request fix one issue?

fixes #XXXX

Ⅳ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅴ. Describe how to verify it

VI. Special notes for reviews

Checklist

  • Format your code make fmt.
  • Add unit tests or integration tests.
  • Update the documentation related to the change.

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds envtest support to the rbg project by vendoring the controller-runtime testing infrastructure and related Kubernetes client packages. This enables integration testing capabilities for Kubernetes controllers.

Changes:

  • Deleted the volcano.sh/apis LICENSE file from vendor directory
  • Added controller-runtime internal testing packages (envtest, controlplane, process, certs, addr, flock)
  • Added k8s.io/apiextensions-apiserver client packages for CRD management
  • Updated vendor/modules.txt to reflect the new dependencies

Reviewed changes

Copilot reviewed 12 out of 97 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vendor/volcano.sh/apis/LICENSE Removed Apache 2.0 license file
vendor/sigs.k8s.io/controller-runtime/pkg/internal/testing/* Added testing infrastructure packages (process, controlplane, certs, addr)
vendor/sigs.k8s.io/controller-runtime/pkg/internal/flock/* Added file locking utilities for port management
vendor/sigs.k8s.io/controller-runtime/pkg/envtest/* Added envtest package for integration testing
vendor/k8s.io/apiextensions-apiserver/pkg/client/* Added CRD client packages (v1, v1beta1, scheme)
vendor/modules.txt Updated to include new vendored packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Syspretor Syspretor force-pushed the chore/add-env-test branch 2 times, most recently from dde3928 to c587af1 Compare January 21, 2026 08:13
@Syspretor Syspretor force-pushed the chore/add-env-test branch 2 times, most recently from 40f4074 to 5646761 Compare January 21, 2026 08:26
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Syspretor Syspretor force-pushed the chore/add-env-test branch 6 times, most recently from c8985ed to 3ab6d7c Compare January 21, 2026 11:15
@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented Jan 21, 2026

@Syspretor please fix the lint issue:

Error: test/envtest/testutil/setup.go:27:2: should not use dot imports (ST1001)
Error: test/envtest/testutil/setup.go:28:2: should not use dot imports (ST1001)

@Syspretor Syspretor force-pushed the chore/add-env-test branch 9 times, most recently from 297624e to 06d1e6f Compare January 22, 2026 08:20
Copy link
Copy Markdown
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@Syspretor Syspretor merged commit 4d4cbaf into sgl-project:main Jan 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants