Skip to content

feat: allow to restart a workspace (#23417)#271

Merged
msivasubramaniaan merged 3 commits intoredhat-developer:mainfrom
adietish:issue-23417
Apr 28, 2026
Merged

feat: allow to restart a workspace (#23417)#271
msivasubramaniaan merged 3 commits intoredhat-developer:mainfrom
adietish:issue-23417

Conversation

@adietish
Copy link
Copy Markdown
Collaborator

@adietish adietish commented Mar 17, 2026

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 17, 2026

Codecov Report

❌ Patch coverage is 65.86538% with 71 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.18%. Comparing base (71098f6) to head (bb4ede4).
⚠️ Report is 322 commits behind head on main.

Files with missing lines Patch % Lines
...com/redhat/devtools/gateway/DevSpacesConnection.kt 0.00% 36 Missing ⚠️
...devworkspace/RestartDevWorkspaceAnnotationWatch.kt 55.88% 11 Missing and 4 partials ⚠️
...hat/devtools/gateway/devworkspace/DevWorkspaces.kt 41.66% 14 Missing ⚠️
.../redhat/devtools/gateway/server/RemoteIDEServer.kt 0.00% 1 Missing and 1 partial ⚠️
...in/com/redhat/devtools/gateway/DevSpacesContext.kt 0.00% 1 Missing ⚠️
...vtools/gateway/devworkspace/DevWorkspaceRestart.kt 96.87% 1 Missing ⚠️
...hat/devtools/gateway/openshift/DevWorkspacePods.kt 95.00% 0 Missing and 1 partial ⚠️
.../gateway/view/steps/DevSpacesWorkspacesStepView.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            main     #271       +/-   ##
==========================================
+ Coverage   0.00%   31.18%   +31.18%     
==========================================
  Files          4       43       +39     
  Lines         26     2325     +2299     
  Branches       0      474      +474     
==========================================
+ Hits           0      725      +725     
- Misses        26     1511     +1485     
- Partials       0       89       +89     

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

@adietish adietish force-pushed the issue-23417 branch 2 times, most recently from 5812009 to fb3fa85 Compare March 26, 2026 09:48
@msivasubramaniaan
Copy link
Copy Markdown
Collaborator

@adietish as discussed over slack that build was failing in local. Please rebase the repo
image

@adietish adietish force-pushed the issue-23417 branch 3 times, most recently from 912210f to 7602a34 Compare April 22, 2026 15:10
Implemented by watching a restart annotation on the workspace resource.
If the annotation is detected, the workspace is restarted (by setting
spec.started to `false`, waiting for pods to disappear and then setting
it to `true`)

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Assisted by: claude code
Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Claude Code
@adietish adietish force-pushed the issue-23417 branch 2 times, most recently from deb31c3 to 7b09925 Compare April 24, 2026 15:16
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Co-authored-by: Andre Dietisheim <adietish@redhat.com>
Co-authored-by: Claude Code
@adietish
Copy link
Copy Markdown
Collaborator Author

@msivasubramaniaan please review

Copy link
Copy Markdown
Collaborator

@msivasubramaniaan msivasubramaniaan left a comment

Choose a reason for hiding this comment

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

LGTM

@msivasubramaniaan msivasubramaniaan merged commit c898815 into redhat-developer:main Apr 28, 2026
5 checks passed
@adietish adietish deleted the issue-23417 branch April 28, 2026 08:09
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.

Add Restart from local Devfile feature to JetBrains IDEs

4 participants