Skip to content

Force unbuffered stdout - #15

Merged
hyperrealist merged 1 commit into
epics-containers:mainfrom
hyperrealist:force-unbuffered
Sep 10, 2025
Merged

hyperrealist merged 1 commit into
epics-containers:mainfrom
hyperrealist:force-unbuffered

Conversation

@hyperrealist

Copy link
Copy Markdown
Contributor

This is in search of a fix for #13.

I believe what happens is that the python executable doesn't respect PYTHONUNBUFFERED=1 when launched through an entry point script. This solution should bootstrap an unbuffered executable.

@hyperrealist hyperrealist changed the title [WIP] force unbuffered stdout at entry points Force unbuffered stdout at entry points Sep 9, 2025
@hyperrealist hyperrealist changed the title Force unbuffered stdout at entry points Force unbuffered stdout Sep 9, 2025
@hyperrealist

hyperrealist commented Sep 9, 2025 •

Copy link
Copy Markdown
Contributor Author

@gilesknap this is not ready for review. @LeandroMartinsdS verified it on ViSR using ioc-pmac alpha release ghcr.io/hyperrealist/ioc-pmac-developer:2025.9.1a4

@gilesknap gilesknap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That looks pretty straightforward.

I assume you have checked that this works.

If so please go ahead and merge and release.

Thanks!

@hyperrealist

Copy link
Copy Markdown
Contributor Author

Yes we checked that it works. I am not able to approve workflows. Likely cannot merge or release either.

@codecov

codecov Bot commented Sep 9, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 1.50%. Comparing base (e751fc1) to head (235a539).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/stdio_socket/expose.py 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (e751fc1) and HEAD (235a539). Click for more details.

HEAD has 5 uploads less than BASE
Flag BASE (e751fc1) HEAD (235a539)
10 5
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #15       +/-   ##
==========================================
- Coverage   31.81%   1.50%   -30.32%     
==========================================
  Files           6       6               
  Lines         132     133        +1     
==========================================
- Hits           42       2       -40     
- Misses         90     131       +41     

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

@gilesknap

Copy link
Copy Markdown
Member

I've invited you to the Org so hopefully you can merge and release.

@gilesknap

Copy link
Copy Markdown
Member

@hyperrealist please could you also make a version of ioc-pmac that uses the new stdio-socket and verify it solves the issue. Thanks!

@hyperrealist
hyperrealist merged commit 84a8c04 into epics-containers:main Sep 10, 2025
@hyperrealist
hyperrealist deleted the force-unbuffered branch September 10, 2025 12:04
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.

2 participants