Skip to content

util/netns: remove leftover debug print - #2098

Merged
Emantor merged 1 commit into
labgrid-project:masterfrom
SmithChart:util-netns-debug-print
Nov 26, 2026
Merged

Emantor merged 1 commit into
labgrid-project:masterfrom
SmithChart:util-netns-debug-print

Conversation

@SmithChart

Copy link
Copy Markdown
Member

Description

With this callback in place using the socks proxy leads to stray "A" being written to stdout.
If stdout is a closed terminal, the print also raises an OSError during the cleanup.

This is likely a leftover from debugging and can be removed.

Fixes: 1f791c3 ("netns: add support for a socks5 proxy")

Checklist

  • Documentation for the feature
  • Tests for the feature
  • Release notes added
  • The arguments and description in doc/configuration.rst have been updated
  • Add a section on how to use the feature to doc/usage.rst
  • Add a section on how to use the feature to doc/development.rst
  • PR has been tested
  • Man pages have been regenerated

Tested against a test suite using the netns with the RawInterfaceDriver.

With this callback in place using the socks proxy leads to stray "A"
being written to stdout.
If stdout is a closed terminal, the print also raises an OSError during the
cleanup.

This is likely a leftover from debugging and can be removed.

Fixes: 1f791c3 ("netns: add support for a socks5 proxy")
Signed-off-by: Chris Fiege <chris@tinyhost.de>
@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.1%. Comparing base (a556a0d) to head (6fe799a).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2098     +/-   ##
========================================
- Coverage    66.2%   66.1%   -0.1%     
========================================
  Files         194     194             
  Lines       16205   16204      -1     
========================================
- Hits        10728   10716     -12     
- Misses       5477    5488     +11     
Flag Coverage Δ
3.11 66.1% <ø> (-0.1%) ⬇️
3.12 66.1% <ø> (-0.1%) ⬇️
3.13 66.0% <ø> (-0.1%) ⬇️
3.14 66.0% <ø> (-0.1%) ⬇️
3.15 66.0% <ø> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Emantor
Emantor enabled auto-merge November 26, 2026 20:55
@Emantor Emantor added fix pick to stable Needs a pick to the latest stable branch labels Nov 26, 2026
@Bastian-Krause

Copy link
Copy Markdown
Member

Just restarted the flaky test. I think i have an idea how to fix it properly in a separate PR.

@Emantor
Emantor merged commit cfb4813 into labgrid-project:master Nov 26, 2026
16 of 18 checks passed
@SmithChart
SmithChart deleted the util-netns-debug-print branch November 29, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pick to stable Needs a pick to the latest stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants