c0102_vvvv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0102
Verbose -> vvvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
:release version: 1.0.0
:verbose level: vvvv
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0102
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n"
})
-------runtime global final merged with dvars-------
(*core.Cache)({
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n"
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1:
current exec runtime vars:
(*core.Cache)({
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n",
"up_runtime_task_layer_number": 0
})
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n"
})
cmd( 1):
echo "{{.mock_yml}}" > /tmp/mock_yml.yml
cmd=>:
echo "tom:
sex: male
age: 23
jason:
sex: male
age: 35
emily:
sex: female
age: 32
" > /tmp/mock_yml.yml
-
-
.. ok
. ok
-Step2: [: inplace modification ]
current exec runtime vars:
(*core.Cache)({
"last_result": (*utils.ExecResult)({
Cmd: "echo \"tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n\" > /tmp/mock_yml.yml",
Code: 0,
Output: "",
ErrMsg: ""
}),
"up_runtime_task_layer_number": 0,
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n"
})
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n",
"last_result": (*utils.ExecResult)({
Cmd: "echo \"tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n\" > /tmp/mock_yml.yml",
Code: 0,
Output: "",
ErrMsg: ""
})
})
~SubStep1: [ymlDelete: ]
~SubStep2: [readFile: check new file content ]
~SubStep3: [print: show the modified yml content read from file ]
tom:
sex: male
age: 23
jason:
age: 35
emily:
sex: female
age: 32
-Step3: [: modify in memory and register to cache ]
current exec runtime vars:
(*core.Cache)({
"new_yml": "tom:\n sex: male\n age: 23\njason:\n age: 35\nemily:\n sex: female\n age: 32\n",
"up_runtime_task_layer_number": 0,
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n",
"last_result": (*utils.ExecResult)({
Cmd: "echo \"tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n\" > /tmp/mock_yml.yml",
Code: 0,
Output: "",
ErrMsg: ""
})
})
self: final context exec vars:
(*core.Cache)({
"mock_yml": "tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n",
"last_result": (*utils.ExecResult)({
Cmd: "echo \"tom:\n sex: male\n age: 23\njason:\n sex: male\n age: 35\nemily:\n sex: female\n age: 32\n\" > /tmp/mock_yml.yml",
Code: 0,
Output: "",
ErrMsg: ""
}),
"new_yml": "tom:\n sex: male\n age: 23\njason:\n age: 35\nemily:\n sex: female\n age: 32\n",
"up_runtime_task_layer_number": 0
})
~SubStep1: [ymlDelete: ]
~SubStep2: [print: show the modified yml content registered ]
tom:
sex: male
age: 23
jason:
age: 35
emily:
sex: female
age: 32
Logs with different verbose level
References