Tianxin Dong
16dfc1bf8a
Feat: add pending phase in workflow step ( #4365 )
...
* Feat: add pending phase in workflow step
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-07-19 14:31:20 +08:00
Tianxin Dong
a8d5403fee
Feat: optimize imports packages to reduce 75% cpu with better performance ( #4345 )
...
* Feat: optimize imports packages
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-07-11 17:32:18 +08:00
Tianxin Dong
4ecb26e8a2
Feat: store outputs for unsuccessful steps in workflow context ( #4270 )
...
* Feat: store outputs for unsuccessful steps in workflow context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix the test of velaql
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-28 18:49:17 +08:00
Tianxin Dong
82fc74840d
Fix: fix the dash case in if validate for inputs ( #4253 )
...
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-27 11:28:00 +08:00
Tianxin Dong
f7be1cd2fc
Feat: support more expressions in if and op.Fail ( #4151 )
...
* Feat: support more expressions in if
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix cache overrides context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix skip status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in tasks
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add fail action
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix annotation in tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add failed reason in substeps
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix look up nil value
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests in application controller
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* optimize the code
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add status in if
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix dash case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-22 14:51:23 +08:00
Tianxin Dong
87673093e9
Feat: add timeout in workflow step ( #4121 )
...
* Feat: add timeout in workflow step
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: implement timeout in steps
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* support backoff time for timeout
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix resume workflow cli
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* set suspend to false when terminate the workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add validate workflow step name and more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* optimize the code
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-06-13 14:30:52 +08:00
Afzal Ansari
373abf4fe7
Fix: refactors lint issues in missing err in json return value ( #3828 )
...
* refactors error return value of encoding addon
Signed-off-by: afzal442 <afzal442@gmail.com >
* refactor error return value of encoding kubeapi
Signed-off-by: afzal442 <afzal442@gmail.com >
* refactors error return value of encoding worker
Signed-off-by: afzal442 <afzal442@gmail.com >
* refactors error return value of encoding handle
Signed-off-by: afzal442 <afzal442@gmail.com >
* Modifies the json returned err
Signed-off-by: afzal442 <afzal442@gmail.com >
Skips the err
Signed-off-by: afzal442 <afzal442@gmail.com >
adds suggestion for error()
Signed-off-by: afzal442 <afzal442@gmail.com >
* Adds error return value
Signed-off-by: afzal442 <afzal442@gmail.com >
minor changes
Signed-off-by: afzal442 <afzal442@gmail.com >
* updates extendedfile method and adjusts the error
Signed-off-by: afzal442 <afzal442@gmail.com >
* fixes lint error
Signed-off-by: afzal442 <afzal442@gmail.com >
2022-06-03 15:36:55 +08:00
Tianxin Dong
fcfb1012d6
Feat: add if in workflow ( #3941 )
...
* Feat: add if in workflow struct
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: implement the if in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: support dependency and skip for suspend step
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: fix the rebase from sub steps
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: fix the lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: support if in sub steps
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add tests in application controller
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: fix the lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Test: add more tests in discover and custom
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Lint: fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Tests: add more tests in application controller
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: change failed after retries into reason
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Fix: fix the terminate cli
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* remove the terminate workflow to pkg and add feature gates
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* nit fix
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make finish condition more clear
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-05-27 22:01:14 +08:00
Tianxin Dong
a855eddedc
Fix: refactor the step group in workflow ( #3956 )
...
* Fix: refactor the step group in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add tests for discover
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-05-23 20:17:13 +08:00
zq200618
7d9c647b1a
Feat: support step group with substep in the workflow ( #3772 )
...
Signed-off-by: zhengq2006 <zhengq200618@cmbchina.com >
workflow substep develop
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
Feat: support step group with substep in the workflow
Signed-off-by: Qiang Zheng <zhengq20018@cmbchina.com >
2022-05-23 10:26:21 +08:00
Tianxin Dong
21216055fb
Feat: add vela debug command ( #3580 )
...
* Feat: add debug configmap if debug policy is specified
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add vela debug command
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make code reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix sonartype lift
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix cue string
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: display better for debug
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* tidy the go mod
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add debug test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change uitable vendor
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add more tests
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* pass resource keeper from handler
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix rebase
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Pending test temporary
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-04-18 11:06:14 +08:00
Tianxin Dong
bef24bdf22
Fix: separate waiting and failed backoff time and make them configurable ( #3362 )
...
* Fix: separate waiting and failed backoff time and make them configurable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change var name in chart values
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ci
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-03-08 16:04:19 +08:00
Tianxin Dong
d6cf2cdd2f
Fix: add process context in workflow ( #3318 )
...
* Fix: add process context in workflow
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add context data in process context
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* delete usesless func
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* use multi cluster ctx in process ctx
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* remove debug log
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-02-28 10:30:55 +08:00
Tianxin Dong
cb7bc0e7f4
Fix: handle workflow cache reconcile ( #3128 )
...
* Fix: handle workflow cache reconcile
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix return and move backoff to memory
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* handle failed to patch case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add store in err case
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* do cleanup in ut
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2022-01-22 15:54:17 +08:00
barnettZQG
d4762e09cd
Feat: support query endpoints in status command and speed up CLI response ( #3052 )
...
Signed-off-by: barnettZQG <barnett.zqg@gmail.com >
2022-01-07 15:49:27 +08:00
Tianxin Dong
655c2615e1
Feat: add workflow reconciling backoff time and failed limit times ( #2881 )
...
* Feat: add workflow failed after retries
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* Feat: add workflow reconcile backoff time
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix lint
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* make reviewable
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve some comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* add tests
* fix rebase
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix status
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix requeue time interval
* resolve comments
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to pointer
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix pointer test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* fix test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* change time to cm
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
* resolve comments and add e2e test
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-12-15 11:33:33 +08:00
Jian.Li
0803b45faf
Feat: output log with structured tag & add step duration metrics ( #2683 )
...
* debug task
* metrics
* trace context
* add step_duration metrics
* add readme docs
2021-11-12 11:48:41 +08:00
Tianxin Dong
85c887d3e4
Fix: change raw extension to pointer ( #2451 )
...
* Fix: change raw extension to pointer
* Test: fix ut
2021-10-13 16:16:53 +08:00
Tianxin Dong
f9b218919a
Feat(workflow): add depends on in workflow ( #2387 )
...
* Feat: add depens on in charts
* Feat(workflow): add depends on in workflow
2021-09-30 10:30:44 +08:00
Jian.Li
ef653ebeb4
Feat: add inputs test cases and optimize code ( #2388 )
...
* Feat: add test case & optimize code
* Fix: e2e test
2021-09-29 15:08:00 +08:00
Jian.Li
6cbdbe84b2
Refactor application code to make it run as Dag workflow ( #2236 )
...
* Refactor: remove use of AppConfig in AppRevision
* Refactor: remove insert secret and configmap
* Feat(workflow): upgrade
* Fix(conflict): workflow cherry
* Feat(workflow): support DAG mode
* Feat(workflow): prepare steps in step
* Feat(tools): random string
* Fix(rand): gosec weak random
* Fix(ci): test passing
* Feat(workflow): generate steps
* Fix: fix rebase from master
* Fix: fix workflow ut
* Feat(test): add test cases
* Fix: fix lint and rebase from master
* Refactor: application code
* Fix: fix ci lint
* Fix: make code reviewable
* Fix: workflow_test.go
* Feat: collect services
* Fix(ci): unit tests
* Feat: make one
* Test: application with input/output and workflow
* Fix: trace test
* Fix: update step index falied
* Feat: refactor op.#Load
* Fix: delete dead code
* Refactor: op.xxx
* Fix: patch component
* Test: add generator test
* Fix: add license
* Fix: pending e2e plugin test
* Fix: disable test/e2e-test
* Fix: patch by script
Co-authored-by: 天元 <jianbo.sjb@alibaba-inc.com >
Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com >
2021-09-12 10:12:46 +08:00
Jian.Li
7a42c743d7
Feat(workflow): outputs support script notation ( #2218 )
...
* Feat(workflow): output support script notation
* Feat(cue): add test case
2021-09-01 19:19:01 +08:00
Jian.Li
1a6d2be6d0
Feat(workflow): input.ParameterKey described like paths notation ( #2214 )
...
* Feat(workflow): input.ParameterKey path notation
* Feat(workflow): add test case
* Fix(lint): format code
2021-09-01 11:34:16 +08:00
Jianbo Sun
0781937100
Fix: align all CUE template keyword to use parameter ( #2181 )
2021-08-30 11:43:20 +08:00
Jian.Li
96a8b24a64
Make the WorkflowStepDefinition to be Universal ( #2124 )
...
* support script
* add comment
2021-08-19 19:15:41 +08:00
Jian.Li
5f1d07bfc6
Order Steps by Field Tag ( #2022 )
...
* sort by tag
* add test cases for order tag
* parse comments
* fix atrr conflict
* fix bug
2021-08-04 16:30:11 +08:00
Jian.Li
9d6aaa6044
Workflow Support op.# ApplyComponent and op.#ApplyRemaining ( #1993 )
...
* add cap
* workflow
* add docs
* upgrade op.#ApplyComponent
* lint
* bytes to string
2021-07-31 07:14:00 +08:00
Jian.Li
4481e7637d
Optimize Workflow ( #1978 )
...
* open op.#Steps
* export
* fmt code
* fix bug & upgrade workflow doc
* fmt
* upgrade test coverage
* upgrade test coverage
2021-07-29 11:35:22 +08:00
Hongchao Deng
ed0039e1ee
[Feature] CUE Based Workflow Step ( #1935 )
...
* Workflow WIP (#1934 )
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* upgrade code
* initial workflow commit
* interface
* add model value
* walk fields
* provider
* stdlin
* tasks
* add stdlib
* Adjust TaskGenerator
* Unified configmap format
* development completed
* fix import cycle
* demo passing
* upgrade action
* add value test cases
* format
* apis
* add context test cases
* fmt
* fmt
* add context to taskGenerator (#1942 )
* fix configmap test
* add workflow integration test
* lint code
* improve pkg[value、context] testing coverage
* Improve testing coverage(#1957 )
* add license
* add test cases
Co-authored-by: Jian.Li <74582607+leejanee@users.noreply.github.com >
Co-authored-by: Jian.Li <lj176172@alibaba-inc.com >
2021-07-22 18:53:30 +08:00