Skip to content

CI output: inline command output split across 3 lines hurts scanability #2623

@thomhurst

Description

@thomhurst

Symptom

From run 25762828216, job 75668091053:

[INFO ] 
/Users/runner/work/ModularPipelines/ModularPipelines/src/ModularPipelines.Build>
git remote get-url origin → https://github.com/thomhurst/ModularPipelines ✓ 
[27ms, exit 0]
[INFO ]   Working Directory: 
/Users/runner/work/ModularPipelines/ModularPipelines/src/ModularPipelines.Build

Each command run produces 3-4 separate log lines (working dir → command → result → timing footer), each prefixed by GitHub Actions with its own timestamp and step name. Hard to grep for exit to find failures; hard to associate a timing with its command.

Suggested

One-line format, or render as a Spectre Panel so the GH Actions UI shows it as one collapsible block:

[INFO ] git remote get-url origin → https://github.com/.../ModularPipelines ✓ (27ms, exit 0)
       cwd=/Users/runner/work/ModularPipelines/.../ModularPipelines.Build

Or a tiny table:

╭───────────────────────────────────────────────────────┬───────╮
│ git remote get-url origin → https://github.com/.../  │ 27ms  │
│ cwd: …/src/ModularPipelines.Build                    │ exit 0│
╰───────────────────────────────────────────────────────┴───────╯

Either way, keep it to one logical log entry so the GitHub Actions log viewer doesn't fan-out one command into four prefixed rows.

Related

Long absolute paths could be middle-truncated with ellipsis (…/src/ModularPipelines.Build) for inline use. Keep the full path in collapsed ##[group] detail blocks for those who need it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions