`cabal-validate`: if `stdout` isn't a tty, use GitHub Actions grouping
- 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
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