haskell / haskell/cabal

`cabal-validate`: if `stdout` isn't a tty, use GitHub Actions grouping

Open
#10,595 0 comments 1 reaction 0 assignees View on GitHub
cabal-validate
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Small suggestion: if `stdout` isn't a tty, maybe output [GitHub Actions grouping](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#grouping-log-lines) that can be collapsed or expanded by the viewer instead of the ANSI escapes. Then we can make everything verbose in CI without overwhelming people trying to go through the log.

_Originally posted by @geekosaur in https://github.com/haskell/cabal/issues/10569#issuecomment-2492005062_

Contributor guide

Open the contributing guide

Research direction

Locate the cabal-validate output handling and inspect how ANSI escapes are emitted for grouped or verbose output. Exercise the non-TTY path in GitHub Actions and verify that log sections use collapsible grouping without ANSI escapes.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.