0005_vvv
Log reference:
loading [Config]: ./tests/modtests/0005/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/modtests/0005
WorkDir -> refdir
AbsWorkDir -> /up_project/up/tests/modtests/0005
TaskFile -> up.yml
Verbose -> vvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> Main
ModRepoUsernameRef ->
ModRepoPasswordRef ->
work dir: /up_project/up/tests/modtests/0005
-exec task: Main
loading [Task]: ./up.yml
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
Task1: [Main ==> Main: main entry ]
-Step1:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"b": "caller-global-bbb",
"e": "caller-global-eee",
"a": "caller-global-aaa"
})
~SubStep1: [inspect: the vars in caller before invoking module task ]
1: inspect[exec_vars]
(*core.Cache)({
"e": "caller-global-eee",
"a": "caller-global-aaa",
"up_runtime_task_layer_number": 0,
"b": "caller-global-bbb"
})
2: inspect[exec_base_vars]
{
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"e": "caller-global-eee"
}
-Step2:
self: final context exec vars:
(*core.Cache)({
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"e": "caller-global-eee",
"up_runtime_task_layer_number": 0
})
WARN: [config file does not exist] - [use builtin defaults]
loading [Task]: ./up.yml
module: [hello-module], instance id: [nonamed], exec profile: []
WARN: [*be aware*] - [both instance id and exec profile are not set]
profile - envVars:
(*core.Cache)({
})
=>call module: [hello-module] task: [Say_world]
Task2: [TODO: Main Caller Taskname ==> Say_world: ]
-Step1:
hello-module: final context exec vars:
(*core.Cache)({
"c": "module-global-ccc",
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"d": "module-local-ddd",
"e": "caller-global-eee",
"up_runtime_task_layer_number": 0,
"up_runtime_tasker_layer_number": 2
})
~SubStep1: [inspect: the result would be:
a: caller-global-aaa
b: caller-global-bbb
c: module-global-ccc
d: module-local-ddd
e: caller-global-eee
]
1: inspect[exec_vars]
(*core.Cache)({
"c": "module-global-ccc",
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"d": "module-local-ddd",
"e": "caller-global-eee",
"up_runtime_task_layer_number": 0,
"up_runtime_tasker_layer_number": 2
})
2: inspect[exec_base_vars]
{
"b": "caller-global-bbb",
"e": "caller-global-eee",
"up_runtime_task_layer_number": 0,
"a": "caller-global-aaa",
"c": "module-global-ccc"
}
~SubStep2: [assert: ]
1 ASSERT OK: [{{eq .a "caller-global-aaa"}}]
2 ASSERT OK: [{{eq .b "caller-global-bbb"}}]
3 ASSERT OK: [{{eq .c "module-global-ccc"}}]
4 ASSERT OK: [{{eq .d "module-local-ddd"}}]
5 ASSERT OK: [{{eq .e "caller-global-eee"}}]
~SubStep3: [return: ]
-Step3:
self: final context exec vars:
(*core.Cache)({
"c": "module-global-ccc",
"up_runtime_tasker_layer_number": 2,
"up_runtime_task_layer_number": 0,
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"e": "caller-global-eee"
})
~SubStep1: [inspect: the vars in caller after invoking module task ]
1: inspect[exec_vars]
(*core.Cache)({
"c": "module-global-ccc",
"up_runtime_tasker_layer_number": 2,
"up_runtime_task_layer_number": 0,
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"e": "caller-global-eee"
})
2: inspect[exec_base_vars]
{
"a": "caller-global-aaa",
"b": "caller-global-bbb",
"e": "caller-global-eee",
"c": "module-global-ccc"
}
~SubStep2: [assert: ]
1 ASSERT OK: [{{eq .a "caller-global-aaa"}}]
2 ASSERT OK: [{{eq .b "caller-global-bbb"}}]
3 ASSERT OK: [{{eq .c "module-global-ccc"}}]
4 ASSERT OK: [{{eq .e "caller-global-eee"}}]
Logs with different verbose level
References