Skip to content

fix: list all DevWorkspaces, handle inaccessible templates gracefully (CRW-11897) - #359

Draft
adietish wants to merge 2 commits into
redhat-developer:mainfrom
adietish:crw-11897
Draft

fix: list all DevWorkspaces, handle inaccessible templates gracefully (CRW-11897)#359
adietish wants to merge 2 commits into
redhat-developer:mainfrom
adietish:crw-11897

Conversation

@adietish

@adietish adietish commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

adietish and others added 2 commits July 31, 2026 14:05
…el cleanly (CRW-12138)

- Treat Int.MAX_VALUE and non-zero exit as IOException (with truncated stderr)
- close IOTrio streams on cancel
- use a single joiner gated by streamsReady so pre-open errors and mid-stream failures
  complete once without racing stream readers.
- extracted PodExecSession

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… (CRW-11897)

Avoid Fatal IDE errors and hidden JetBrains workspaces when
devworkspacetemplates list returns 401/403/404. Show editor
labels, fail fast without idea-server container.

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

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0f1661e7-16f8-441d-a6d6-b69ed1452e9f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@adietish adietish changed the title Crw 11897 fix: list all DevWorkspaces, handle inaccessible templates gracefully (CRW-11897) Aug 1, 2026
@adietish adietish self-assigned this Aug 1, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.55319% with 162 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.86%. Comparing base (71098f6) to head (72e0956).
⚠️ Report is 414 commits behind head on main.

Files with missing lines Patch % Lines
.../gateway/view/steps/DevSpacesWorkspacesStepView.kt 0.00% 99 Missing ⚠️
...edhat/devtools/gateway/openshift/PodExecSession.kt 61.46% 31 Missing and 11 partials ⚠️
.../redhat/devtools/gateway/server/RemoteIDEServer.kt 50.00% 7 Missing and 2 partials ⚠️
...hat/devtools/gateway/openshift/DevWorkspacePods.kt 72.22% 0 Missing and 5 partials ⚠️
...hat/devtools/gateway/devworkspace/DevWorkspaces.kt 88.23% 3 Missing and 1 partial ⚠️
...com/redhat/devtools/gateway/DevSpacesConnection.kt 0.00% 1 Missing ⚠️
...at/devtools/gateway/openshift/ApiExceptionUtils.kt 0.00% 0 Missing and 1 partial ⚠️
...com/redhat/devtools/gateway/util/ExceptionUtils.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            main     #359       +/-   ##
==========================================
+ Coverage   0.00%   35.86%   +35.86%     
==========================================
  Files          4      114      +110     
  Lines         26     4960     +4934     
  Branches       0      955      +955     
==========================================
+ Hits           0     1779     +1779     
- Misses        26     2927     +2901     
- Partials       0      254      +254     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants