c0033_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 -> c0033
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/c0033
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001e75e0)((len=3 cap=3) {
(impl.Scope) {
Name: (string) (len=6) "global",
Ref: (string) "",
RefDir: (string) "",
Members: ([]string) <nil>,
Vars: (core.Cache) (len=1) {
(string) (len=7) "student": (map[interface {}]interface {}) (len=3) {
(string) (len=4) "name": (string) (len=3) "Tom",
(string) (len=6) "gender": (string) (len=4) "Male",
(string) (len=7) "address": (map[interface {}]interface {}) (len=2) {
(string) (len=6) "suburb": (map[interface {}]interface {}) (len=3) {
(string) (len=4) "name": (string) (len=6) "sydney",
(string) (len=8) "postcode": (int) 2000,
(string) (len=3) "CBD": (bool) true
},
(string) (len=6) "school": (string) (len=14) "Sydney Grammar"
}
}
},
Dvars: (impl.Dvars) <nil>
},
(impl.Scope) {
Name: (string) (len=7) "nonprod",
Ref: (string) "",
RefDir: (string) "",
Members: ([]string) (len=2 cap=2) {
(string) (len=3) "dev",
(string) (len=7) "staging"
},
Vars: (core.Cache) (len=4) {
(string) (len=1) "b": (string) (len=10) "non-prod-b",
(string) (len=1) "c": (string) (len=10) "non-prod-c",
(string) (len=1) "d": (string) (len=10) "non-prod-d",
(string) (len=1) "a": (string) (len=10) "non-prod-a"
},
Dvars: (impl.Dvars) (len=1 cap=1) {
(impl.Dvar) {
Name: (string) (len=6) "school",
Value: (string) (len=132) "address:\n suburb:\n name: {{.student.address.suburb.name}}\n postcode: 2000\n CBD: yes\n school: {{.student.address.school}}\n",
Desc: (string) "",
Expand: (int) 0,
Flags: ([]string) (len=1 cap=1) {
(string) (len=5) "toObj"
},
Rendered: (string) "",
Secure: (*utils.SecureSetting)(<nil>),
Ref: (string) "",
RefDir: (string) "",
DataKey: (string) "",
DataPath: (string) "",
DataTemplate: (string) ""
}
}
},
(impl.Scope) {
Name: (string) (len=3) "dev",
Ref: (string) "",
RefDir: (string) "",
Members: ([]string) <nil>,
Vars: (core.Cache) (len=2) {
(string) (len=1) "a": (string) (len=5) "dev-a",
(string) (len=1) "b": (string) (len=5) "dev-b"
},
Dvars: (impl.Dvars) (len=1 cap=1) {
(impl.Dvar) {
Name: (string) (len=6) "school",
Value: (string) (len=151) "address:\n suburb:\n name: {{.student.address.suburb.name}}\n postcode: 2000\n CBD: no\n school: {{.student.address.school}}\nprincipal: Mr Peter\n",
Desc: (string) "",
Expand: (int) 0,
Flags: ([]string) (len=1 cap=1) {
(string) (len=5) "toObj"
},
Rendered: (string) "",
Secure: (*utils.SecureSetting)(<nil>),
Ref: (string) "",
RefDir: (string) "",
DataKey: (string) "",
DataPath: (string) "",
DataTemplate: (string) ""
}
}
}
})
[global] dvar expanded result:
{
}
scope[global] merged: {
"student": {
"gender": "Male",
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
},
"school": "Sydney Grammar"
},
"name": "Tom"
}
}
[nonprod] dvar expanded result:
{
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: yes\n school: Sydney Grammar\n",
"school_object": {
"address": {
"school": "Sydney Grammar",
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
}
}
}
}
scope[nonprod] merged: {
"b": "non-prod-b",
"c": "non-prod-c",
"d": "non-prod-d",
"a": "non-prod-a",
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: yes\n school: Sydney Grammar\n",
"school_object": {
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
},
"school": "Sydney Grammar"
}
}
}
---------group vars----------
nonprod: (*core.Cache)({
"d": "non-prod-d",
"a": "non-prod-a",
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: yes\n school: Sydney Grammar\n",
"school_object": {
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
},
"school": "Sydney Grammar"
}
},
"b": "non-prod-b",
"c": "non-prod-c"
})
global: (*core.Cache)({
"student": {
"gender": "Male",
"address": {
"suburb": {
"CBD": true,
"name": "sydney",
"postcode": 2000
},
"school": "Sydney Grammar"
},
"name": "Tom"
}
})
groups members:[dev staging]
[dev] dvar expanded result:
{
"school_object": {
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": false
},
"school": "Sydney Grammar"
},
"principal": "Mr Peter"
},
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n"
}
scope[dev] merged: {
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n",
"a": "dev-a",
"b": "dev-b",
"school_object": {
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": false
},
"school": "Sydney Grammar"
},
"principal": "Mr Peter"
}
}
merged[ dev ] runtime vars:
(*core.Cache)({
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n",
"school_object": {
"address": {
"school": "Sydney Grammar",
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": false
}
},
"principal": "Mr Peter"
},
"b": "dev-b",
"c": "non-prod-c",
"student": {
"gender": "Male",
"address": {
"suburb": {
"postcode": 2000,
"CBD": true,
"name": "sydney"
},
"school": "Sydney Grammar"
},
"name": "Tom"
},
"d": "non-prod-d",
"a": "dev-a"
})
(*core.Cache)(0xc000126b48)((len=7) {
(string) (len=13) "school_object": (map[interface {}]interface {}) (len=2) {
(string) (len=7) "address": (map[interface {}]interface {}) (len=2) {
(string) (len=6) "school": (string) (len=14) "Sydney Grammar",
(string) (len=6) "suburb": (map[interface {}]interface {}) (len=3) {
(string) (len=4) "name": (string) (len=6) "sydney",
(string) (len=8) "postcode": (int) 2000,
(string) (len=3) "CBD": (bool) false
}
},
(string) (len=9) "principal": (string) (len=8) "Mr Peter"
},
(string) (len=1) "b": (string) (len=5) "dev-b",
(string) (len=1) "c": (string) (len=10) "non-prod-c",
(string) (len=7) "student": (map[interface {}]interface {}) (len=3) {
(string) (len=7) "address": (map[interface {}]interface {}) (len=2) {
(string) (len=6) "suburb": (map[interface {}]interface {}) (len=3) {
(string) (len=4) "name": (string) (len=6) "sydney",
(string) (len=8) "postcode": (int) 2000,
(string) (len=3) "CBD": (bool) true
},
(string) (len=6) "school": (string) (len=14) "Sydney Grammar"
},
(string) (len=4) "name": (string) (len=3) "Tom",
(string) (len=6) "gender": (string) (len=4) "Male"
},
(string) (len=1) "d": (string) (len=10) "non-prod-d",
(string) (len=1) "a": (string) (len=5) "dev-a",
(string) (len=6) "school": (string) (len=112) "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n"
})
[runtime global] dvar expanded result:
{
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"b": "dev-b",
"c": "non-prod-c",
"student": {
"name": "Tom",
"gender": "Male",
"address": {
"suburb": {
"postcode": 2000,
"CBD": true,
"name": "sydney"
},
"school": "Sydney Grammar"
}
},
"d": "non-prod-d",
"a": "dev-a",
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n",
"school_object": {
"address": {
"suburb": {
"postcode": 2000,
"CBD": false,
"name": "sydney"
},
"school": "Sydney Grammar"
},
"principal": "Mr Peter"
}
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1:
{
Name: "",
Do: {
"echo \"\"\"1.school -> {{.school}}\"\"\"",
"echo \"\"\"2.school object CBD -> {{.school_object.address.suburb.CBD}}\"\"\"",
"echo \"\"\"3.school object-> {{.school_object.address.school}}\"\"\"",
"echo \"\"\"4.school object-> {{.school_object.principal}}\"\"\""
},
Dox: <nil>,
Func: "shell",
Vars: {
"a": "local-a",
"b": "local-b"
},
Dvars: {
{
Name: "school",
Value: "address:\n state: NSW\n city: sydney\n suburb:\n name: {{.student.address.suburb.name}}\n postcode: 2000\n CBD: LOCAL\n school: {{.student.address.school}}\nprincipal: Mr Right\n",
Desc: "",
Expand: 0,
Flags: {
"toObj"
},
Rendered: "",
Secure: (*utils.SecureSetting)(<nil>),
Ref: "",
RefDir: "",
DataKey: "",
DataPath: "",
DataTemplate: ""
}
},
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"student": {
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
},
"school": "Sydney Grammar"
},
"name": "Tom",
"gender": "Male"
},
"up_runtime_task_layer_number": 0,
"d": "non-prod-d",
"a": "local-a",
"school": "address:\n suburb:\n name: sydney\n postcode: 2000\n CBD: no\n school: Sydney Grammar\nprincipal: Mr Peter\n",
"school_object": {
"address": {
"suburb": {
"postcode": 2000,
"CBD": false,
"name": "sydney"
},
"school": "Sydney Grammar"
},
"principal": "Mr Peter"
},
"b": "local-b",
"c": "non-prod-c"
})
[local] dvar expanded result:
{
"school_object": {
"address": {
"state": "NSW",
"city": "sydney",
"suburb": {
"CBD": "LOCAL",
"name": "sydney",
"postcode": 2000
},
"school": "Sydney Grammar"
},
"principal": "Mr Right"
},
"school": "address:\n state: NSW\n city: sydney\n suburb:\n name: sydney\n postcode: 2000\n CBD: LOCAL\n school: Sydney Grammar\nprincipal: Mr Right\n"
}
scope[local] merged: {
"school": "address:\n state: NSW\n city: sydney\n suburb:\n name: sydney\n postcode: 2000\n CBD: LOCAL\n school: Sydney Grammar\nprincipal: Mr Right\n",
"school_object": {
"address": {
"state": "NSW",
"school": "Sydney Grammar",
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": "LOCAL"
},
"city": "sydney"
},
"principal": "Mr Right"
},
"b": "local-b",
"c": "non-prod-c",
"student": {
"name": "Tom",
"gender": "Male",
"address": {
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": true
},
"school": "Sydney Grammar"
}
},
"up_runtime_task_layer_number": 0,
"d": "non-prod-d",
"a": "local-a"
}
self: final context exec vars:
(*core.Cache)({
"school": "address:\n state: NSW\n city: sydney\n suburb:\n name: sydney\n postcode: 2000\n CBD: LOCAL\n school: Sydney Grammar\nprincipal: Mr Right\n",
"school_object": {
"address": {
"school": "Sydney Grammar",
"city": "sydney",
"state": "NSW",
"suburb": {
"name": "sydney",
"postcode": 2000,
"CBD": "LOCAL"
}
},
"principal": "Mr Right"
},
"b": "local-b",
"c": "non-prod-c",
"student": {
"name": "Tom",
"gender": "Male",
"address": {
"school": "Sydney Grammar",
"suburb": {
"postcode": 2000,
"CBD": true,
"name": "sydney"
}
}
},
"up_runtime_task_layer_number": 0,
"d": "non-prod-d",
"a": "local-a"
})
cmd( 1):
echo """1.school -> {{.school}}"""
cmd=>:
echo """1.school -> address:
state: NSW
city: sydney
suburb:
name: sydney
postcode: 2000
CBD: LOCAL
school: Sydney Grammar
principal: Mr Right
"""
-
1.school -> address:
state: NSW
city: sydney
suburb:
name: sydney
postcode: 2000
CBD: LOCAL
school: Sydney Grammar
principal: Mr Right
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=166) "echo \"\"\"1.school -> address:\n state: NSW\n city: sydney\n suburb:\n name: sydney\n postcode: 2000\n CBD: LOCAL\n school: Sydney Grammar\nprincipal: Mr Right\n\"\"\"",
Code: (int) 0,
Output: (string) (len=154) "1.school -> address:\n state: NSW\n city: sydney\n suburb:\n name: sydney\n postcode: 2000\n CBD: LOCAL\n school: Sydney Grammar\nprincipal: Mr Right",
ErrMsg: (string) ""
}
cmd( 2):
echo """2.school object CBD -> {{.school_object.address.suburb.CBD}}"""
cmd=>:
echo """2.school object CBD -> LOCAL"""
-
2.school object CBD -> LOCAL
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=39) "echo \"\"\"2.school object CBD -> LOCAL\"\"\"",
Code: (int) 0,
Output: (string) (len=28) "2.school object CBD -> LOCAL",
ErrMsg: (string) ""
}
cmd( 3):
echo """3.school object-> {{.school_object.address.school}}"""
cmd=>:
echo """3.school object-> Sydney Grammar"""
-
3.school object-> Sydney Grammar
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=43) "echo \"\"\"3.school object-> Sydney Grammar\"\"\"",
Code: (int) 0,
Output: (string) (len=32) "3.school object-> Sydney Grammar",
ErrMsg: (string) ""
}
cmd( 4):
echo """4.school object-> {{.school_object.principal}}"""
cmd=>:
echo """4.school object-> Mr Right"""
-
4.school object-> Mr Right
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=37) "echo \"\"\"4.school object-> Mr Right\"\"\"",
Code: (int) 0,
Output: (string) (len=26) "4.school object-> Mr Right",
ErrMsg: (string) ""
}
. ok
Logs with different verbose level
References