Skip to content

test: extract EPP envtest harness into test/framework/epp/harness#36

Open
chethanuk wants to merge 1 commit into
feat/1188-harness-apifrom
feat/1188-harness-move
Open

test: extract EPP envtest harness into test/framework/epp/harness#36
chethanuk wants to merge 1 commit into
feat/1188-harness-apifrom
feat/1188-harness-move

Conversation

@chethanuk

Copy link
Copy Markdown
Owner

What type of PR is this?

/kind cleanup
/kind test

What this PR does / why we need it:

Last of eight in the llm-d#1188 split. It follows the harness API PR, which did the
semantic work so this one reads as a move.

The harness goes from test/integration/epp to test/framework/epp/harness.
common_tests.go cannot keep its pod and metric helpers, because WithPods and
WaitForReadyPodsMetric use every one of them.

It gets its own package at the bottom of the tree: it imports cmd/epp/runner and so
the whole server, so only test/integration/epp and future e2e suites import it, never
a test under pkg/, which would risk a cycle back into the runner's dependencies.

One thing is not the move: the Makefile drops the harness from
framework_TEST_PACKAGES, since make test-unit-framework starts no API server and
would report zero coverage for code the hermetic suite exercises.

Test plan:

  • go build and go vet ./test/... clean at this commit
  • make test-integration-hermetic passes, 68 tests, no failures, so the embed
    resolves at the new path
  • go test ./test/framework/... passes with the harness out of the set

Which issue(s) this PR fixes:

Part of llm-d#1188

Release note (write NONE if no user-facing change):

NONE

The harness is the only remaining piece of shared EPP integration setup
that lives under test/integration; moving it lets suites outside that
directory drive an envtest-backed EPP without duplicating the bootstrap.

The harness needs envtest and is exercised by test-integration-hermetic,
so it is excluded from the framework unit-coverage component to avoid
reporting 0% for code that is in fact covered.

Part of llm-d#1188

Signed-off-by: ChethanUK <chethanuk@outlook.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: abe7c941-dab2-4394-ad94-e2c194c6325a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/1188-harness-move

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the test framework by moving the test harness and associated metrics/data structures (such as PodState, P, and metric helper functions) from the epp package into a dedicated harness package (test/framework/epp/harness). The Makefile is updated to exclude this harness from unit test coverage calculations, and all integration tests are updated to import and use the new eppharness package. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant