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

Spring Boot v2.1.0 stack sample doesn't show composite commands in Eclipse Che #1526

Closed
dmytro-ndp opened this issue Apr 16, 2024 · 1 comment
Labels
area/registry Devfile registry for stacks and infrastructure kind/bug Something isn't working

Comments

@dmytro-ndp
Copy link

dmytro-ndp commented Apr 16, 2024

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area registry

What versions of software are you using?

Eclipse Che Next (7.85.0-SNAPSHOT)
Dev Spaces 3.12.0 deployed to workspaces.openshift.com

Web browser

Operating System and version:

Browser name and version:

Bug Summary

Describe the bug:

When I created workspace using devfile https://github.com/devfile/registry/blob/main/stacks/java-springboot/2.1.0/devfile.yaml in Eclipse Che 7.85.0 / Dev Spaces 3.12.0, I saw no composite commands build-image, deployk8s in the devfile task list in VS Code editor:

  - id: build-image
    apply:
      component: build
  - id: deployk8s
    apply:
      component: deploy
  - id: deploy
    composite:
      commands:
        - build-image
        - deployk8s
      group:
        kind: deploy
        isDefault: true

To Reproduce:

  1. Create and open workspace on DevSandbox using the link https://workspaces.openshift.com/#/https://raw.githubusercontent.com/devfile/registry/main/stacks/java-springboot/2.1.0/devfile.yaml
  2. Go to top left menu > Terminal > Run Task...
  3. Open list of devfile commands.

There are only 3 commands in the list:

  • devfile: build
  • devfile: run
  • devfile: debug

Expected behavior

Task list includes next composite commands described in the https://github.com/devfile/registry/blob/main/stacks/java-springboot/2.1.0/devfile.yaml:

  • devfile: build
  • devfile: run
  • devfile: debug
  • devfile: build-image
  • devfile: deployk8s

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

Screenshot from 2024-04-16 18-11-15

Additional context

Any workaround?

Suggestion on how to fix the bug

@openshift-ci openshift-ci bot added kind/bug Something isn't working area/registry Devfile registry for stacks and infrastructure labels Apr 16, 2024
@dmytro-ndp dmytro-ndp changed the title Python v2.1.0 stack sample doesn't show composite commands in Eclipse Che Spring Boot v2.1.0 stack sample doesn't show composite commands in Eclipse Che Apr 16, 2024
@johnmcollier johnmcollier moved this to Refinement in Devfile Project Apr 17, 2024
@thepetk
Copy link
Contributor

thepetk commented Apr 25, 2024

@dmytro-ndp I'm closing this issue as a "duplicate" of #1524.

I've been investigating the reason of the commands not showing up. I've found out that the issue is happening for all devfiles that their commands use the commands.apply field and not the commands.exec field.

Example for example you can notice the same behavior for go 2.3.0, 2.2.0 etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure kind/bug Something isn't working
Projects
Status: Done ✅
Development

No branches or pull requests

2 participants