Skip to content

Remove noisy negative-result messages from compile output#23878

Merged
pelikhan merged 4 commits intomainfrom
copilot/reduce-default-text-compile-command
Apr 1, 2026
Merged

Remove noisy negative-result messages from compile output#23878
pelikhan merged 4 commits intomainfrom
copilot/reduce-default-text-compile-command

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

make recompile was emitting two low-value "nothing happened" messages that cluttered the tail of every run.

Changes

  • compile_stats.go: displayStatsTable now returns silently when the stats list is empty (was: ⚠ No workflow statistics to display). In directory-scan mode config.MarkdownFiles is empty, so stats are never collected — making this warning appear on every standard make recompile run.
  • compile_batch_operations.go: Dropped the verbose-mode ℹ No orphaned .lock.yml files found to purge message. Negative-result confirmations add noise without signal.
  • compile_stats_test.go: Updated TestDisplayStatsTable_Empty to assert zero output.

Before / After

# Before (tail of make recompile)
ℹ Found 179 existing .lock.yml files
ℹ No orphaned .lock.yml files found to purge       ← removed
✓ Updated .gitattributes to mark .lock.yml files as generated
✓ Action cache saved to .../.github/aw/actions-lock.json
⚠ No workflow statistics to display               ← removed

# After
ℹ Found 179 existing .lock.yml files
✓ Updated .gitattributes to mark .lock.yml files as generated
✓ Action cache saved to .../.github/aw/actions-lock.json

Copilot AI and others added 2 commits April 1, 2026 05:23
- Remove warning when stats list is empty (silently skip)
- Remove 'No orphaned .lock.yml files found to purge' from verbose output
- Update TestDisplayStatsTable_Empty to expect no output

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/d823cd69-e421-44e1-9dda-613f5cd7e7fa

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review April 1, 2026 12:11
Copilot AI review requested due to automatic review settings April 1, 2026 12:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces compile-time console noise by removing “negative result” messages, and updates one workflow lockfile.

Changes:

  • Suppress the “No workflow statistics to display” warning by returning silently on empty stats.
  • Remove the verbose-mode “No orphaned .lock.yml files found to purge” message.
  • Update the empty-stats unit test expectation; additionally updates a workflow .lock.yml file (version/config changes).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
pkg/cli/compile_stats.go Stops emitting a warning when there are no workflow stats to display.
pkg/cli/compile_stats_test.go Adjusts the empty-stats test to expect no stderr output.
pkg/cli/compile_batch_operations.go Removes a verbose-mode “no orphaned files” informational message.
.github/workflows/smoke-service-ports.lock.yml Updates pinned versions/config and various workflow behaviors (appears unrelated to the stated PR goal).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 95 to 99
func displayStatsTable(statsList []*WorkflowStats) {
compileStatsLog.Printf("Displaying stats table: workflow_count=%d", len(statsList))
if len(statsList) == 0 {
fmt.Fprintln(os.Stderr, console.FormatWarningMessage("No workflow statistics to display"))
return
}
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

displayStatsTable now returns with no user-facing output when statsList is empty, but it still emits a debug log line to stderr before the empty check (compileStatsLog.Printf(...)). Because logger enablement is determined at init time from DEBUG/ACTIONS_RUNNER_DEBUG, this can cause unexpected stderr output (and will break the updated empty-output test) when debug logging is enabled. Consider moving the compileStatsLog.Printf after the len(statsList) == 0 early return, or otherwise avoid writing to stderr for the empty case.

See below for a potential fix:

	if len(statsList) == 0 {
		return
	}

	compileStatsLog.Printf("Displaying stats table: workflow_count=%d", len(statsList))

Copilot uses AI. Check for mistakes.
Comment on lines 84 to 90
GH_AW_INFO_EXPERIMENTAL: "false"
GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"
GH_AW_INFO_STAGED: "false"
GH_AW_INFO_ALLOWED_DOMAINS: '["defaults","github"]'
GH_AW_INFO_FIREWALL_ENABLED: "true"
GH_AW_INFO_AWF_VERSION: "v0.25.1"
GH_AW_INFO_AWF_VERSION: "v0.25.5"
GH_AW_INFO_AWMG_VERSION: ""
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow lock file includes substantial changes (AWF/mcpg version bumps, new env exclusions, artifact patterns, detection job gating, etc.) that are unrelated to the PR’s stated goal of reducing make recompile CLI output noise. If these workflow changes are intentional, they should be called out in the PR description; otherwise consider reverting/splitting them into a separate PR to keep scope focused and reviewable.

Copilot uses AI. Check for mistakes.
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 1, 2026

@copilot merge main, recompile, review comments

Copilot AI and others added 2 commits April 1, 2026 12:24
…t-text-compile-command

# Conflicts:
#	.github/workflows/smoke-service-ports.lock.yml

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Ensures no debug log output occurs for the empty-list case,
which would break the empty-output test when DEBUG logging is enabled.
Also runs make recompile after merging main.

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/70351163-57b6-4d6c-a3dc-6b5b4f150637

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot merge main, recompile, review comments

Done — merged main, recompiled all lock files, and addressed the review comment (moved compileStatsLog.Printf after the empty check in displayStatsTable) in ea0b648.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw 6IF0e-0ID5dJ (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -embedcfg /tmp/go-build3481650172/b287/embedcfg -pack (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0 --jq .object.sha (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from pelikhan April 1, 2026 12:27
@pelikhan pelikhan merged commit aa417c4 into main Apr 1, 2026
@pelikhan pelikhan deleted the copilot/reduce-default-text-compile-command branch April 1, 2026 12:29
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.

3 participants