Skip to content

integration: add http trace for debug - #13518

Merged
fuweid merged 1 commit into
containerd:mainfrom
fuweid:add-trace-for-image-pull
Jun 22, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
fuweid:add-trace-for-image-pull

Conversation

@fuweid

@fuweid fuweid commented Jun 2, 2026

Copy link
Copy Markdown
Member

This is used to debug the flaky test case - TestCRIImagePullTimeout

Copilot AI review requested due to automatic review settings June 2, 2026 20:27
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jun 2, 2026

Copilot AI 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.

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 an httptrace.ClientTrace to the request context and logs key events.
  • Apply the trace context to several PullImage call sites in the timeout tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread integration/image_pull_timeout_test.go Resolved
Comment thread integration/image_pull_timeout_test.go Resolved
Comment thread integration/image_pull_timeout_test.go Resolved
Comment thread integration/image_pull_timeout_test.go Resolved
@fuweid
fuweid force-pushed the add-trace-for-image-pull branch 2 times, most recently from 204654f to 7177275 Compare June 2, 2026 20:41
Copilot AI review requested due to automatic review settings June 2, 2026 22:02
@fuweid
fuweid force-pushed the add-trace-for-image-pull branch from 7177275 to 127b963 Compare June 2, 2026 22:02

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread integration/image_pull_timeout_test.go Resolved
Comment thread integration/image_pull_timeout_test.go Resolved
Comment thread integration/image_pull_timeout_test.go Resolved
@fuweid
fuweid force-pushed the add-trace-for-image-pull branch from 127b963 to cdcf8d7 Compare June 3, 2026 01:14
Copilot AI review requested due to automatic review settings June 3, 2026 19:31
@fuweid
fuweid force-pushed the add-trace-for-image-pull branch from cdcf8d7 to 8455323 Compare June 3, 2026 19:31

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

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{})
},
@fuweid

fuweid commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jun 13, 2026
This is used to debug the flaky test case - TestCRIImagePullTimeout

Signed-off-by: Wei Fu <[email protected]>
@fuweid
fuweid force-pushed the add-trace-for-image-pull branch from 8455323 to 3d80ce2 Compare June 18, 2026 16:47
@fuweid
fuweid added this pull request to the merge queue Jun 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 22, 2026
@fuweid
fuweid added this pull request to the merge queue Jun 22, 2026
Merged via the queue into containerd:main with commit 7000458 Jun 22, 2026
85 of 88 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants