Skip to content

feat(conformance): Add test execution instruction to the guide. #878

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

SinaChavoshi
Copy link
Contributor

This pr fixes a formatting issue in the report guide as well as adding instructions for test execution.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 27, 2025
Copy link

netlify bot commented May 27, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 16d8ebc
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/6839042227b3290008f749e1
😎 Deploy Preview https://deploy-preview-878--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot requested review from danehans and kfswain May 27, 2025 22:32
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 27, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @SinaChavoshi. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 27, 2025
@danehans
Copy link
Contributor

@SinaChavoshi thanks for creating these conformance docs. The docs need to be in site-src to get published to the docs site.

Consider adding your readme here: https://gateway-api-inference-extension.sigs.k8s.io/guides/implementers/#conformance-tests.

See these Make targets for building and locally serving the docs to review your changes.


This document provides steps to run the Gateway API Inference Extension conformance tests.

## Prerequisites: External Istio/Envoy Setup
Copy link
Contributor

@danehans danehans May 30, 2025

Choose a reason for hiding this comment

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

Replace Prerequisites: External Istio/Envoy Setup with Prerequisites


## Prerequisites: External Istio/Envoy Setup

Before running the conformance tests, you need a Kubernetes cluster (e.g., GKE) with [LoadBalancer](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) support. Refer to [The Quickstart Guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/) for more details.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove (e.g., GKE)

Copy link
Contributor

@danehans danehans May 30, 2025

Choose a reason for hiding this comment

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

  • Running the EPP or EPP mock is a prerequisite. See Conformance: Add Mock EPP #893 for details. Leave this prerequisite as a TODO with a link to the issue so we can merge this PR.

Since this section will contain multiple prerequisites, consider using a numbered list.


Before running the conformance tests, you need a Kubernetes cluster (e.g., GKE) with [LoadBalancer](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) support. Refer to [The Quickstart Guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/) for more details.

## Running the Conformance Tests
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: s/Running the Conformance Tests/Running Conformance Tests/

## Running the Conformance Tests

1. **Choose an Implementation**:
Install an [existing implementation](https://gateway-api-inference-extension.sigs.k8s.io/implementations/gateways/) or run tests against your implementation after completing the [implementer's guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/implementers/#implementers-guide).
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this step should be in the Prerequisites section.

```

3. **Execute Tests**:
Run the following command to execute all available tests. Replace <your_gatewayclass_name> with the GatewayClass used by the implementation under test.
Copy link
Contributor

@danehans danehans May 30, 2025

Choose a reason for hiding this comment

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

s/<your_gatewayclass_name>/<your_gatewayclass_name>/ (otherwise the text does not get rendered by mkdocs).

@@ -0,0 +1,44 @@

Copy link
Contributor

@danehans danehans May 30, 2025

Choose a reason for hiding this comment

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

mkdocs cannot find this doc without updating mkdocs.yml. Here's a docs structure to consider:

diff --git a/mkdocs.yml b/mkdocs.yml
index 1741fd1..675d837 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -65,7 +65,9 @@ nav:
           - Adapter Rollout: guides/adapter-rollout.md
           - InferencePool Rollout: guides/inferencepool-rollout.md
       - Metrics: guides/metrics.md
-    - Implementer's Guide: guides/implementers.md
+    - Implementer Guides:
+      - Getting started: guides/implementers.md
+      - Conformance Tests: guides/conformance-tests.md
   - Performance:
     - Benchmark: performance/benchmark/index.md
     - Regression Testing: performance/regression-testing/index.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants