Repository navigation
[dead-code] chore: remove dead functions — 3 functions removed - #72463
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
✅ 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: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
There was a problem hiding this comment.
🟢 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
|
🎉 This pull request is included in a new release. Release: |
Functions Removed
runHealthGitworkQueueLogicalContractFromContentrestoreCheckpointTests Removed
None. Test-only callers were repointed to the live
runHealthGitContext,workQueueLogicalContractFromContentWithCache, andrestoreCheckpointForHostequivalents.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