weixin_39552472 2020-11-21 21:36
浏览 0

Liberty Dev Mode

What commercial Liberty edition does this feature belong in (pick one)?

  Open Liberty

Should this feature be included in the Bluemix buildpack?

  No

What SalesForce Skill/Mission Team and legacy RETAIN queue will be responsible for supporting this feature?

  None. This feature will be part of the Maven plugins

Provide a Dev Mode for Liberty that enables developers to focus on coding without needing to repeatedly compile, package and then deploy their applications to test. IOW, fast and efficient inner loop development.

This includes doing hot deploy with background compilation of changed classes, hot reload of changed resource/properties files and reload on first request (e.g. browser refresh) should changes are detected in the workspace (project).

Developers can use Boost to launch Liberty into Dev Mode, edit their Maven or Gradle-built applications with their favourite editor (any IDE), changes will be automatically compiled and re-loaded where they can test right away.

Should enable developers to run and run JUnit tests simultaneous (from their IDE) with Dev Mode running too. Provide facilities (like Liberty-specific annotations) to developers to simplify what they need to do to setup their tests.

该提问来源于开源项目:OpenLiberty/open-liberty

  • 写回答

5条回答 默认 最新

  • weixin_39552472 2020-11-21 21:36
    关注

    YK: We can architect this so Boost can support different runtimes/frameworks in Dev Mode too.

    评论
  • weixin_39552472 2020-11-21 21:36
    关注

    No ID is required

    评论
  • weixin_39552472 2020-11-21 21:36
    关注

    We may need SVT and Performance testing for this feature.But this does not follow the Liberty release schedule. therefore tagged as non-release.

    评论
  • weixin_39552472 2020-11-21 21:36
    关注

    Link to WAD for review on 6/10: https://ibm.box.com/s/yi52sh0jqqqtciy4av1lup8i0fk57n4e

    评论
  • weixin_39552472 2020-11-21 21:36
    关注

    WAD review comments:

    Kevin - no IDE requirement?

    Eric - no any IDE.

    Alasdair - any IDE - even VI! All work, compilation, etc, done in background.

    Kevin - is testing going on all the time? Can be time consuming.

    Eric - we’re studying that now. Have more on that later in the material.

    Rumana - what is difference doing this in supporting IDE (e.g. Eclipse) vs with this Maven plugin ?

    Eric - doesn’t require specific IDE.

    Rumana - should be able to use this on Eclipse?

    Eric - yes.

    Alasdair - (page 13) - view logs mean view them in log viewer, correct?

    Eric - means look at log file.

    Andy - (slide 16) - is there plugin for this dev mode?

    Eric - yes, Maven plugin.

    Andy - can make tests run by default, so don’t have to specify every time?

    Eric - yes, they run by default. There is system property to turn off.

    Scott - (slide 22) - Boost/Test containers are multiple runtimes. What about dev mode?

    Eric - only for Liberty. Might broaden later.

    Alasdair - should not assume we will treat all runtimes equally - want to dev mode to make Liberty excel.

    Jared - (slide 28, performance) doing anything special to speed it up? Like quick start or something?

    Alasdair - don’t we normally use that on liberty start?

    Jared, no causes throughput to drop

    FOLLOW-UP w/Alasdair/Eric/Jared to evaluate whether/what to do for startup speed.

    Alasdair (slide 29) - last bullet (copy output to Maven) should be on developer experience slide

    Alasdair - if developing Spring app with Dev mode what happens?

    Eric - don’t know.

    Alasdair - we need to try out spring app with dev mode.

    Scott - keeping same behavior when app is recycled? Same initialization logic, etc.

    Eric - whatever loose applications do.

    Scott - need to recycle server after adding new features (e.g. via install utility)

    Alasdair - some features may still require recycle. E.g. features that overwrite jar files. Mostly corner cases.

    Scott - can generally install features and use right away?

    Alasdair - yes.

    Emily - in debug mode, what is user experience like?

    Eric - just run liberty dev debug mode and it just opens port 7777. Can customize port. Then point IDE to it.

    Alasdair (summary) - doesn’t wait for debug to attach - it’s lazy attach. Server script calls debug w/o wait. Should revisit discussion whether to run debug via server script or run server debug?

    Andy +1 go through server script.

    Emily what is default way?

    Eric - start w/no-wait and attach any time.

    Emily - how to start w/wait to debug startup code?

    Andy - there is an env var.

    Michael Cheng - what happens while test is running and you make multiple saves.

    Eric - batch them up and queue up new compile/test cycle to take place after existing tests are done.

    Andy - consider control signal for running tests?

    Eric - provide manual trigger

    Emily - for this WAD, in dev mode - if you create docker file, must turn off dev mode to build image?

    Alasdair - don’t remember a discussion about dev mode and docker images. Cant put loose config in docker file and expect to run because files outside where docker build expects them. Existing limitation.

    Emily - after using dev mode. How do I build docker image?

    Alasdair - dev mode does not change this. Do same thing as you do today. Will open feature to update guide. Assign to YK.

    展开全部

    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部