Skip to content

Add quiet flags to package managers to reduce workflow log noise#7061

Merged
pelikhan merged 3 commits intomainfrom
copilot/reduce-workflow-log-noise
Dec 20, 2025
Merged

Add quiet flags to package managers to reduce workflow log noise#7061
pelikhan merged 3 commits intomainfrom
copilot/reduce-workflow-log-noise

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 20, 2025

Successful workflow runs were showing 113+ errors/warnings despite passing. Root cause: 2>&1 | tee redirection causes benign package manager output (progress bars, deprecation warnings, cache messages) to appear as errors in GitHub Actions logs.

Changes

Package installation silenced:

  • pip install --user --quiet for Python packages
  • npm install -g --silent for Node.js packages
  • docker pull --quiet for container images

Files modified:

  • Source: pkg/workflow/nodejs.go, pkg/workflow/runtime_setup.go, pkg/workflow/docker.go
  • Shared workflows: .github/workflows/shared/{python-dataviz,trending-charts-simple}.md
  • Individual workflow: .github/workflows/copilot-pr-nlp-analysis.md
  • Tests updated to expect new flags

127 workflow lock files recompiled with new quiet flags.

Example

- pip install --user numpy pandas matplotlib
+ pip install --user --quiet numpy pandas matplotlib

- npm install -g @anthropic-ai/claude-code@2.0.73
+ npm install -g --silent @anthropic-ai/claude-code@2.0.73

- docker pull "$image"
+ docker pull --quiet "$image"

Impact

Expected reduction from 113 errors to <10 in successful runs. Real errors (installation failures, critical warnings) still visible. Only suppresses progress indicators and informational messages.

Original prompt

This section details on the original issue you should resolve

<issue_title>[plan] Reduce workflow log noise on successful runs</issue_title>
<issue_description>## Objective

Identify and silence/resolve redundant error and warning emitters in successful workflow runs to improve signal-to-noise ratio.

Context

Recent successful runs show unacceptably high error/warning counts:

This noise creates alert fatigue and masks real issues.

Approach

  1. Download and analyze logs from the top 3 noisiest successful runs
  2. Identify the specific steps/commands generating the most errors/warnings
  3. Categorize noise sources:
    • False positives (can be suppressed)
    • Fixable issues (should be addressed)
    • Expected warnings (should be documented/accepted)
  4. Implement fixes:
    • Add appropriate flags to silence non-critical output
    • Fix underlying issues where feasible
    • Document accepted warnings in workflow comments

Files to Investigate

  • .github/workflows/*.yml - Workflow definitions
  • .github/workflows/*.md - Workflow source files
  • Action logs from runs 20337316176, 20337284655, and other noisy successes

Acceptance Criteria

  • Root causes of top error/warning sources identified and documented
  • Successful runs show <10 errors/warnings total
  • No actual issues masked by noise reduction
  • Changes documented in PR description

Estimated Effort

Medium (2-4 hours)
Related to #6857

AI generated by Plan Command for discussion #6855

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 20, 2025 14:58
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
… noise

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot merge main, recompile

Copilot AI changed the title [WIP] Identify and silence redundant error emitters in workflows Add quiet flags to package managers to reduce workflow log noise Dec 20, 2025
Copilot AI requested a review from mnkiefer December 20, 2025 15:14
@pelikhan pelikhan marked this pull request as ready for review December 20, 2025 15:22
@pelikhan pelikhan merged commit 68f9600 into main Dec 20, 2025
4 of 5 checks passed
@pelikhan pelikhan deleted the copilot/reduce-workflow-log-noise branch December 20, 2025 15:23
Copilot AI requested a review from pelikhan December 20, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plan] Reduce workflow log noise on successful runs

3 participants