Skip to content

Fix/bec startup#825

Open
wakonig wants to merge 2 commits into
mainfrom
fix/bec_startup
Open

Fix/bec startup#825
wakonig wants to merge 2 commits into
mainfrom
fix/bec_startup

Conversation

@wakonig

@wakonig wakonig commented Apr 16, 2026

Copy link
Copy Markdown
Member

two changes:

  • Put the post startup into a try-except block to ensure that the client starts even if the post-startup file is messed up
  • Put the hli startup to the bec lib client to give users the same interface in both versions

@wakonig wakonig force-pushed the fix/bec_startup branch 2 times, most recently from edda1e6 to dde5445 Compare June 10, 2026 11:16
@wakonig wakonig marked this pull request as ready for review June 10, 2026 11:33
Copilot AI review requested due to automatic review settings June 10, 2026 11:33
@wakonig wakonig self-assigned this Jun 10, 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

This PR aims to make BEC startup more robust and align the user-facing high-level interface (HLI) experience across client variants by (1) preventing failures in plugin post-startup hooks from aborting startup and (2) moving HLI loading into the core client startup path.

Changes:

  • Load bec_hli from bec_lib client startup (including Redis connection failure path) instead of in the IPython startup script.
  • Wrap execution of plugin post_startup.py in a try/except so a broken plugin post-startup does not prevent the client from starting.

Reviewed changes

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

File Description
bec_lib/bec_lib/client.py Loads bec_hli during BECClient.start() (and on Redis connection failure).
bec_ipython_client/bec_ipython_client/bec_startup.py Wraps plugin post_startup.py execution in try/except and removes redundant HLI loading from startup script.

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

Comment thread bec_lib/bec_lib/client.py
Comment thread bec_lib/bec_lib/client.py
Comment thread bec_ipython_client/bec_ipython_client/bec_startup.py
Comment thread bec_ipython_client/bec_ipython_client/bec_startup.py
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...c_ipython_client/bec_ipython_client/bec_startup.py 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wakonig wakonig requested a review from a team June 10, 2026 11:49
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