Registry Mirror
Skip to content

Conversation

@matejvasek

Copy link
Copy Markdown
Contributor

Changes

  • 🧹 Replace fnhttp.NewRoundTripper() (in-cluster socat tunnel) with a plain http.Client in subscription e2e tests, reaching the broker via its Kubernetes Ingress at broker.localtest.me
  • 🧹 Add configurable FUNC_E2E_BROKER_HOST env var to hack/cluster.sh and e2e test config, following the existing FUNC_INT_PAC_HOST pattern
  • 🗑️ Remove unused fnhttp import from e2e/e2e_metadata_test.go

/kind cleanup

Relates to #3697

Release Note


Docs


The subscription tests (TestMetadata_Subscriptions and
TestMetadata_Subscriptions_Raw) previously tunneled through an in-cluster
socat pod via fnhttp.NewRoundTripper() to reach the broker at its
internal service URL. Since hack/cluster.sh already exposes the broker
via a Kubernetes Ingress at broker.localtest.me, the tests can reach it
directly through a plain http.Client, removing the socat overhead.

- hack/cluster.sh: make broker ingress host configurable via
  FUNC_E2E_BROKER_HOST (defaults to broker.localtest.me), following the
  existing FUNC_INT_PAC_HOST pattern
- e2e/e2e_test.go: add DefaultBrokerHost constant, BrokerHost variable,
  and FUNC_E2E_BROKER_HOST env reading/logging
- e2e/e2e_metadata_test.go: replace fnhttp.NewRoundTripper() with plain
  http.Client and use the broker ingress URL; remove unused fnhttp import

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@knative-prow knative-prow Bot added the kind/cleanup Cleanup label May 12, 2026
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos May 12, 2026 11:25
@knative-prow knative-prow Bot added approved 🤖 PR has been approved by an approver from all required OWNERS files. size/M 🤖 PR changes 30-99 lines, ignoring generated files. labels May 12, 2026
@matejvasek
matejvasek requested review from gauron99 and lkingland and removed request for dsimansk and jrangelramos May 12, 2026 11:26
@codecov

codecov Bot commented May 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.90%. Comparing base (2b6fb02) to head (e821c30).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3701      +/-   ##
==========================================
- Coverage   56.91%   56.90%   -0.01%     
==========================================
  Files         181      181              
  Lines       20928    20928              
==========================================
- Hits        11912    11910       -2     
- Misses       7808     7810       +2     
  Partials     1208     1208              
Flag Coverage Δ
e2e 36.13% <ø> (-0.03%) ⬇️
e2e go 32.75% <ø> (ø)
e2e node 28.48% <ø> (ø)
e2e python 33.11% <ø> (-0.01%) ⬇️
e2e quarkus 28.62% <ø> (ø)
e2e rust 28.01% <ø> (-0.03%) ⬇️
e2e springboot 26.52% <ø> (+0.02%) ⬆️
e2e typescript 28.59% <ø> (ø)
e2e-config-ci 17.88% <ø> (ø)
integration 17.43% <ø> (-0.02%) ⬇️
unit macos-14 44.99% <ø> (ø)
unit macos-latest 44.99% <ø> (ø)
unit ubuntu-24.04-arm 45.16% <ø> (ø)
unit ubuntu-latest 45.84% <ø> (ø)
unit windows-latest 44.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@matejvasek

Copy link
Copy Markdown
Contributor Author

ptal @gauron99 @lkingland

@gauron99 gauron99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 13, 2026
@knative-prow

knative-prow Bot commented May 13, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, matejvasek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [gauron99,matejvasek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot merged commit e435a89 into knative:main May 13, 2026
66 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. kind/cleanup Cleanup lgtm 🤖 PR is ready to be merged. size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants