Skip to content

Conversation

@kahirokunn
Copy link
Member

@kahirokunn kahirokunn commented Nov 9, 2025

  • Add pruning in reconcileIngress to delete owned HTTPRoutes not referenced
  • Add unit test to verify stale route deletion behavior

/kind bug

Fixes #895

Release Note:

Fix a bug where HTTPRoutes could remain after tags were removed. Stale routes are now deleted during reconciliation.

@knative-prow
Copy link

knative-prow bot commented Nov 9, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added kind/bug Categorizes issue or PR as related to a bug. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Nov 9, 2025
@knative-prow knative-prow bot requested review from dprotaso and skonto November 9, 2025 03:13
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 9, 2025
@kahirokunn kahirokunn marked this pull request as ready for review November 9, 2025 03:23
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 9, 2025
@codecov
Copy link

codecov bot commented Nov 9, 2025

Codecov Report

❌ Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.38%. Comparing base (510df45) to head (e51dd42).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/ingress/ingress.go 66.66% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #894      +/-   ##
==========================================
- Coverage   76.45%   76.38%   -0.08%     
==========================================
  Files          17       17              
  Lines        1253     1266      +13     
==========================================
+ Hits          958      967       +9     
- Misses        261      263       +2     
- Partials       34       36       +2     

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

@kahirokunn kahirokunn force-pushed the gc-tag-route branch 2 times, most recently from 907365e to 0b76360 Compare November 9, 2025 03:49
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 9, 2025
@kahirokunn kahirokunn force-pushed the gc-tag-route branch 2 times, most recently from 2c942ba to 31521b5 Compare November 9, 2025 04:45
@kahirokunn
Copy link
Member Author

@dprotaso Hello! I'd be grateful if you could leave a review when you have a moment! 🙏

@kahirokunn
Copy link
Member Author

@dprotaso Hello 🤚

Copy link
Contributor

@dprotaso dprotaso left a comment

Choose a reason for hiding this comment

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

Change looks great - thanks for finding the bug.

Just looking for a minor tweak

@dprotaso
Copy link
Contributor

We'll want this fix in earlier releases
/cherry-pick release-1.20
/cherry-pick release-1.19

@knative-prow-robot
Copy link
Contributor

@dprotaso: once the present PR merges, I will cherry-pick it on top of release-1.19, release-1.20 in new PRs and assign them to you.

Details

In response to this:

We'll want this fix in earlier releases
/cherry-pick release-1.20
/cherry-pick release-1.19

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.

@kahirokunn
Copy link
Member Author

/test integration-tests-envoy-gateway

@kahirokunn
Copy link
Member Author

@dprotaso I've addressed all the points you raised. When you have a moment, I would appreciate it if you could take another look 🙏

Copy link
Contributor

@dprotaso dprotaso left a comment

Choose a reason for hiding this comment

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

just some minor stuff

also note the unit test is failing


// --- helpers for forcing lister errors in specific tests ---

type httpRouteListErrorKey struct{}
Copy link
Contributor

Choose a reason for hiding this comment

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

You can drop the list error case - I don't believe it'll happen with client-go

Copy link
Member Author

Choose a reason for hiding this comment

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

Thx. I fixed it.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was a test we added because Codecov was too strict. The Codecov check is failing, but can we merge it?
https://github.com/knative-extensions/net-gateway-api/pull/894/checks?check_run_id=56299777195

@kahirokunn
Copy link
Member Author

/test integration-tests-envoy-gateway

@kahirokunn
Copy link
Member Author

@dprotaso I've addressed all the points you raised. All tests have been passed. When you have a moment, I would appreciate it if you could take another look 🙏

@dprotaso
Copy link
Contributor

/lgtm
/approve
/override "codecov/patch"

@knative-prow
Copy link

knative-prow bot commented Nov 25, 2025

@dprotaso: Overrode contexts on behalf of dprotaso: codecov/patch

Details

In response to this:

/lgtm
/approve
/override "codecov/patch"

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.

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2025
@knative-prow
Copy link

knative-prow bot commented Nov 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, kahirokunn

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:

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 25, 2025
@knative-prow knative-prow bot merged commit 1836d3f into knative-extensions:main Nov 25, 2025
32 of 33 checks passed
@dprotaso
Copy link
Contributor

thanks @kahirokunn 🎉

@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #901

Details

In response to this:

We'll want this fix in earlier releases
/cherry-pick release-1.20
/cherry-pick release-1.19

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.

@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #902

Details

In response to this:

We'll want this fix in earlier releases
/cherry-pick release-1.20
/cherry-pick release-1.19

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPRoute remains after removing tags from Knative Service traffic

3 participants