Skip to content

[dead-code] chore: remove dead functions — 3 functions removed - #72463

Merged
pelikhan merged 1 commit into
mainfrom
chore/dead-code-removal-40520887692-dee5a4d747d95c13
Oct 27, 2026
Merged

pelikhan merged 1 commit into
mainfrom
chore/dead-code-removal-40520887692-dee5a4d747d95c13

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Functions Removed

Function File
runHealthGit pkg/cli/health_local_git.go
workQueueLogicalContractFromContent pkg/workflow/work_queue_contract.go
restoreCheckpoint pkg/workqueue/checkpoint.go

Tests Removed

None. Test-only callers were repointed to the live runHealthGitContext, workQueueLogicalContractFromContentWithCache, and restoreCheckpointForHost equivalents.

Verification

  • go build ./...
  • go vet ./... (touched packages)
  • go vet -tags=integration ./... (touched packages)
  • make fmt (gofmt clean; prettier unavailable in sandbox)

https://github.com/github/gh-aw/actions/runs/40520887692

Generated by 🧹 Dead Code Removal Agent · copilot · auto · ~65 AIC · ⌖ ~1 AIC · ⊞ 10.2K · ◷

  • expires on Oct 30, 2026, 6:43 AM UTC-08:00

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 27, 2026 14:50
Copilot AI max review requested due to automatic review settings October 27, 2026 14:50
@pelikhan
pelikhan merged commit d5a51e0 into main Oct 27, 2026
2 checks passed
@pelikhan
pelikhan deleted the chore/dead-code-removal-40520887692-dee5a4d747d95c13 branch October 27, 2026 14:50
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · ~7 AIC · ⌖ ~6 AIC · ⊞ 14.8K · ◷

Generated by Ponytail Reviewer for #72463

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus55 · ~12 AIC · ⌖ ~38 AIC · ◇ ~3 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · ~6 AIC · ⌖ ~10 AIC · ◇ ~9 AIC · ⊞ 8.9K · ◷

🧪 Test quality analysis by Test Quality Sentinel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The migrated calls preserve the removed wrappers’ behavior, and no unresolved correctness issues remain.

No open issues 🎉

What changed in this PR

Removes three wrappers used only by tests from gh-aw’s CLI health checks, workflow contracts, and work-queue checkpoints while preserving existing behavior.

Changes:

  • Delete redundant wrappers, retaining the live context-, cache-, and host-aware implementations.
  • Update test callers with equivalent arguments, preserving all tests and assertions.
File Description
pkg/​workqueue/​compaction_test.go Call the host-aware restore function with an empty host.
pkg/​workqueue/​checkpoint.go Remove the redundant checkpoint restore wrapper.
pkg/​workflow/​work_queue_contract.go Remove the redundant content-contract wrapper.
pkg/​workflow/​work_queue_contract_test.go Pass explicitly created import caches to the live implementation.
pkg/​workflow/​work_queue_contract_provenance_test.go Use the cache-aware contract function for provenance validation.
pkg/​cli/​health_local_git.go Remove the redundant Git command wrapper.
pkg/​cli/​health_file_snapshots_test.go Call the context-aware Git helper with a background context.

Review effort: Max

@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.0.1

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.

2 participants