Skip to content

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Sep 17, 2025

What does this PR do?

This PR updates the heckForTemplatesUpdate method to allow custom editor updates from the .che/che-editor.yaml file before the next workspace start.

Screenshot/screencast of this PR

Знімок екрана 2025-09-17 о 18 05 11 Знімок екрана 2025-09-17 о 18 11 09

What issues does this PR fix or reference?

fixes eclipse-che/che#23467

Is it tested? How?

  1. Apply dashboard pull request image: quay.io/eclipse/che-dashboard:pr-1378-amd64
  2. Prepare a git repository with .che/che-editor.yaml file with the following content:
reference: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/insiders/devfile.yaml
override:
  containers:
    - name: che-code-injector
      memoryLimit: 2048Mi
  1. Create a new workspace from the target repository. Check the che-editor memory limit, it should be 2048Mi.
  2. Update .che/che-editor.yaml file with the following content:
reference: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/insiders/devfile.yaml
override:
  containers:
    - name: che-code-injector
      memoryLimit: 4096Mi
  1. Restart the target workspace. Check the che-editor memory limit, it should be 4096Mi.

Release Notes

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Sep 17, 2025

Click here to review and test in web IDE: Contribute

@olexii4 olexii4 requested a review from svor September 17, 2025 14:09
@olexii4 olexii4 marked this pull request as draft September 17, 2025 14:09
Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

@olexii4 olexii4 marked this pull request as ready for review September 18, 2025 13:30
Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

@eclipse-che eclipse-che deleted a comment from codecov bot Sep 21, 2025
@eclipse-che eclipse-che deleted a comment from github-actions bot Sep 21, 2025
@eclipse-che eclipse-che deleted a comment from github-actions bot Sep 21, 2025
@eclipse-che eclipse-che deleted a comment from github-actions bot Sep 21, 2025
@eclipse-che eclipse-che deleted a comment from openshift-ci bot Sep 21, 2025
Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

Copy link

codecov bot commented Sep 21, 2025

Codecov Report

❌ Patch coverage is 85.87571% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.93%. Comparing base (a72f80d) to head (b05c60d).

Files with missing lines Patch % Lines
.../actions/actionCreators/helpers/getCustomEditor.ts 77.77% 12 Missing ⚠️
...orkspace-client/devworkspace/devWorkspaceEditor.ts 87.65% 10 Missing ⚠️
...oard-frontend/src/store/FactoryResolver/actions.ts 81.81% 2 Missing ⚠️
...tions/actionCreators/createWorkspaceFromDevfile.ts 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1378      +/-   ##
==========================================
- Coverage   91.98%   91.93%   -0.05%     
==========================================
  Files         508      509       +1     
  Lines       46984    47052      +68     
  Branches     3356     3364       +8     
==========================================
+ Hits        43217    43258      +41     
- Misses       3730     3755      +25     
- Partials       37       39       +2     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@svor svor left a comment

Choose a reason for hiding this comment

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

LGTM
tried to patch editor as described in the description:
Screenshot 2025-09-23 at 12 20 55

Also tested by replacing editor id from idea editor to che-code editor - works as expected

getState: () => RootState,
): Promise<string | undefined> {
let editorsDevfile: devfileApi.Devfile | undefined;
// let editorsDevfile: devfileApi.Devfile | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I have fixed it.

@openshift-ci openshift-ci bot added the lgtm label Sep 23, 2025
@svor svor requested a review from olkornii September 23, 2025 12:11
Copy link

@olkornii olkornii left a comment

Choose a reason for hiding this comment

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

Tested with Che.
cluster: 4.17 aws,no-spot (via ClusterBot).
oc: 4.19.4
Works for me.

@olkornii
Copy link

Tested with Devspaces.
cluster: 4.19 personal
oc: 4.19.4
Works for me.

Copy link
Contributor

@akurinnoy akurinnoy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

openshift-ci bot commented Sep 23, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@openshift-ci openshift-ci bot removed the lgtm label Sep 23, 2025
Copy link

openshift-ci bot commented Sep 23, 2025

New changes are detected. LGTM label has been removed.

Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-amd64", name: che-dashboard}]}}]"

Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-ppc64le", name: che-dashboard}]}}]"

Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

1 similar comment
Copy link

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

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-1378-s390x", name: che-dashboard}]}}]"

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.

.che/che-editor.yaml changes not applied on workspace restart — only on creation?
5 participants