← Back to Pull requests

fix(conformance): generate the experimental report after the suite has finished #10303

Open
abdulaziz-dev-lab opened this pull request with 24 lines diff across 1 files
View on GitHub
abdulaziz-dev-lab abdulaziz-dev-lab commented on Oct 16, 2026 12:16 UTC
Author

<!--
Your PR title should be descriptive, and generally start with a type that contains a subsystem name with () if necessary
and a summary followed by a colon. format chore/docs/api/feat/fix/refactor/style/test: summary.
Examples:
"docs: fix grammar error"
"feat(translator): add new feature"
"fix: fix xx bug"
"chore: change ci & build tools etc"
"api: add xxx fields in ClientTrafficPolicy"
-->

<!--
NOTE: If your PR contains any API changes (changes under /api), the API must be discussed and
agreed before the implementation. We strongly recommend separating API changes into their own PR so
we can review the API first, but the API may also live in the same PR as long as it was agreed
beforehand. This will save you a lot of implementation time if the API gets accepted.
-->

What this PR does / why we need it:
<!--
Briefly describe what this PR changes and the motivation behind it. Include enough context for a
reviewer to understand the problem being solved and the approach taken, e.g. what behavior changes,
any alternatives considered, and anything reviewers should pay special attention to.
-->
Since gateway-api conformance v1.6.2 (kubernetes-sigs/gateway-api#5143, cherry-picked in #5157), ConformanceTestSuite.Run() no longer clears its running flag before returning: it does so from a t.Cleanup on the parent test, because parallel subtests only execute after the test function returns. TestExperimentalConformance called cSuite.Report() inline right after Run(), so Report() always returned can't generate report: the test suite is currently running and no report was written, even though every conformance test passed. make experimental-conformance has failed this way on main since #9772, which moved test/go.mod to a pseudo-version that already contained the change.

This registers the report generation in a t.Cleanup before Setup/Run, the same shape as gateway-api's own RunConformanceWithOptions (and as test/e2e/e2e_test.go already does for its timing report). Cleanups run last-in-first-out, so it runs after the suite's cleanup has cleared the flag and after every subtest has completed. The report is still generated on every run and written when --report-output is set. The error message for a failed Run(), which talked about the report, is fixed as well.

Verified on kind (Kubernetes v1.37.0): the single-test run CONFORMANCE_RUN_TEST=HTTPRouteSimpleSameNamespace make run-experimental-conformance fails on main and passes with this change, also with E2E_DISABLE_PARALLEL=true; a full make run-experimental-conformance passes (129 passed, 24 Mesh skipped, 0 failed) and writes a report whose per-profile statistics match the v1.9.0 report in kubernetes-sigs/gateway-api#5181. The unmodified experimental_conformance.yaml dispatched on a fork of main fails in all six cells with the same error: https://github.com/abdulaziz-dev-lab/gateway/actions/runs/38896046700. That workflow runs on this PR because it touches the test file.

Not a backport candidate: release/v1.9 and release/v1.8 pin conformance v1.6.1 and v1.5.1, where the inline call still works.

Which issue(s) this PR fixes:
<!--
Automatically closes linked issue when PR is merged.
Usage: Fixes #<issue number>, or Fixes (paste link of issue).
-->
Fixes #10304

---

PR Checklist
<!--
Please tick the boxes below before requesting a review. PRs that leave required items unchecked may
be delayed or closed. Replace [ ] with [x] to check a box. If an item does not apply, check it
and add "N/A: <reason>".
-->

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.

  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.

  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.

  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)

  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.

  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.

  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes. N/A: test-only change.

  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.

  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.

  • Codex review: Requested a Codex review and addressed all of its comments.

  • Copilot review: Requested a Copilot review and addressed all of its comments.
  • Diff: 24 lines (+13 / -11) across 1 files Reviewer: zirain Review duration: 5449m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.22) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.22 · 24 lines diff across 1 files
    0.22
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.56 · 5 substantive comment(s)
    0.56
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    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.193
    Real PR Conversation Timeline
    7 items
    netlify[bot] netlify[bot] commented on Oct 16, 2026 12:16 UTC
    Bot

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

    | Name | Link |
    |:-:|------------------------|
    |<span aria-hidden="true">🔨</span> Latest commit | 0888c71e9d12bc1617fdd5d525e8397bfa779508 |
    |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6ad215a7bce8fc0456287ab3 |
    |<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-10303--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 Oct 16, 2026 12:29 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 81.64%. Comparing base (bdc06f6) to head (0888c71).

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

    @@            Coverage Diff             @@
    ##             main   #10303      +/-   ##
    ==========================================
    - Coverage   81.67%   81.64%   -0.04%     
    ==========================================
      Files         266      266              
      Lines       41730    41730              
    ==========================================
    - Hits        34083    34070      -13     
    - Misses       7646     7659      +13     
      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 Oct 16, 2026 13:44 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0888c71e9d12bc1617fdd5d525e8397bfa779508","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}} -->

    Codex Review 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-10-16T13:47:50.676277Z">2026-10-16T13:47:50.676277Z</relative-time> | 0888c71 | Manual request |

    <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>

    abdulaziz-dev-lab abdulaziz-dev-lab commented on Oct 16, 2026 13:45 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Oct 16, 2026 13:47 UTC
    Bot

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

    Codex Review: Didn't find any major issues. :tada:

    Reviewed commit: 0888c71e9d

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

    Codex has been enabled to automatically 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 👍.

    When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

    </details>

    zirain zirain approved these changes on Oct 17, 2026 07:57 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    abdulaziz-dev-lab abdulaziz-dev-lab
    Labels
    risk: low confidence: 70.8% reviewed
    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: 22.2% (LOW) · Higher = larger blast radius
    22.2%
    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: 70.8% · Lower = rushed or shallow review
    70.8%
    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: 6.5% · Safe to merge
    6.5%