act/pkg/runner
Björn Brauer 4391a10d5a
Improve logging (#1171)
* feat: use logger from context wherever possible

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add step/job id and results to json logs

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* test: value to be masked should not be hard-coded in the action

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* fix: replace values following ::add-mask:: in evaluated strings

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: [DEBUG] identifier for debug logs to distinguish them

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: replace logger with step logger

The container gets injected a job logger, but during the time that steps
are run, we want to use the step logger.
This commit wraps pre/main/post steps in an executor that replaces the
job logger with a step logger.

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add pre/post stage identifier fields to json log output

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add job/step result status to skipped steps/jobs

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-06-17 15:55:21 +00:00
..
res Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata Improve logging (#1171) 2022-06-17 15:55:21 +00:00
action.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
action_composite.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
action_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
command.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
command_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
container_mock_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
expression.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
expression_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
job_executor.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
job_executor_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
logger.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
run_context.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
run_context_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
runner.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
runner_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_action_local.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_action_local_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_action_remote.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_action_remote_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_docker.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_docker_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_factory.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_factory_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_run.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
step_run_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00