Skip to content

Prefix Job StdOut and StdErr #2736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qoomon opened this issue Apr 20, 2025 · 2 comments
Closed

Prefix Job StdOut and StdErr #2736

qoomon opened this issue Apr 20, 2025 · 2 comments
Labels
kind/feature-request New feature or request

Comments

@qoomon
Copy link
Contributor

qoomon commented Apr 20, 2025

Act version

0.2.76

Feature description

Currently the stdout and stderr logs of a job are just logged with a colored prefix of | that makes it quite hard to know to which job a log line belongs to.

Therefore I would suggest to prefix all output lines a like to the other job related logs e.g., [build.yaml/test-job]

WDYT?

@qoomon qoomon added the kind/feature-request New feature or request label Apr 20, 2025
@ChristopherHX
Copy link
Contributor

I think this was by design to reduce the noise of long workflow + job names filling the Terminal, if this is not opt in like a cli flag, I think this FR needs 100+ upvotes.

Afaik act | cat would work. The long form is only used if colors are disabled / no tty is attached, so NO_COLOR env might have the same effect.

If you want to parse the output --json is the way to go.

@qoomon
Copy link
Contributor Author

qoomon commented Apr 21, 2025

@ChristopherHX thx for the explanation. And thanks for the hint towards --json

@qoomon qoomon closed this as completed Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants