Repository navigation
integration: add http trace for debug - #13518
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds net/http/httptrace instrumentation to the CRI image pull timeout integration tests to help diagnose flakiness (notably TestCRIImagePullTimeout) by emitting trace events for DNS/connect/TLS and first response byte timing.
Changes:
- Add
withPullHTTPTrace(ctx)helper that attaches anhttptrace.ClientTraceto the request context and logs key events. - Apply the trace context to several
PullImagecall sites in the timeout tests.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fuweid
force-pushed
the
add-trace-for-image-pull
branch
2 times, most recently
from
June 2, 2026 20:41
204654f to
7177275
Compare
fuweid
force-pushed
the
add-trace-for-image-pull
branch
from
June 2, 2026 22:02
7177275 to
127b963
Compare
samuelkarp
approved these changes
Jun 2, 2026
fuweid
force-pushed
the
add-trace-for-image-pull
branch
from
June 3, 2026 01:14
127b963 to
cdcf8d7
Compare
fuweid
force-pushed
the
add-trace-for-image-pull
branch
from
June 3, 2026 19:31
cdcf8d7 to
8455323
Compare
Comment on lines
+549
to
+551
| DNSDone: func(_ httptrace.DNSDoneInfo) { | ||
| logTraceFunc("dns_done", log.Fields{}) | ||
| }, |
Comment on lines
+578
to
+580
| GotConn: func(_ httptrace.GotConnInfo) { | ||
| logTraceFunc("got_conn", log.Fields{}) | ||
| }, |
Member
Author
|
It couldn't get first byte in 5-10 seconds and then failed |
djdongjin
approved these changes
Jun 13, 2026
This is used to debug the flaky test case - TestCRIImagePullTimeout Signed-off-by: Wei Fu <[email protected]>
fuweid
force-pushed
the
add-trace-for-image-pull
branch
from
June 18, 2026 16:47
8455323 to
3d80ce2
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jun 22, 2026
This was referenced Sep 15, 2026
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 is used to debug the flaky test case - TestCRIImagePullTimeout