Repository navigation
fix scheme data race - #7820
Merged
Merged
fix scheme data race#7820
Conversation
zhaohuabing
force-pushed
the
fix-scheme-data-race
branch
from
December 26, 2025 02:18
4652af3 to
cf06d1a
Compare
zirain
previously approved these changes
Dec 26, 2025
zhaohuabing
force-pushed
the
fix-scheme-data-race
branch
from
December 26, 2025 02:23
6d570e9 to
f46b506
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7820 +/- ##
==========================================
- Coverage 72.65% 72.63% -0.03%
==========================================
Files 235 235
Lines 34876 34876
==========================================
- Hits 25340 25333 -7
- Misses 7732 7739 +7
Partials 1804 1804 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zhaohuabing
force-pushed
the
fix-scheme-data-race
branch
from
December 26, 2025 02:35
f46b506 to
c1a577d
Compare
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
zhaohuabing
force-pushed
the
fix-scheme-data-race
branch
from
December 26, 2025 02:35
c1a577d to
a5dbd13
Compare
Signed-off-by: Huabing Zhao <[email protected]>
zirain
previously approved these changes
Dec 26, 2025
Signed-off-by: Huabing Zhao <[email protected]>
zirain
approved these changes
Dec 26, 2025
rudrakhp
approved these changes
Dec 26, 2025
Member
|
/retest |
kkk777-7
approved these changes
Dec 26, 2025
Member
|
LGTM, thanks! |
Member
|
@zhaohuabing this seems to cause test failures even after retries, removing this commit fixes it. |
Member
Author
|
millermatt
pushed a commit
to millermatt/envoy-gateway
that referenced
this pull request
Jan 4, 2026
* fix scheme data race Signed-off-by: Huabing Zhao <[email protected]> * fix scheme data race for TestGetExtensionBackendResources Signed-off-by: Huabing Zhao <[email protected]> * fix more tests Signed-off-by: Huabing Zhao <[email protected]> * use test context Signed-off-by: Huabing Zhao <[email protected]> * add -race to kube test Signed-off-by: Huabing Zhao <[email protected]> * minor change Signed-off-by: Huabing Zhao <[email protected]> --------- Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Matt Miller <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR builds a runtime.Scheme and pre-registers custom backend GVKs before constructing the fake client. This prevents controller-runtime’s fake client from lazily mutating the shared scheme during List, eliminating the data race between scheme writes and informer reads.
fixes: #7816