c0128_vvvvv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0128
Verbose -> vvvvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
:release version: 1.0.0
:verbose level: vvvvv
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0128
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001751e0)(<nil>)
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
"a": "global_aaa",
"b": "global_bbb",
"c": "global_ccc"
})
(*core.Cache)(0xc0000b6910)((len=3) {
(string) (len=1) "c": (string) (len=10) "global_ccc",
(string) (len=1) "a": (string) (len=10) "global_aaa",
(string) (len=1) "b": (string) (len=10) "global_bbb"
})
[runtime global] dvar expanded result:
{
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"a": "global_aaa",
"b": "global_bbb",
"c": "global_ccc"
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1: [: show example the route goes to call goelse for the condition of not if condition succeeds ]
{
Name: "",
Do: {
{
"func": "shell",
"do": {
"echo \"shell step1\"",
"echo \"shell step2\""
}
},
{
"func": "cmd",
"do": {
{
"name": "print",
"cmd": "cmd print step\nup_runtime_task_layer_number: {{.up_runtime_task_layer_number}}\na: {{.a}}\nb: {{.b}}\nda: {{.da}}\ndb: {{.db}}\n"
}
}
}
},
Dox: <nil>,
Func: "block",
Vars: {
"a": "local_aaa",
"b": "local_bbb"
},
Dvars: {
{
Name: "da",
Value: "local_da",
Desc: "",
Expand: 0,
Flags: <nil>,
Rendered: "",
Secure: (*utils.SecureSetting)(<nil>),
Ref: "",
RefDir: "",
DataKey: "",
DataPath: "",
DataTemplate: ""
},
{
Name: "db",
Value: "local_db",
Desc: "",
Expand: 0,
Flags: <nil>,
Rendered: "",
Secure: (*utils.SecureSetting)(<nil>),
Ref: "",
RefDir: "",
DataKey: "",
DataPath: "",
DataTemplate: ""
}
},
Desc: "show example the route goes to call goelse for the condition of not if condition succeeds",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"b": "local_bbb",
"c": "global_ccc",
"a": "local_aaa",
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
"da": "local_da",
"db": "local_db"
}
scope[local] merged: {
"a": "local_aaa",
"up_runtime_task_layer_number": 0,
"da": "local_da",
"db": "local_db",
"b": "local_bbb",
"c": "global_ccc"
}
self: final context exec vars:
(*core.Cache)({
"b": "local_bbb",
"c": "global_ccc",
"a": "local_aaa",
"up_runtime_task_layer_number": 0,
"db": "local_db",
"da": "local_da"
})
-Step1:
{
Name: "",
Do: {
"echo \"shell step1\"",
"echo \"shell step2\""
},
Dox: <nil>,
Func: "shell",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"da": "local_da",
"a": "local_aaa",
"b": "local_bbb",
"c": "global_ccc",
"up_runtime_task_layer_number": 0,
"db": "local_db"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"a": "local_aaa",
"b": "local_bbb",
"c": "global_ccc",
"up_runtime_task_layer_number": 0,
"db": "local_db",
"da": "local_da"
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"db": "local_db",
"da": "local_da",
"a": "local_aaa",
"b": "local_bbb",
"c": "global_ccc"
})
cmd( 1):
echo "shell step1"
cmd=>:
echo "shell step1"
-
shell step1
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=18) "echo \"shell step1\"",
Code: (int) 0,
Output: (string) (len=11) "shell step1",
ErrMsg: (string) ""
}
cmd( 2):
echo "shell step2"
cmd=>:
echo "shell step2"
-
shell step2
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=18) "echo \"shell step2\"",
Code: (int) 0,
Output: (string) (len=11) "shell step2",
ErrMsg: (string) ""
}
. ok
-Step2:
{
Name: "",
Do: {
{
"name": "print",
"cmd": "cmd print step\nup_runtime_task_layer_number: {{.up_runtime_task_layer_number}}\na: {{.a}}\nb: {{.b}}\nda: {{.da}}\ndb: {{.db}}\n"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"db": "local_db",
"da": "local_da",
"c": "global_ccc",
"a": "local_aaa",
"b": "local_bbb",
"last_result": (*utils.ExecResult)({
Cmd: "echo \"shell step2\"",
Code: 0,
Output: "shell step2",
ErrMsg: ""
}),
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"db": "local_db",
"da": "local_da",
"c": "global_ccc",
"a": "local_aaa",
"b": "local_bbb",
"last_result": (*utils.ExecResult)({
Cmd: "echo \"shell step2\"",
Code: 0,
Output: "shell step2",
ErrMsg: ""
}),
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"last_result": (*utils.ExecResult)({
Cmd: "echo \"shell step2\"",
Code: 0,
Output: "shell step2",
ErrMsg: ""
}),
"up_runtime_task_layer_number": 0,
"db": "local_db",
"da": "local_da",
"c": "global_ccc",
"a": "local_aaa",
"b": "local_bbb"
})
cmd print step
up_runtime_task_layer_number: {{.up_runtime_task_layer_number}}
a: {{.a}}
b: {{.b}}
da: {{.da}}
db: {{.db}}
~SubStep1: [print: ]
cmd print step
up_runtime_task_layer_number: 0
a: local_aaa
b: local_bbb
da: local_da
db: local_db
Logs with different verbose level
References