Skip to content

Fix --svg pipe deadlock#100

Merged
dims merged 2 commits into
kubernetes-sigs:mainfrom
dims:fix-svg-reliability
Feb 8, 2026
Merged

Fix --svg pipe deadlock#100
dims merged 2 commits into
kubernetes-sigs:mainfrom
dims:fix-svg-reliability

Conversation

@dims
Copy link
Copy Markdown
Member

@dims dims commented Feb 8, 2026

Summary

  • Fix DOT capture pipe deadlock by draining stdout concurrently during SVG generation
  • Prevents --svg hangs on large graphs

Testing

  • go test ./...

dims added 2 commits February 8, 2026 16:17
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Apply the same concurrent reader fix from captureDOTOutput to the
test helper captureStdout in why_test.go, which had the identical
sequential write-then-read pattern that deadlocks when output
exceeds the OS pipe buffer.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 8, 2026
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 8, 2026
@dims dims added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 8, 2026
@dims dims merged commit 6259135 into kubernetes-sigs:main Feb 8, 2026
6 of 7 checks passed
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants