odo dev
: hotReloadCapable
command part of composite run
command not executed
#6129
Labels
area/dev
Issues or PRs related to `odo dev`
area/devfile-spec
Issues or PRs related to the Devfile specification and how odo handles and interprets it.
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
priority/Medium
Nice to have issue. Getting it done before priority changes would be great.
/kind bug
/area dev
What versions of software are you using?
Operating System:
Fedora 36
Output of
odo version
:How did you run odo exactly?
hotReloadCapable
default run command:odo dev
, and wait until the Dev session is up and running. We can see from the logs that thedev-run
command was not executed:Actual behavior
The
hotReloadCapable
command is not run, preventing users from iterating on their application.Expected behavior
All commands part of the composite run command should be executed once, regardless of their
hotReloadCapable
field.I think that besides detecting that a command is
hotReloadCapable
, we should always check the corresponding process status in the container, and if it not running, execute the command remotely in the container.The application is expected to be reachable:
❯ curl -i http://localhost:40001/hello HTTP/1.1 200 OK Content-Type: text/plain;charset=UTF-8 content-length: 14 Hello RESTEasy
Any logs, error output, etc?
If I start
odo dev
with more verbosity, we can see this message:Full logs attached: odo_dev_logs.txt
Workaround
A workaround is to change the
hotReloadCapable
field of the command tofalse
in the Devfile prior to startingodo dev
, then reset it back totrue
. The changes will be handled automatically byodo dev
.The text was updated successfully, but these errors were encountered: