mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #1171] [MERGED] Improve logging #1820
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1820
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1171
Author: @ZauberNerd
Created: 5/17/2022
Status: ✅ Merged
Merged: 6/17/2022
Merged by: @mergify[bot]
Base:
master← Head:improve-logging📝 Commits (9)
665fb9ffeat: use logger from context wherever possible515c847feat: add step/job id and results to json logsccfd5e3test: value to be masked should not be hard-coded in the action62930a4fix: replace values following ::add-mask:: in evaluated strings062279cfeat: [DEBUG] identifier for debug logs to distinguish them603748dfeat: replace logger with step logger3cdc895feat: add pre/post stage identifier fields to json log outputce8f113feat: add job/step result status to skipped steps/jobsa08496cMerge branch 'master' into improve-logging📊 Changes
35 files changed (+363 additions, -292 deletions)
View changed files
📝
pkg/artifacts/server.go(+5 -5)📝
pkg/common/executor.go(+1 -3)📝
pkg/common/git/git.go(+17 -15)📝
pkg/common/git/git_test.go(+2 -2)📝
pkg/container/docker_auth.go(+6 -4)📝
pkg/container/docker_build.go(+3 -4)📝
pkg/container/docker_pull.go(+5 -6)📝
pkg/container/docker_pull_test.go(+1 -1)📝
pkg/container/docker_run.go(+4 -5)📝
pkg/model/github_context.go(+13 -12)📝
pkg/model/github_context_test.go(+6 -5)📝
pkg/runner/action.go(+51 -46)📝
pkg/runner/action_composite.go(+17 -16)📝
pkg/runner/action_test.go(+1 -1)📝
pkg/runner/command.go(+3 -2)📝
pkg/runner/command_test.go(+1 -1)📝
pkg/runner/expression.go(+37 -32)📝
pkg/runner/expression_test.go(+9 -8)📝
pkg/runner/job_executor.go(+44 -19)📝
pkg/runner/job_executor_test.go(+13 -1)...and 15 more files
📄 Description
Replace more of the global logger call sites with contextualized job/step loggers and add job/step id and results as fields to the JSON logger output.
This causes most debug logs to be printed with the job logger, which means they are now correctly prefixed with the job they belong to.
Also, having the ids and results in the JSON output helps in cases where the log is read by machines, because we now can attribute each line to a job/step.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.