mrutkows commented on issue #608: Invalid Runtime not detected / no error 
generated
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/608#issuecomment-336966727
 
 
   In addition, issue #306 lists what we SHOULD do (copied below), but I am not 
confident we test for many of these conditions NOR do we have features opened 
for those that require new code.
   
   1.  verify the kind (if it has one) a valid extension ":default" as part if 
the string OR
   2.  verify it has a valid version number, for example ":6" or ":3"
   3.    Notify user with a specific error saying "Specified runtime (kind) is 
not recognized as being valid" along with the line number in the manifest where 
this was parsed.
   4.    Allow simple "java" as a value and assume we default to "latest", that 
is we treat it like "java:default" instead.
   5.    **FEATURE**: if the user specifies a valid kind runtime:nodejs:4 but 
the version is not recognized we should look to interactively prompt the user 
asking if they want to continue with the latest "default" for that runtime kind 
(PLEASE OPEN A NEW ISSUE FOR THIS INTERACTIVE MODE).
   6.    **FEATURE**: we should perhaps call the CLI to list the known runtimes 
and not hardcode a list at all and use the JSON response to derive a list of 
valid runtime (kinds) AND we should provide WARNINGS to the user of the 
runtimes are marked "deprecated". (PLEASE OPEN A NEW ISSUE FOR FEATURE).
   
   -and if we do not find a runtime key at all in the manifest we should of 
course still "default" to "nodejs:default", BUT WE SHOULD PRESENT A WARNING in 
the output to the user that we are making this assumption.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to