← Back to Pull requests

test(e2e): build the e2e EG config from a shared base #10683

Merged
zhaohuabing merged 15 files (359 lines) on Nov 25, 2026 07:32 UTC
View on GitHub
zhaohuabing zhaohuabing commented on Nov 25, 2026 01:55 UTC
Author

Every e2e profile used to carry a full copy of the envoy-gateway-config ConfigMap, so a shared setting like the rate limit timeout had to be changed in six places. Now e2e-prepare renders the ConfigMap with helm template, layering:

  • test/config/envoy-gateway-config/base.yaml, the config shared by every profile

  • the profile's helm values from test/config/helm/<profile>.yaml

  • an optional test/config/envoy-gateway-config/<profile>.yaml for e2e-only overrides that shouldn't apply to conformance, such as the watch-namespaces selector
  • The rendered config matches the old files, plus the chart defaults the old overlay dropped (logging level, rate limit image, shutdown manager image), which now match what helm install writes.

    Other changes:

  • The debounce helm profile no longer sets debounce.enable, a field the API doesn't have.

  • The envoy-gateaway-config directory is renamed to fix the typo. The remote-infra ConfigMap moves next to its sidecar patch, since it's a full ConfigMap rather than helm values.
  • Diff: 359 lines (+58 / -301) across 15 files Reviewer: zirain Review duration: 337m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.82) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.82 · 359 lines diff across 15 files
    0.82
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.75 · 5 substantive comment(s)
    0.75
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    82%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.352
    Sensitive Paths sensitive_paths
    0.082
    Real PR Conversation Timeline
    10 items
    netlify[bot] netlify[bot] commented on Nov 25, 2026 01:55 UTC
    Bot

    <span aria-hidden="true">✅</span> Deploy Preview for cerulean-figolla-1f9435 ready!


    Built without sensitive environment variables

    | Name | Link |
    |:-:|------------------------|
    |<span aria-hidden="true">🔨</span> Latest commit | 05f08882584df5dd76ca788f0d6db7ca9d7d4074 |
    |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6b064778599b509bf5ab0e7a |
    |<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-10683--cerulean-figolla-1f9435.netlify.app |
    |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />!QR Code<br /><br />_Use your smartphone camera to open QR code link._</details> |
    ---
    <!-- cerulean-figolla-1f9435 Preview -->
    _To edit notification comments on pull requests, go to your Netlify project configuration._

    codecov[bot] codecov[bot] commented on Nov 25, 2026 02:08 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 82.81%. Comparing base (45442d4) to head (05f0888).

    <details><summary>Additional details and impacted files</summary>

    @@            Coverage Diff             @@
    ##             main   #10683      +/-   ##
    ==========================================
    - Coverage   82.82%   82.81%   -0.02%     
    ==========================================
      Files         278      278              
      Lines       44620    44620              
    ==========================================
    - Hits        36957    36952       -5     
    - Misses       7662     7667       +5     
      Partials        1        1              
    

    </details>

    :umbrella: View full report in Codecov by Harness.
    :loudspeaker: Have feedback on the report? Share it here.
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Nov 25, 2026 02:22 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-review-state:v1 {"code_review":{"commit_sha":"05f08882584df5dd76ca788f0d6db7ca9d7d4074","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->

    <details>
    <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>

    This comment shows the latest Codex review activity on this pull request.

    | Review | Status | Commit | Review trigger |
    | --- | --- | --- | --- |
    | 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-25T02:55:27.328596Z">2026-11-25T02:55:27.328596Z</relative-time> | 05f0888 | Draft marked ready |

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review" or "@codex security review".
  • Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    </details>

    </details>

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Nov 25, 2026 02:30 UTC
    Code Review
    tools/make/kube.mk:1
    @@ -312,7 +313,15 @@ e2e-prepare: prepare-ip-family ## Prepare the environment for running e2e tests
     	kubectl wait --timeout=5m -n envoy-gateway-system deployment/envoy-gateway --for=condition=Available
     	kubectl apply -f test/e2e/testdata/extension-server-crds.yaml
     	kubectl apply -f test/e2e/testdata/inferencepool-crd.yaml
    -	kubectl apply -f $(KUBE_DEPLOY_EG_CONFIG_FILE)
    +	# Render the e2e config from the shared base plus the profile's overrides. This
    +	# uses the chart values.yaml that kube-deploy generated, so images match the
    +	# ones loaded into the cluster.
    +	$(GO_TOOL) helm template eg charts/gateway-helm -n envoy-gateway-system \
    +		-s templates/envoy-gateway-config.yaml \
    +		-f $(KUBE_DEPLOY_EG_CONFIG_DIR)/base.yaml \
    +		-f $(KUBE_DEPLOY_HELM_VALUES_FILE) \
    +		$(if $(wildcard $(KUBE_DEPLOY_EG_CONFIG_FILE)),-f $(KUBE_DEPLOY_EG_CONFIG_FILE)) \

    <sub><sub>!P2 Badge</sub></sub> Keep the relocated remote-infra overlay discoverable

    When e2e-prepare runs with KUBE_DEPLOY_PROFILE=remote-infra-mode, this lookup checks only test/config/envoy-gateway-config/remote-infra-mode.yaml. This commit moves the manifest to test/e2e/remote_infra/envoy-gateway-config.yaml, so the optional -f is omitted and the new path is never applied. The configuration therefore stays on the default Kubernetes provider instead of dialing the test sidecar; apply the relocated manifest for this profile or retain a profile overlay in the config directory.

    Useful? React with 👍 / 👎.

    <!-- codex-code-review-finding:v1 -->

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Nov 25, 2026 02:30 UTC
    Reviewer

    <!-- codex-review-receipt:v1 -->

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: 05f0888258

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    zhaohuabing zhaohuabing commented on code on Nov 25, 2026 02:41 UTC
    Code Review
    tools/make/kube.mk:1
    @@ -312,7 +313,15 @@ e2e-prepare: prepare-ip-family ## Prepare the environment for running e2e tests
     	kubectl wait --timeout=5m -n envoy-gateway-system deployment/envoy-gateway --for=condition=Available
     	kubectl apply -f test/e2e/testdata/extension-server-crds.yaml
     	kubectl apply -f test/e2e/testdata/inferencepool-crd.yaml
    -	kubectl apply -f $(KUBE_DEPLOY_EG_CONFIG_FILE)
    +	# Render the e2e config from the shared base plus the profile's overrides. This
    +	# uses the chart values.yaml that kube-deploy generated, so images match the
    +	# ones loaded into the cluster.
    +	$(GO_TOOL) helm template eg charts/gateway-helm -n envoy-gateway-system \
    +		-s templates/envoy-gateway-config.yaml \
    +		-f $(KUBE_DEPLOY_EG_CONFIG_DIR)/base.yaml \
    +		-f $(KUBE_DEPLOY_HELM_VALUES_FILE) \
    +		$(if $(wildcard $(KUBE_DEPLOY_EG_CONFIG_FILE)),-f $(KUBE_DEPLOY_EG_CONFIG_FILE)) \

    This was already broken on main. The lookup there was remote-infra-mode.yaml while the file was named remote-infra.yaml, and the remote-infra targets don't run e2e-prepare anyway.

    Tracking in https://github.com/envoyproxy/gateway/issues/10685.

    zirain zirain approved these changes on Nov 25, 2026 05:07 UTC
    Approved Reviewer

    Approved these changes.

    kkk777-7 kkk777-7 approved these changes on Nov 25, 2026 07:29 UTC
    Approved Reviewer

    Approved these changes.

    kkk777-7 kkk777-7 commented on Nov 25, 2026 07:30 UTC
    Contributor

    LGTM, thanks!

    Reviewers
    Assignees
    zhaohuabing zhaohuabing
    Labels
    risk: low confidence: 82.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 81.9% (HIGH) · Higher = larger blast radius
    81.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 82.5% · Lower = rushed or shallow review
    82.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%