Skip to content

Comments

Move skip-if-match/skip-if-no-match console output to debug logging#16671

Merged
pelikhan merged 2 commits intomainfrom
copilot/move-console-output-to-log
Feb 18, 2026
Merged

Move skip-if-match/skip-if-no-match console output to debug logging#16671
pelikhan merged 2 commits intomainfrom
copilot/move-console-output-to-log

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Console output for skip-if-match and skip-if-no-match configuration was always printed during compilation, adding noise to the output. These messages are diagnostic information that should only appear when debugging.

Changes

  • Converted skip-if-match/skip-if-no-match configuration messages from console output to debug logs using the existing stopAfterLog logger
  • Removed verbose flag check - messages now controlled by DEBUG=workflow:stop_after environment variable
  • Applied consistently to both skip-if-match and skip-if-no-match for symmetry

Before:

if c.verbose && workflowData.SkipIfMatch != nil {
    fmt.Fprintln(os.Stderr, console.FormatInfoMessage(
        fmt.Sprintf("Skip-if-match query configured: %s (max: 1 match)", ...)))
}

After:

if workflowData.SkipIfMatch != nil {
    stopAfterLog.Printf("Skip-if-match query configured: %s (max: 1 match)", ...)
}

Messages now appear only when DEBUG=workflow:stop_after or DEBUG=* is set, reducing console noise while preserving diagnostic capabilities.

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 npm 64/bin/go git init�� 64/bin/go 1PS_GbLMV9hN /opt/hostedtoolcache/node/24.13.0/x64/bin/node ath ../../../.prgit ../../../**/*.jsrev-parse 64/bin/go node (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha 15/001/test-frontmatter-with-nested-objects.md GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE fileutil GOMODCACHE go env 0658-37522/test-2358302073/.github/workflows GO111MODULE nfig/composer/vendor/bin/sh GOINSECURE GOMOD ode-gyp-bin/node--show-toplevel ortcfg (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha audit-workflows.md GO111MODULE ache/go/1.25.0/x64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/link env 2007526/b401/repoutil.test GO111MODULE 2007526/b401/importcfg.link GOINSECURE GOMOD GOMODCACHE wmvwlVjEnf88q/rlg_4reGrU6lgaN24-vo/9kfMsjtzGOFIi51OI_-c/tFE_Q0UwmvwlVjEnf88q (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha vaScript2681355415/001/test-simple-frontmatter.md GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 2007526/b292/vet.cfg GOINSECURE GOMOD GOMODCACHE node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha /tmp/go-build4232007526/b406/_pkg_.a -trimpath /usr/bin/git -p github.com/githurev-parse -lang=go1.25 git -C /tmp/gh-aw-test-runs/20260218-230658-37522/test-257671567 status /usr/bin/git .github/workflowgit -nolocalimports -importcfg git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha ty-test.md GO111MODULE tions/setup/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha 64/bin/go sh om/testorg/testrepo.git tierignore ache/go/1.25.0/xrev-parse 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/compile -o r/repo.git -trimpath /usr/bin/git -p main -lang=go1.25 git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -c go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -json GO111MODULE 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build4232007526/b108/vet.cfg /usr/bin/git -json GO111MODULE ode_modules/.bin--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -c=4 -nolocalimports -importcfg /tmp/go-build2726142616/b386/importcfg -pack /home/REDACTED/.cache/go-build/28/2888c116b4dd41c7e454d91f71379455c9ea3ccc6f11da9d7908e60710d24506-d node /opt�� prettier --write 64/bin/go !../../../pkg/wo/opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/compile --ignore-path ../../../.pretti/tmp/go-build2726142616/b389/_pkg_.a go (http block)
    • Triggering command: `/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha npx prettier --wGOSUMDB sh 64/bin/go tierignore ssages

Co-authoenv run-script/lib/n-json go env h ../../../.prettierignore GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go` (http block)

  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha blog-auditor.md 2007526/b125/vet.cfg /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 0658-37522/test-257671567 GO111MODULE /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE node (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha auto-triage-issues.md stmain.go ache/go/1.25.0/x64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/link env 2007526/b404/sliceutil.test GO111MODULE 2007526/b404/importcfg.link GOINSECURE GOMOD GOMODCACHE -JPGyIl2vB7_F/G9sEDD2pLhLMDAgEAiXu/X6R5OoPF4X40d7UERB47/kI2eOA--JPGyIl2vB7_F (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE tions/setup/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE tions/setup/js/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE s9ZXZGY/X4XoDkfiorigin (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 0/x64/lib/node_modules/npm/node_-importcfg GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 0/x64/bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path "prettier" --wriGOINSECURE go 64/bin/go -json GO111MODULE 64/bin/go sh -c "prettier" --wriGOSUMDB node 64/bin/go --check **/*.cjs 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 ../../../.pretti-atomic 64/bin/go go er -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 GOMOD GOMODCACHE go env -json GO111MODULE ules/.bin/sh GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 2358302073/.github/workflows GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env int:cjs GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go **/*.json --ignore-path ../../../.pretti"prettier" --check '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.prettierignore sh -c "prettier" --wriGOSUMDB node 64/bin/go --check **/*.cjs 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go **/*.json --ignore-path ../../../.pretti"prettier" --check '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pret- sh -c "prettier" --wriGOSUMDB node 64/bin/go --check **/*.cjs 64/bin/go go (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: `/tmp/go-build4232007526/b368/cli.test /tmp/go-build4232007526/b368/cli.test -test.testlogfile=/tmp/go-build4232007526/b368/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true **/.ts **/.json --ignore-path sh -c npx prettier --wGOSUMDB 9182562/b367/impGOWORK 64/bin/go tierignore ssages

Co-authostatus 64/bin/go go` (http block)

  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name -c=4 -nolocalimports -importcfg /tmp/go-build2726142616/b404/importcfg -pack /home/REDACTED/.cache/go-build/51/51bc32ddb7c00c72cce399ae7817f0a28beca3745467740fd9372928ad20e0dd-d sh -c "prettier" --wriGOSUMDB 9182562/b368/impGOWORK 64/bin/go che/go-build/48//bin/sh **/*.cjs 64/bin/go go (http block)
  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login d -n 10 (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login INVALID,NEW -j DROP (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login (http block)

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Move console output to log message Move skip-if-match/skip-if-no-match console output to debug logging Feb 18, 2026
Copilot AI requested a review from pelikhan February 18, 2026 23:10
@pelikhan pelikhan marked this pull request as ready for review February 18, 2026 23:15
Copilot AI review requested due to automatic review settings February 18, 2026 23:15
@pelikhan pelikhan merged commit 1308f33 into main Feb 18, 2026
2 checks passed
@pelikhan pelikhan deleted the copilot/move-console-output-to-log branch February 18, 2026 23:15
Copy link
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

This PR reduces console noise during compilation by moving skip-if-match and skip-if-no-match diagnostic messages from verbose console output to debug logging. These configuration messages are now only displayed when the DEBUG=workflow:stop_after (or DEBUG=*) environment variable is set.

Changes:

  • Removed verbose flag checks from skip-if-match/skip-if-no-match configuration logging
  • Converted console output calls to debug logger calls using the existing stopAfterLog logger
  • Applied changes symmetrically to both skip-if-match and skip-if-no-match functions

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

Comment on lines +358 to 364
if workflowData.SkipIfMatch != nil {
if workflowData.SkipIfMatch.Max == 1 {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Skip-if-match query configured: %s (max: 1 match)", workflowData.SkipIfMatch.Query)))
stopAfterLog.Printf("Skip-if-match query configured: %s (max: 1 match)", workflowData.SkipIfMatch.Query)
} else {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Skip-if-match query configured: %s (max: %d matches)", workflowData.SkipIfMatch.Query, workflowData.SkipIfMatch.Max)))
stopAfterLog.Printf("Skip-if-match query configured: %s (max: %d matches)", workflowData.SkipIfMatch.Query, workflowData.SkipIfMatch.Max)
}
}
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

While the conversion of skip-if-match console output to debug logging is good, there's an inconsistency with similar stop-after diagnostic messages in the same file (lines 81, 83, 90, 103, 105) that still use fmt.Fprintln(os.Stderr, console.FormatInfoMessage(...)) with verbose checks. For consistency and to reduce console noise uniformly, consider converting those messages to debug logging as well using stopAfterLog.Printf(). All these messages are diagnostic information in the same category (workflow:stop_after namespace), so they should follow the same pattern.

Copilot uses AI. Check for mistakes.
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.

2 participants