mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #941] Enhancement: Summarize Job Results and Separate Job Outputs #553
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#553
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?
Originally created by @adamsmd on GitHub (Dec 26, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/941
Is there some way to summarize job results and separate job outputs (or some other project that builds on this one to add that)? For example, like how GitHub shows particular runs of a workflow.
I have some jobs with large matrices, and it would be helpful to have something that makes it easier to track which entries failed and trace the failure causes.
@pwoolvett commented on GitHub (Jan 5, 2022):
My grain of sand:
alias act='act | tee >(grep -P "\x{2705}|\x{274c}|\x{2b50}|\x{1F9EA}|\x{1F680}" >summary.log) act.log'Explanation and usage (bash):
use named jobs and include matrix data in the name, eg:
instead of
act, runact | tee >(grep -P "\x{2705}|\x{274c}|\x{2b50}|\x{1F9EA}|\x{1F680}" >summary.log) act.logact.logcontains copy of the terminal outputsummary.logcontains the filtered version. You can add or remove emojis to the grep to have more or less info, eg keep only ❌ if you want to look at failed ones:act | tee >(grep -P "\x{274c}" >summary.log) act.loglet act run
Look at
summary.logand copy a job's name which requires attention. It has the format :<pipeline name>/<job name>Do something
4.1 Job summary:
cat act.log | fgrep "<job name>" | grep -P "\x{2705}|\x{274c}|\x{2b50}|\x{1F9EA}|\x{1F680}"4.2 Job output after error only,
cat act.log | fgrep "<job name>" | fgrep -A $(cat act.log | wc -l) "$(cat act.log | fgrep "<job name>" | grep -P "\x{2b50}" | tail -1)"4.3 Full output:
cat act.log | fgrep "<job name>"I've got these aliased and as functions in
bashrcMy only problem so far is the
summaryget populated when act finishes...@github-actions[bot] commented on GitHub (Feb 5, 2022):
Issue is stale and will be closed in 14 days unless there is new activity