Skip to content

fix: do not rethrow handled exec errors into parent scope (CRW-12908) - #369

Merged
vrubezhny merged 3 commits into
redhat-developer:mainfrom
adietish:CRW-12908
Sep 4, 2026
Merged

fix: do not rethrow handled exec errors into parent scope (CRW-12908)#369
vrubezhny merged 3 commits into
redhat-developer:mainfrom
adietish:CRW-12908

Conversation

@adietish

@adietish adietish commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

adietish and others added 2 commits September 3, 2026 21:49
The catch already delivers the failure via onError and
future.completeExceptionally; rethrowing into a parentScope with
no exception handler produced SEVERE 'Unhandled exception in
Dispatchers.IO' log entries for every dropped exec websocket
(e.g. WebSocketStreamHandler IllegalStateException).

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
runCatching(...).getOrNull() silently turned unparseable status
output into an empty (not ready) status, making 'IDE not ready
after 120s' undebuggable. Warn with a snippet of the raw output
so the actual cause is visible in idea.log.

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 754131fb-d5f5-4d4d-b08c-31ffe1ec2bca


Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

codecov-commenter commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.36%. Comparing base (71098f6) to head (0cf5193).
⚠️ Report is 424 commits behind head on main.

Files with missing lines Patch % Lines
.../redhat/devtools/gateway/server/RemoteIDEServer.kt 42.85% 11 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            main     #369       +/-   ##
==========================================
+ Coverage   0.00%   38.36%   +38.36%     
==========================================
  Files          4      121      +117     
  Lines         26     5310     +5284     
  Branches       0     1023     +1023     
==========================================
+ Hits           0     2037     +2037     
- Misses        26     2990     +2964     
- Partials       0      283      +283     

☔ View full report in Codecov by Harness.
📢 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.

Log pod name, container, and timeout on entry; poll progress at
debug every 5s; success/failure with elapsed time. Pod-not-running
state also logged at info so silent empty-status returns are visible
in idea.log.

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@adietish adietish self-assigned this Sep 3, 2026

@vrubezhny vrubezhny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@vrubezhny
vrubezhny merged commit 490fb61 into redhat-developer:main Sep 4, 2026
7 checks passed
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.

3 participants