Skip to content

Properly handle and route stdout/err from nbopen subprocess - #40

Closed
akutuva21 wants to merge 2 commits into
mainfrom
fix-main-stdout-err-337248941238460958
Closed

akutuva21 wants to merge 2 commits into
mainfrom
fix-main-stdout-err-337248941238460958

Conversation

@akutuva21

Copy link
Copy Markdown
Owner

This replaces the usage of run_command in bionetgen/core/main.py:236 with a direct subprocess.Popen call. This allows passing the pre-configured stdout and stderr configuration streams dynamically resolved from the app.config, captures the output utilizing process.communicate(), and logs the output through the application's built-in app.log.info and app.log.error logger.


PR created automatically by Jules for task 337248941238460958 started by @akutuva21

…ess call.

Co-authored-by: akutuva21 <44119804+akutuva21@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@akutuva21

Copy link
Copy Markdown
Owner Author

Superseded by #89 nbopen stdout/stderr handling.

@akutuva21 akutuva21 closed this Apr 13, 2026
@google-labs-jules

Copy link
Copy Markdown

Superseded by #89 nbopen stdout/stderr handling.

Understood. Acknowledging that this work is now superseded by #89 and stopping work on this task.

@akutuva21
akutuva21 deleted the fix-main-stdout-err-337248941238460958 branch April 13, 2026 14:43
akutuva21 pushed a commit that referenced this pull request Jun 5, 2026
Packaging (B3): add extras_require={"bngsim": ["bngsim>=0.9.10"]} so the
optional in-process engine is discoverable via `pip install bionetgen[bngsim]`,
while keeping bngsim out of install_requires (never a hard dependency). The
extra's floor matches MINIMUM_BNGSIM_VERSION in the bridge.

Bridge: bump MINIMUM_BNGSIM_VERSION 0.6.0 -> 0.9.10. 0.9.0 settled the
method-independent gdat/scan output schema (bngsim #58) the parity differ
normalizes against; 0.9.10 is the current validated release. Refresh the
floor-rationale comment, which still cited the stale 0.6.0/#40 reason.
Update the version-guard test's minimum-version case to 0.9.10.

With bngsim absent the bridge soft-imports to the legacy subprocess path
unchanged; the bngsim test files skip/pass cleanly (239 passed, 9 skipped,
0 errors with bngsim genuinely uninstalled).
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.

1 participant