c0119_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 -> c0119
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/c0119
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001c17a0)(<nil>)
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
})
(*core.Cache)(0xc00000e938)({
})
[runtime global] dvar expanded result:
{
}
-------runtime global final merged with dvars-------
(*core.Cache)({
})
located task-> 1 [task]:
Task1: [task ==> task: main entry ]
Executing task stack layer: 1
-Step1: [step1: demo it will loop until loopitem = item3 ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "demo it will loop until loopitem = item3",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: {
"item1",
"item2",
"item3",
"item4"
},
Until: "{{ eq .loopitem \"item3\" }}",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
{{.loopitem}}
~SubStep1: [print: ]
item1
{{.loopitem}}
~SubStep1: [print: ]
item2
loop util conditional break
-Step2: [step2: ]
{
Name: "step2",
Do: {
{
"name": "print",
"cmd": "hello"
}
},
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)({
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
hello
~SubStep1: [print: ]
hello
-Step3: [step3: ]
{
Name: "step3",
Do: "subtask",
Dox: <nil>,
Func: "call",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: {
"proc 1",
"proc 2",
"proc 3",
"proc 4"
},
Until: "{{ eq .loopitem \"proc 3\" }}",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
caller's vars to task (subtask)::
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
located task-> 2 [subtask]:
=Task2: [task ==> subtask: subtask to test reg and return ]
Executing task stack layer: 2
--Step1: [step1: the loopitem here is inherited from caller ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "the loopitem here is inherited from caller",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
{{.loopitem}}
~~SubStep1: [print: ]
proc 1
caller's vars to task (subtask)::
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2
})
located task-> 2 [subtask]:
=Task2: [task ==> subtask: subtask to test reg and return ]
Executing task stack layer: 2
--Step1: [step1: the loopitem here is inherited from caller ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "the loopitem here is inherited from caller",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2",
"loopindex": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2"
}
self: final context exec vars:
(*core.Cache)({
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2"
})
{{.loopitem}}
~~SubStep1: [print: ]
proc 2
loop util conditional break
-Step4: [step4: ]
{
Name: "step4",
Do: "subtask",
Dox: <nil>,
Func: "call",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: {
"proc 1",
"proc 2",
"proc 3",
"proc 4"
},
Until: "{{ eq .loopindex 3 }}",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1
})
caller's vars to task (subtask)::
(*core.Cache)({
"loopindex1": 1,
"up_runtime_task_layer_number": 1,
"loopitem": "proc 1",
"loopindex": 0
})
located task-> 2 [subtask]:
=Task2: [task ==> subtask: subtask to test reg and return ]
Executing task stack layer: 2
--Step1: [step1: the loopitem here is inherited from caller ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "the loopitem here is inherited from caller",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1
})
{{.loopitem}}
~~SubStep1: [print: ]
proc 1
caller's vars to task (subtask)::
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2
})
located task-> 2 [subtask]:
=Task2: [task ==> subtask: subtask to test reg and return ]
Executing task stack layer: 2
--Step1: [step1: the loopitem here is inherited from caller ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "the loopitem here is inherited from caller",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2
})
{{.loopitem}}
~~SubStep1: [print: ]
proc 2
caller's vars to task (subtask)::
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3
})
located task-> 2 [subtask]:
=Task2: [task ==> subtask: subtask to test reg and return ]
Executing task stack layer: 2
--Step1: [step1: the loopitem here is inherited from caller ]
{
Name: "step1",
Do: {
{
"name": "print",
"cmd": "{{.loopitem}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "the loopitem here is inherited from caller",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3,
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3,
"up_runtime_task_layer_number": 1
})
{{.loopitem}}
~~SubStep1: [print: ]
proc 3
loop util conditional break
-Step5: [step5: it will stop loop at proc 4 ]
{
Name: "step5",
Do: "subtask2",
Dox: <nil>,
Func: "call",
Vars: {
"person": "jason"
},
Dvars: <nil>,
Desc: "it will stop loop at proc 4",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: {
"proc 1",
"proc 2",
"proc 3",
"proc 4",
"proc 5",
"proc 6"
},
Until: "{{ eq .person \"tom\" }}",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"person": "jason",
"up_runtime_task_layer_number": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 1,
"person": "jason"
}
self: final context exec vars:
(*core.Cache)({
"person": "jason",
"up_runtime_task_layer_number": 1
})
caller's vars to task (subtask2)::
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
located task-> 3 [subtask2]:
=Task3: [task ==> subtask2: ]
Executing task stack layer: 2
--Step1:
{
Name: "",
Do: {
{
"name": "reg",
"cmd": {
"name": "person",
"value": "tom"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "{{ eq .loopindex 3 }}",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"person": "jason",
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 1"
})
condition failed, skip executing step
--Step2: [step2: ]
{
Name: "step2",
Do: {
{
"name": "print",
"cmd": "person: {{.person}}"
}
},
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)({
"person": "jason",
"loopitem": "proc 1",
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 1"
}
self: final context exec vars:
(*core.Cache)({
"loopindex": 0,
"loopindex1": 1,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 1"
})
person: {{.person}}
~~SubStep1: [print: ]
person: jason
caller's vars to task (subtask2)::
(*core.Cache)({
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 2"
})
located task-> 3 [subtask2]:
=Task3: [task ==> subtask2: ]
Executing task stack layer: 2
--Step1:
{
Name: "",
Do: {
{
"name": "reg",
"cmd": {
"value": "tom",
"name": "person"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "{{ eq .loopindex 3 }}",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 2",
"loopindex": 1
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 2"
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2
})
condition failed, skip executing step
--Step2: [step2: ]
{
Name: "step2",
Do: {
{
"name": "print",
"cmd": "person: {{.person}}"
}
},
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)({
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 2",
"loopindex": 1
}
self: final context exec vars:
(*core.Cache)({
"loopitem": "proc 2",
"loopindex": 1,
"loopindex1": 2,
"up_runtime_task_layer_number": 1,
"person": "jason"
})
person: {{.person}}
~~SubStep1: [print: ]
person: jason
caller's vars to task (subtask2)::
(*core.Cache)({
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3,
"up_runtime_task_layer_number": 1,
"person": "jason"
})
located task-> 3 [subtask2]:
=Task3: [task ==> subtask2: ]
Executing task stack layer: 2
--Step1:
{
Name: "",
Do: {
{
"name": "reg",
"cmd": {
"name": "person",
"value": "tom"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "{{ eq .loopindex 3 }}",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3,
"up_runtime_task_layer_number": 1,
"person": "jason"
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3
})
condition failed, skip executing step
--Step2: [step2: ]
{
Name: "step2",
Do: {
{
"name": "print",
"cmd": "person: {{.person}}"
}
},
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)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 3",
"loopindex": 2,
"loopindex1": 3
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopindex1": 3,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 3",
"loopindex": 2
}
self: final context exec vars:
(*core.Cache)({
"loopindex": 2,
"loopindex1": 3,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 3"
})
person: {{.person}}
~~SubStep1: [print: ]
person: jason
caller's vars to task (subtask2)::
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 4",
"loopindex": 3,
"loopindex1": 4
})
located task-> 3 [subtask2]:
=Task3: [task ==> subtask2: ]
Executing task stack layer: 2
--Step1:
{
Name: "",
Do: {
{
"name": "reg",
"cmd": {
"name": "person",
"value": "tom"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "{{ eq .loopindex 3 }}",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"loopindex": 3,
"loopindex1": 4,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 4"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 4",
"loopindex": 3,
"loopindex1": 4
}
self: final context exec vars:
(*core.Cache)({
"loopindex1": 4,
"up_runtime_task_layer_number": 1,
"person": "jason",
"loopitem": "proc 4",
"loopindex": 3
})
map[name:person value:tom]
~~SubStep1: [reg: ]
after reg the var - contextual global:
(*core.Cache)({
"loopindex1": 4,
"up_runtime_task_layer_number": 1,
"person": "tom",
"loopitem": "proc 4",
"loopindex": 3
})
after reg the var - local:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "tom",
"loopitem": "proc 4",
"loopindex": 3,
"loopindex1": 4
})
--Step2: [step2: ]
{
Name: "step2",
Do: {
{
"name": "print",
"cmd": "person: {{.person}}"
}
},
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)({
"loopindex": 3,
"loopindex1": 4,
"up_runtime_task_layer_number": 1,
"person": "tom",
"loopitem": "proc 4"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"loopitem": "proc 4",
"loopindex": 3,
"loopindex1": 4,
"up_runtime_task_layer_number": 1,
"person": "tom"
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 1,
"person": "tom",
"loopitem": "proc 4",
"loopindex": 3,
"loopindex1": 4
})
person: {{.person}}
~~SubStep1: [print: ]
person: tom
loop util conditional break
Logs with different verbose level
References