Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove conditions before restart a workspace #1188

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Remove conditions before restart a workspace #1188

merged 1 commit into from
Sep 18, 2024

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Sep 10, 2024

What does this PR do?

Remove conditions before restart a workspace

Screenshot/screencast of this PR

Знімок екрана 2024-09-16 о 14 41 29

Знімок екрана 2024-09-16 о 14 41 07

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-6587

Is it tested? How?

  1. Deploy Eclipse-Che with the image from this PR.
  2. Open Create Workspace page on the dashboard.
  3. Put https://raw.githubusercontent.com/dmytro-ndp/devfile-with-typo/main/devfile.yaml factory into Git repo URL.
  4. Click Create & Open.
  5. The workspace should fails with an error ImagePullBackOff.
  6. Open a new tab with the swagger link {CHE-Server}/dashboard/api/swagger.
  7. And apply the patch to fix the target devvorkspace:
[
 {
   "op": "replace",
   "path": "/spec/template/components/0/container/image",
   "value": "quay.io/devfile/universal-developer-image:ubi8-latest"
  }
]
  1. Open Starting workspace page and click Restart
  2. The target workspace should restart without any warnings or errors.

Release Notes

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Sep 10, 2024

Click here to review and test in web IDE: Contribute

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1188

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1188", name: che-dashboard}]}}]"

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Sep 10, 2024

@olexii4 : hello

Possible PR test scenario:

  1. Create workspace with devfile.yaml having wrong container image address, e.g. https://github.com/dmytro-ndp/devfile-with-typo/blob/main/devfile.yaml
  2. Run workspace and reproduce start workspace error
  3. Fix error in DevWorkspace yaml of workspace
  4. Start workspace again and make sure there is no previous start workspace error displayed on the page during the new workspace startup

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1188

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1188", name: che-dashboard}]}}]"

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.45%. Comparing base (e1fe428) to head (eade35e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1188      +/-   ##
==========================================
+ Coverage   91.33%   91.45%   +0.12%     
==========================================
  Files         439      439              
  Lines       45404    45433      +29     
  Branches     3149     3156       +7     
==========================================
+ Hits        41468    41553      +85     
+ Misses       3936     3880      -56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eclipse-che eclipse-che deleted a comment from github-actions bot Sep 17, 2024
Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1188

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1188", name: che-dashboard}]}}]"

Copy link

openshift-ci bot commented Sep 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, ibuziuk, olexii4

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@olexii4 olexii4 removed the request for review from dmytro-ndp September 18, 2024 11:04
@ibuziuk ibuziuk merged commit 3b8fefa into main Sep 18, 2024
18 checks passed
@ibuziuk ibuziuk deleted the CRW-6587 branch September 18, 2024 12:50
@devstudio-release
Copy link

Build 3.17 :: dashboard_3.x/546: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants