Skip to content

[dead-code] chore: remove dead functions — 10 functions removed#20712

Merged
pelikhan merged 1 commit intomainfrom
dead-code/remove-batch-2026-03-12-9bcc86b09985d9a8
Mar 12, 2026
Merged

[dead-code] chore: remove dead functions — 10 functions removed#20712
pelikhan merged 1 commit intomainfrom
dead-code/remove-batch-2026-03-12-9bcc86b09985d9a8

Conversation

@github-actions
Copy link
Contributor

Dead Code Removal

This PR removes unreachable Go functions identified by the deadcode static analyzer.

Functions Removed

Function File
Compiler.GetArtifactManager pkg/workflow/compiler_types.go
EngineCatalog.DisplayNames pkg/workflow/engine_definition.go
Compiler.validateEngine pkg/workflow/engine_validation.go
getPlaywrightDockerImageVersion pkg/workflow/mcp_playwright_config.go
GetValidationConfigForType pkg/workflow/safe_output_validation_config.go
GetDefaultMaxForType pkg/workflow/safe_output_validation_config.go
buildTitlePrefixEnvVar pkg/workflow/safe_outputs_jobs.go
buildLabelsEnvVar pkg/workflow/safe_outputs_jobs.go
buildCategoryEnvVar pkg/workflow/safe_outputs_jobs.go
validateSecretReferences pkg/workflow/secrets_validation.go

Tests Removed

Exclusive test functions that only tested deleted functions were also removed:

  • TestEngineCatalog_DisplayNames (engine_catalog_test.go)
  • TestValidateEngine, TestValidateEngineErrorMessageQuality, TestValidateEngineDidYouMean (engine_validation_test.go)
  • TestMultipleEngineErrorMessage and 2 table entries (error_message_quality_test.go)
  • TestValidateSecretReferences (redact_secrets_test.go)
  • Playwright version subtest (version_field_test.go)
  • TestGetValidationConfigForType, TestGetDefaultMaxForType, TestMissingToolFieldOptional (safe_output_validation_config_test.go)
  • TestBuildTitlePrefixEnvVar, TestBuildLabelsEnvVar, TestBuildCategoryEnvVar (safe_output_helpers_test.go)

Verification

  • go build ./... — passes
  • go vet ./... — passes
  • go vet -tags=integration ./... — passes
  • make fmt — no changes needed
  • go test ./pkg/workflow/... — passes

Dead Function Count

  • Before this batch: ~32 functions (excluding protected infra + WASM functions)
  • Removed in this PR: 10 functions
  • Remaining: ~22 functions

Automated by Dead Code Removal workflow — https://github.com/github/gh-aw/actions/runs/23016756548

Generated by Dead Code Removal Agent ·

  • expires on Mar 15, 2026, 6:27 PM UTC

Remove unreachable functions identified by the deadcode static analyzer.

Functions removed:
- Compiler.GetArtifactManager (compiler_types.go)
- EngineCatalog.DisplayNames (engine_definition.go)
- Compiler.validateEngine (engine_validation.go)
- getPlaywrightDockerImageVersion (mcp_playwright_config.go)
- GetValidationConfigForType (safe_output_validation_config.go)
- GetDefaultMaxForType (safe_output_validation_config.go)
- buildTitlePrefixEnvVar (safe_outputs_jobs.go)
- buildLabelsEnvVar (safe_outputs_jobs.go)
- buildCategoryEnvVar (safe_outputs_jobs.go)
- validateSecretReferences (secrets_validation.go)

Also removed exclusive test functions that only tested the deleted functions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
Copy link
Contributor

@copilot compile and run tests

@pelikhan
Copy link
Contributor

@copilot merge main and recompile

Copy link
Contributor

Copilot AI commented Mar 12, 2026

@copilot compile and run tests

Results from commit 4b7644d:

  • make build — passes
  • go vet ./... — passes
  • go test ./pkg/workflow/... — passes (all tests pass)

The pkg/cli tests require GitHub credentials which aren't available in this environment, but those are unrelated to the dead-code changes in this PR.

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 -ifaceassert -nilfunc git rev-�� --show-toplevel -tests /usr/bin/git (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 ache/go/1.25.0/xrev-parse x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git --show-toplevel /usr/sbin/phpquerev-parse 0/x64/bin/node git (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 git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git /usr/bin/git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha se 0162668/b204/vet.cfg ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --get remote.origin.url e/git-remote-https --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git e/git-remote-https om/o�� om/owner/repo.git config /usr/bin/git remote.origin.urgit ache/go/1.25.0/xrev-parse /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha 0/x64/bin/node git /usr/bin/git --show-toplevel ache/go/1.25.0/xrev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel node /usr/bin/git git (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha ry=1 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git t-39�� k/gh-aw/gh-aw/.github/workflows/agent-performance-analyzer.md git /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/link --show-toplevel x_amd64/compile /usr/bin/git /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/link (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -unreachable=false /tmp/go-build4150162668/b136/vet.cfg 0162668/b328/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha se 0162668/b048/vet.cfg .cfg user.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha se 0162668/b104/vet.cfg .cfg pull.rebase (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel (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 se 0162668/b042/vet.cfg .cfg user.name (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha se 0162668/b035/vet.cfg .cfg user.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha se 0162668/b034/vet.cfg .cfg pull.rebase (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 se 0162668/b141/vet.cfg ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet user.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --show-toplevel (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha user.name Test User /usr/bin/infocmp --show-toplevel ciyOeui8iZdBzFVrrev-parse /usr/bin/git infocmp -1 xterm-color git /usr/bin/git --show-toplevel ache/go/1.25.0/xrev-parse /usr/bin/git git (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 se 0162668/b055/vet.cfg .cfg user.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha /repos/actions/github-script/git/ref/tags/v8 --jq /usr/bin/git -c=4 -nolocalimports -importcfg git conf�� user.name Test User (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha ache/node/24.14.--show-toplevel git /usr/bin/git --show-toplevel ortcfg /usr/bin/git git rev-�� --show-toplevel git 0/x64/bin/node --show-toplevel ache/go/1.25.0/xrev-parse /usr/bin/git 0/x64/bin/node (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --show-toplevel git 6937271/b405/repoutil.test --show-toplevel infocmp /usr/bin/git 6937271/b405/repoutil.test e=/t�� t0 git (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 ache/go/1.25.0/x-ifaceassert 0/x64/bin/node --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git /usr/bin/cut /home/REDACTED/worgit /home/REDACTED/worrev-parse /usr/bin/git cut -f1 /usr/bin/git git /usr/bin/git user.name Test User /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 rop.prop.prop.prop.prop.prop.prop.prop.prop.pro /usr/bin/git /tmp/TestHashCongit git ache/node/24.14.--show-toplevel git rev-�� --show-toplevel ache/node/24.14.0/x64/bin/node /usr/bin/git ub.actor }} git /usr/bin/git git (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 ache/go/1.25.0/x64/pkg/tool/linu-w x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git /usr/lib/git-core/git --get remote.origin.urrev-parse /usr/bin/git /usr/lib/git-core/git main�� run --auto 64/pkg/tool/linux_amd64/link --detach git /usr/bin/git 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git /usr/bin/git --show-toplevel (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 ache/go/1.25.0/x64/pkg/tool/linumain 0/x64/bin/node se 0162668/b061/vetrev-parse /opt/hostedtoolc--show-toplevel git ance�� hub/workflows /opt/hostedtoolcache/go/1.25.0/x-c=4 0/x64/bin/node -unreachable=falgit /tmp/go-build415rev-parse /opt/hostedtoolc--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 git 06f8628edf5c97f9255b4358a225f8cd7dd4b60b9fc39f26-d 64/pkg/tool/linugit git ache/go/1.25.0/x--get bash /tmp�� agent-performance-analyzer.md ache/go/1.25.0/x64/pkg/tool/linux_amd64/link 64/pkg/tool/linux_amd64/link 9643891/b433/worgit git 9643891/b433/imp--show-toplevel 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 --package-lock-only 16bb2f4d16053d156d7b5db176e39f6c-d --get remote.origin.urrev-parse /usr/bin/docker git rev-�� --show-toplevel docker /usr/bin/sed test/race-image:git git /opt/hostedtoolc--show-toplevel sed (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 ache/go/1.25.0/x64/pkg/tool/linu-test.run=^Test 0/x64/bin/node --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/sed k/gh-aw/gh-aw/.ggit -buildtags /usr/bin/git sed s/-$�� -nilfunc git /usr/bin/git -b feature-branch /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git /usr/bin/git --show-toplevel -tests 0/x64/bin/node git rev-�� --show-toplevel 0/x64/bin/node /usr/bin/git /home/REDACTED/worgit (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 ache/go/1.25.0/x64/pkg/tool/linu-test.run=^Test 0/x64/bin/node --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 git /usr/bin/git /tmp/TestCompilegit rev-parse /usr/bin/git git form�� 8253422dd6cc2b1ea63ac10477296122a273b746..HEAD --stdout /usr/bin/git master e/git /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 git /usr/bin/git /home/REDACTED/worgit rev-parse 0/x64/bin/node git rev-�� --show-toplevel 0/x64/bin/node /usr/bin/ls epo.git git /usr/bin/git ls (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 ache/go/1.25.0/x64/pkg/tool/linu-test.run=^Test 0/x64/bin/node --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 node /usr/bin/du /tmp/TestHashCongit git /usr/bin/git du -k agent-persona-explorer.md git /usr/bin/git ache/go/1.25.0/xgit git /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 0/x64/bin/node /usr/bin/git /tmp/TestHashCongit git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (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 ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet 0/x64/bin/node --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 git /usr/bin/ls /tmp/TestCompilegit config /usr/bin/git ls -lh /tmp/gh-aw/aw-master.patch git /usr/bin/git --show-current git /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/file-trackegit /tmp/file-trackerev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --show-toplevel 64/pkg/tool/linux_amd64/vet ache/node/24.14.0/x64/bin/node (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 .cfg 64/pkg/tool/linu-bool git rev-�� --show-toplevel 64/pkg/tool/linu-ifaceassert /usr/bin/git (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 0162668/b306/vet-C /opt/hostedtoolc/tmp/gh-aw-test-runs/20260312-183958-16882/test-2152755530 git comm�� -m Initial 0/x64/bin/node -unreachable=falgit /tmp/go-build415rev-parse /opt/hostedtoolc--show-toplevel git (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha y-test.md /opt/hostedtoolcache/go/1.25.0/x-ifaceassert 0/x64/bin/node -unreachable=falgit /tmp/go-build415rev-parse 0162668/b147/vet--git-dir git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/xnonexistent-workflow-12345 0/x64/bin/node -unreachable=falgit /tmp/go-build415init /opt/hostedtoolcache/go/1.25.0/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel node ache/go/1.25.0/x64/bin/node 3958-16882/test-node git 0/x64/bin/node git ache�� --show-toplevel nly /usr/bin/git ithub/workflows/gh git /opt/hostedtoolc/repos/github/gh-aw/git/ref/tags/v3.0.0 git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linu12345 /usr/bin/git --show-toplevel git ache/go/1.25.0/x64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/link ache/node/24.14.0/x64/bin/node 9643891/b416/sligit git 9643891/b416/impuser.name git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel l /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linuv1.0.0 /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a git /opt/hostedtoolc-bool git 4014�� --show-toplevel node bin/node FwWM8pAbU git 9643891/b359/vet-test.paniconexit0 git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git /ref/tags/v8 git /opt/hostedtoolc-x git rev-�� --show-toplevel node k/_temp/uv-python-dir/node x_amd64/vet git 9643891/b358/vet/tmp/compile-instructions-test-3782831657/.github/workflows git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git rop.prop.prop.prgit git /usr/bin/git git (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha --show-toplevel node /usr/bin/git runs/20260312-18git git /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel node /usr/bin/git x_amd64/vet 9643891/b001/_terev-parse 0/x64/bin/node git (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 -unreachable=falgit /tmp/go-build415rev-parse (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion -c git /usr/bin/git git add . git outil.test ache/go/1.25.0/xgit gh /usr/bin/git outil.test (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git 0/x64/bin/node --show-toplevel git /usr/bin/git infocmp (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 /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo ache/go/1.25.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo /usr/bin/git --show-toplevel git ache/node/24.14.--show-toplevel git rev-�� --show-toplevel git /usr/bin/git audit-workflows.git git 0/x64/bin/node git (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build2589643891/b383/cli.test /tmp/go-build2589643891/b383/cli.test -test.testlogfile=/tmp/go-build2589643891/b383/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
    • Triggering command: /tmp/go-build1336937271/b001/cli.test /tmp/go-build1336937271/b001/cli.test -test.testlogfile=/tmp/go-build1336937271/b001/testlog.txt -test.paniconexit0 -test.v=true -test.short=true -test.timeout=5m0s git /usr/bin/git 2152755530 git .cfg git 0/x6�� --show-toplevel git /usr/bin/git --show-toplevel git ache/go/1.25.0/x--show-toplevel git (http block)
    • Triggering command: /tmp/go-build4037657664/b001/cli.test /tmp/go-build4037657664/b001/cli.test -test.testlogfile=/tmp/go-build4037657664/b001/testlog.txt -test.paniconexit0 -test.short=true -test.timeout=5m0s --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� etup-node/git/ref/tags/v4 git /usr/bin/git --show-toplevel git /usr/bin/git git (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 --show-toplevel 64/pkg/tool/linux_amd64/vet ache/go/1.25.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel git /usr/bin/git 706303803/.githugit git ache/node/24.14.--show-toplevel git rev-�� --show-toplevel git /usr/bin/git --show-toplevel stmain.go ache/go/1.25.0/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel 6937271/b001/cli.test /usr/bin/git ithub/workflows/node gh (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 March 12, 2026 18:49
@pelikhan
Copy link
Contributor

@copilot merge main and recompile

Copy link
Contributor

Copilot AI commented Mar 12, 2026

@copilot merge main and recompile

Merged origin/main (25 files changed, 1788 insertions) and recompiled all 167 workflows — build and pkg/workflow tests pass. However, the push was rejected due to a branch protection rule on this automated branch. The merge commit c567fef5c is ready locally but cannot be pushed due to repository rules blocking direct pushes to dead-code/* branches.

@copilot merge main and recompile

Same result as above — the merge and recompile completed successfully locally (25 files changed from main, all 167 workflows recompiled, tests pass), but the branch protection rules are preventing the push to dead-code/* branches.

@pelikhan pelikhan marked this pull request as ready for review March 12, 2026 22:06
Copilot AI review requested due to automatic review settings March 12, 2026 22:06
@pelikhan pelikhan merged commit 626940e into main Mar 12, 2026
3 of 4 checks passed
@pelikhan pelikhan deleted the dead-code/remove-batch-2026-03-12-9bcc86b09985d9a8 branch March 12, 2026 22:06
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

Removes unreachable Go functions (and their exclusive tests) as identified by the deadcode analyzer to reduce maintenance surface area.

Changes:

  • Deleted 10 dead functions across pkg/workflow/*.
  • Removed test cases that only exercised the deleted functions.
  • Cleaned up related code (e.g., removed now-unused imports and helper functions).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/workflow/compiler_types.go Removes dead Compiler.GetArtifactManager accessor.
pkg/workflow/engine_definition.go Removes dead EngineCatalog.DisplayNames helper.
pkg/workflow/engine_catalog_test.go Removes tests that only covered the deleted DisplayNames method.
pkg/workflow/engine_validation.go Removes dead Compiler.validateEngine method.
pkg/workflow/engine_validation_test.go Removes tests that only covered the deleted validateEngine method.
pkg/workflow/error_message_quality_test.go Removes test cases tied to deleted validation helpers.
pkg/workflow/mcp_playwright_config.go Removes dead Playwright version helper and its import dependency.
pkg/workflow/version_field_test.go Removes subtest that only covered the deleted Playwright version helper.
pkg/workflow/safe_output_validation_config.go Removes dead exported helpers for per-type config lookup.
pkg/workflow/safe_output_validation_config_test.go Removes tests that only covered the deleted exported helpers.
pkg/workflow/safe_outputs_jobs.go Removes dead env-var builder helpers for safe-output jobs.
pkg/workflow/safe_output_helpers_test.go Removes tests that only covered deleted safe-output env-var helpers.
pkg/workflow/secrets_validation.go Removes dead validateSecretReferences function.
pkg/workflow/redact_secrets_test.go Removes tests that only covered the deleted secret reference validator.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 194 to 196
// validateSingleEngineSpecification validates that only one engine field exists across all files
func (c *Compiler) validateSingleEngineSpecification(mainEngineSetting string, includedEnginesJSON []string) (string, error) {
var allEngines []string
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

The file-level documentation still lists validateEngine() as a validation function, but that method was removed in this change. Please update the header comment to reflect the current entry points (e.g., validateEngineInlineDefinition, EngineCatalog.Resolve, and validateSingleEngineSpecification) so the docs don’t reference a non-existent function.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants