Repository navigation
[dead-code] chore: remove dead functions — 5 functions removed - #65340
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. No ADR enforcement needed: PR #65340 does not have the implementation label and has 0 new lines of code in default business logic directories, so it does not meet the design decision gate.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review. safeoutputs CLI is blocked in this environment; no GitHub write was possible from this run
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff
|
|
✅ Ponytail Reviewer completed successfully! Lean already. Ship.
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Removing the documented exported bootstrap function creates an unacknowledged breaking Go API change.
Review effort: Balanced
Findings: 1
What changed in this PR
Removes five apparently unused workflow helpers and their dedicated tests.
Changes:
- Removes obsolete Codex tool/config helpers.
- Removes an empty JavaScript bootstrap getter.
- Deletes tests tied exclusively to removed helpers.
| File | Description |
|---|---|
pkg/workflow/js.go |
Removes the log-parser bootstrap getter. |
pkg/workflow/codex_playwright_test.go |
Removes tests for deleted Codex wrappers. |
pkg/workflow/codex_mcp.go |
Removes an unused indentation helper. |
pkg/workflow/codex_engine.go |
Removes unused tool-conversion helpers. |
pkg/workflow/codex_engine_test.go |
Removes the deleted helper’s test. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Skills-Based Review 🧠
Pure dead-code removal (0 additions, 162 deletions across 5 files) — applied /codebase-design to check for dangling references and /tdd to confirm removed tests matched removed code.
📋 Verification performed
go build ./...— passes- Targeted tests (
TestCodex*,TestGetLogParser*) inpkg/workflow— all pass - Grepped the full repo for all 5 removed symbols (
expandNeutralToolsToCodexTools,applyCodexPlaywrightTool,expandNeutralToolsToCodexToolsFromMap,writeIndentedCodexConfig,GetLogParserBootstrap) — zero remaining references - Confirmed
writeIndentedCodexConfigwas TOML-indentation logic made obsolete now that Codex config is rendered as JSON viaGH_AW_CODEX_CONFIG_JSON, consistent with the rest ofcodex_mcp.go mapsimport incodex_engine.goremains used elsewhere (getGitIdentityEnvVars), so no unused-import fallout
No functional code was changed — only removal of unreachable functions and their corresponding tests. Nothing actionable to flag.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 25.2 AIC · ⌖ 14.3 AIC · ⊞ 10K
Comment /matt to run again
Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment.
|
There was a problem hiding this comment.
Request changes
This cleanup still removes an exported pkg/workflow symbol, so it is a breaking API change rather than a no-risk dead-code deletion.
Blocking theme
pkg/workflow/js.go:GetLogParserBootstrapis exported and documented in the package surface, so deleting it will break downstream builds even though internal references are gone.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 76.7 AIC · ⌖ 7.3 AIC · ⊞ 19.2K
Comment /review to run again
| func GetLogParserBootstrap() string { | ||
| return "" | ||
| } | ||
|
|
There was a problem hiding this comment.
Removing GetLogParserBootstrap is a public API break for any downstream code importing pkg/workflow, so this is not a safe "dead code" deletion.
💡 Why this blocks merge
GetLogParserBootstrap is exported, and pkg/workflow/README.md still lists it as part of the package surface. Internal callsites being gone only proves it is dead inside this repo; external consumers compiling against github.com/github/gh-aw/pkg/workflow will now fail at build time.
Please either keep a deprecated shim that preserves the symbol (it can keep returning ""), or treat this as an intentional breaking change with the corresponding release-note/API-compat path.
There was a problem hiding this comment.
Restored the original exported GetLogParserBootstrap() string getter in 8404eeb, preserving its empty-string return value. Added a regression test; the full workflow package test suite passes. This cleanup no longer removes the public symbol.
|
@copilot please take another pass on this PR. Outstanding unresolved review feedback on the current head:
No failed checks are currently reported for this head. Please address or explicitly disposition the blocking review feedback, refresh the branch if GitHub offers it, and then run the
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Addressed both blocking threads in 8404eeb by restoring the exported getter and adding a regression test. Ran pr-finisher: the branch already includes current main; build, formatting, lint, focused tests, and the full workflow package suite pass. The final progress gate reports pre-existing smoke-Codex lock-file drift, left outside this fix. Automated review was unavailable (fallback review found no issues), and CodeQL skipped its oversized database. Both review threads have replies; thread-resolution tooling is unavailable here. CI on the new head remains unverified, so this is not yet a fully merge-ready handoff. |
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |

Functions Removed
CodexEngine.expandNeutralToolsToCodexToolsapplyCodexPlaywrightToolCodexEngine.expandNeutralToolsToCodexToolsFromMapwriteIndentedCodexConfigGetLogParserBootstrapTests Removed
pkg/workflow/codex_playwright_test.go(TestCodexEnginePlaywrightUsesCLI,TestCodexEnginePlaywrightPreservesCustomMCPServer)codex_engine_test.goVerification
go build ./...go vet ./...go vet -tags=integration ./...make fmtNote:
go test ./pkg/workflowhas 2 failures (TestCloudHypervisorSetupBundleScriptExecutesAgainstFixtures,TestBuildDynamicEnclaveExpiryScriptResolvesMinOfConfiguredAndJobExpiry) that also fail without these changes.https://github.com/github/gh-aw/actions/runs/37132019179