fix(conformance): generate the experimental report after the suite has finished #10303
<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 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>
</details>
<!-- 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
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
@codex review
<!-- 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
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>
Approved these changes.
zirain
abdulaziz-dev-lab
<!--
Your PR title should be descriptive, and generally start with a type that contains a subsystem name with
()if necessaryand 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 andagreed 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 itsrunningflag before returning: it does so from at.Cleanupon the parent test, because parallel subtests only execute after the test function returns.TestExperimentalConformancecalledcSuite.Report()inline right afterRun(), soReport()always returnedcan't generate report: the test suite is currently runningand no report was written, even though every conformance test passed.make experimental-conformancehas failed this way onmainsince #9772, which movedtest/go.modto a pseudo-version that already contained the change.This registers the report generation in a
t.CleanupbeforeSetup/Run, the same shape as gateway-api's ownRunConformanceWithOptions(and astest/e2e/e2e_test.goalready 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-outputis set. The error message for a failedRun(), 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-conformancefails onmainand passes with this change, also withE2E_DISABLE_PARALLEL=true; a fullmake run-experimental-conformancepasses (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 unmodifiedexperimental_conformance.yamldispatched on a fork ofmainfails 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.9andrelease/v1.8pin 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>, orFixes (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 itand add "N/A: <reason>".
-->
git commit -s). See DCO: Sign your work./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.make generate gen-check,make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, butgen-check,lint, and coverage MUST pass.)release-notes/current/<section>/<pr-number>-<slug>.md(seerelease-notes/current/README.mdfor sections and naming). N/A if this PR does not contain non-trivial changes. N/A: test-only change.make gen-checkand committed the result if API/helm charts/modules changed.release-notes/current/breaking_changes/.