c0193_vvv

Log reference:

    loading [Config]:  ./tests/functests/upconfig.yml
    Main config:
                 Version -> 1.0.0
                  RefDir -> ./tests/functests
                 WorkDir -> cwd
              AbsWorkDir -> /up_project/up
                TaskFile -> c0193
                 Verbose -> vvv
              ModuleName -> self
               ShellType -> /bin/sh
           MaxCallLayers -> 8
                 Timeout -> 3600000
     MaxModuelCallLayers -> 256
               EntryTask -> task
      ModRepoUsernameRef -> 
      ModRepoPasswordRef -> 
    work dir: /up_project/up
    -exec task: task
    loading [Task]:  ./tests/functests/c0193
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    Task1: [task ==> task: please switch to use case1|case2 ...
    the reason we do not chain all cases together is because
    the venv will pollute the entire running session unless you mananage to restore it
     ]
    -Step1:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    =Task4: [task ==> case3:  ]
    --Step1: [
    before sourcing, the env var: AAA does not exist
    this will cause an error
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    cmd( 1):
    env |grep AAA
    
    -
    
    -
     .. failed(suppressed if it is not the last step)
     WARN: [ignoreError:] - [Error ignored!!!]
    --Step2: [
    no source/srcfile input
    with name and action
    now it will save current shell env
    which has got no AAA in it
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      })
    })
    
    ~~SubStep1: [virtualEnv:  ]
    -sourcing execution result:
    
    --Step3: [
    since there is no source, this will still cause an error
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      })
    })
    
    cmd( 1):
    env |grep AAA
    
    -
    
    -
     .. failed(suppressed if it is not the last step)
     WARN: [ignoreError:] - [Error ignored!!!]
    --Step4: [
    now source and save current shell environment variables
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      })
    })
    
    ~~SubStep1: [virtualEnv:  ]
    -sourcing execution result:
    start of source
    end of source
    
    --Step5: [
    after sourcing, the env var: AAA exist
    the error should be cleared
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      }),
      "up_runtime_task_layer_number": 1
    })
    
    cmd( 1):
    env |grep AAA
    
    -
    AAA=sourced_aaa
    
    -
     .. ok
    . ok
    --Step6: [
    now let's restore to the point of venv0
    which has got no AAA in it
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 0,
        Output: "AAA=sourced_aaa",
        ErrMsg: ""
      })
    })
    
    ~~SubStep1: [virtualEnv:  ]
    -sourcing execution result:
    
    --Step7: [
    this will still cause an error
    as now the shell env is restored to venv0
    which has got no AAA in it
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 0,
        Output: "AAA=sourced_aaa",
        ErrMsg: ""
      })
    })
    
    cmd( 1):
    env |grep AAA
    
    -
    
    -
     .. failed(suppressed if it is not the last step)
     WARN: [ignoreError:] - [Error ignored!!!]
    --Step8: [
    now let's restore to the point of venv1
    which has got AAA in it
    we expect the error is clear
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1,
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      })
    })
    
    ~~SubStep1: [virtualEnv:  ]
    -sourcing execution result:
    
    --Step9: [
    after sourcing, the env var: AAA exist
    the error should be cleared
    ]
    self: final context exec vars:
    
    (*core.Cache)({
      "last_result": (*utils.ExecResult)({
        Cmd: "env |grep AAA",
        Code: 1,
        Output: "",
        ErrMsg: "exit status 1"
      }),
      "up_runtime_task_layer_number": 1
    })
    
    cmd( 1):
    env |grep AAA
    
    -
    AAA=sourced_aaa
    
    -
     .. ok
    . ok
    
Logs with different verbose level
References