Skip to content

chore: add Gemini CLI install to devfile#1500

Open
olexii4 wants to merge 2 commits intomainfrom
update_devfile
Open

chore: add Gemini CLI install to devfile#1500
olexii4 wants to merge 2 commits intomainfrom
update_devfile

Conversation

@olexii4
Copy link
Copy Markdown
Contributor

@olexii4 olexii4 commented Mar 25, 2026

What does this PR do?

Adds Google Gemini CLI support to the devfile.yaml used for developing che-dashboard in a Che/DevSpaces workspace.

Two new entries are added:

  • install-gemini-cli command — runs npm install -g @google/gemini-cli, exposed as a run-group command so it is directly accessible from the IDE command palette.
  • run-gemini command — runs npx @google/gemini-cli, exposed as a run-group command so it is directly accessible from the IDE command palette.
  - id: install-gemini-cli
    exec:
      label: "[UD] install Gemini CLI"
      component: tools
      workingDir: ${PROJECT_SOURCE}
      commandLine: "npm install -g @google/gemini-cli"
  - id: run-gemini
    exec:
      label: "[UD] run Gemini"
      component: tools
      workingDir: ${PROJECT_SOURCE}
      commandLine: "npx @google/gemini-cli"
      group:
        kind: run

Screenshot/screencast of this PR

What issues does this PR fix or reference?

Is it tested? How?

  1. Deploy Eclipse Che.
  2. Open the Create Workspace page and select Import from Git.
  3. Paste the following URL and create a new workspace:
    https://github.com/eclipse-che/che-dashboard/tree/update_devfile
  4. Wait for the workspace to start — the postStart event runs npm install -g @google/gemini-cli automatically inside the tools container.
  5. Once the workspace is ready, open the IDE command palette and run the [UD] install Gemini CLI, then [UD] run Gemini commands to confirm the CLI is available and functional.

Release Notes

Docs PR

@che-bot
Copy link
Copy Markdown
Contributor

che-bot commented Mar 25, 2026

Click here to review and test in web IDE: Contribute

@olexii4 olexii4 requested a review from svor March 25, 2026 22:10
@github-actions
Copy link
Copy Markdown

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

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

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.22%. Comparing base (cb663b2) to head (0325542).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1500   +/-   ##
=======================================
  Coverage   92.22%   92.22%           
=======================================
  Files         561      561           
  Lines       54692    54692           
  Branches     4064     4064           
=======================================
  Hits        50442    50442           
  Misses       4203     4203           
  Partials       47       47           

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

devfile.yaml Outdated
kind: run
events:
postStart:
- install-gemini-cli
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not recommended to install apps, dependencies and other packages using the postStart hook.

Users should make their hook handlers as lightweight as possible.

see Hook handler execution

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@akurinnoy I have fixed it.

Installs @google/gemini-cli globally on workspace start
and exposes a run-gemini command for interactive use.

Assisted-by: Cursor
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1500 (linux/amd64, linux/arm64)

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

@olexii4 olexii4 changed the title chore: add Gemini CLI install to devfile postStart chore: add Gemini CLI install to devfile Mar 29, 2026
- Remove cron-parser@5.5.0 from EXCLUDED/prod.md (now auto-detected as MIT)
- Add flatted@3.4.2 to EXCLUDED/dev.md (ISC license, unresolved by dash-licenses)
- Regenerate prod.md and dev.md

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1500 (linux/amd64, linux/arm64)

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

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 30, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Details 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
Copy link
Copy Markdown
Contributor Author

olexii4 commented Mar 31, 2026

/retest

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 31, 2026

@olexii4: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v19-dashboard-happy-path 5b28697 link true /test v19-dashboard-happy-path

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 2, 2026

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

4 participants