Skip to content

chore: fix race and panic#8795

Merged
zirain merged 3 commits intoenvoyproxy:mainfrom
zirain:fix-race-panic
Apr 22, 2026
Merged

chore: fix race and panic#8795
zirain merged 3 commits intoenvoyproxy:mainfrom
zirain:fix-race-panic

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Apr 20, 2026

The goroutine continues to process messages and log after the test completes. The logger writes to the test's output, causing a data race.

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain requested a review from a team as a code owner April 20, 2026 04:53
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2026

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 578470c
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69e88a573a3266000905e375
😎 Deploy Preview https://deploy-preview-8795--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 12.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.63%. Comparing base (e5af3e0) to head (578470c).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/infrastructure/runner/runner.go 12.00% 22 Missing ⚠️

❌ Your patch status has failed because the patch coverage (12.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8795      +/-   ##
==========================================
- Coverage   73.67%   73.63%   -0.04%     
==========================================
  Files         245      245              
  Lines       48846    48864      +18     
==========================================
- Hits        35987    35982       -5     
- Misses      10856    10878      +22     
- Partials     2003     2004       +1     

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

rudrakhp
rudrakhp previously approved these changes Apr 20, 2026
Copy link
Copy Markdown
Member

@rudrakhp rudrakhp left a comment

Choose a reason for hiding this comment

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

Is it related to #8689 ?

@zirain
Copy link
Copy Markdown
Member Author

zirain commented Apr 20, 2026

Is it related to #8689 ?

Most likely

@rudrakhp rudrakhp requested review from a team April 20, 2026 09:51
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Apr 21, 2026

@codex

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f4e854602

ℹ️ About Codex in GitHub

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

Comment thread internal/envoygateway/config/loader/configloader_test.go Outdated
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Apr 21, 2026

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

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

r.Logger,
message.Metadata{Runner: r.Name(), Message: message.InfraIRMessageName}, sub,
func(update message.Update[string, *ir.Infra], errChan chan error) {
// Check if context is done before logging to avoid writing to test output after test completes
Copy link
Copy Markdown
Member

@zhaohuabing zhaohuabing Apr 22, 2026

Choose a reason for hiding this comment

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

None-blocking nit:

This might be simpler:

if ctx.Err() != nil {
	return
}

@zirain zirain merged commit f4a212e into envoyproxy:main Apr 22, 2026
36 of 37 checks passed
@zirain zirain deleted the fix-race-panic branch April 22, 2026 09:40
skos-ninja pushed a commit to skos-ninja/envoy-gateway that referenced this pull request May 1, 2026
* fix race and panic

Signed-off-by: zirain <zirain2009@gmail.com>

* fix race

Signed-off-by: zirain <zirain2009@gmail.com>

---------

Signed-off-by: zirain <zirain2009@gmail.com>
Co-authored-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
Signed-off-by: Jake Oliver <jake@truelayer.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants