Skip to content

[dead-code] chore: remove dead functions — 1 function removed - #74871

Merged
pelikhan merged 1 commit into
mainfrom
chore/remove-dead-string-api-funcs-a1460352f1c73805
Nov 4, 2026
Merged

pelikhan merged 1 commit into
mainfrom
chore/remove-dead-string-api-funcs-a1460352f1c73805

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Functions Removed

Function File
buildSafeOutputItemsManifestUploadStep pkg/workflow/compiler_safe_outputs_steps.go

Its tests now call the underlying buildSafeOutputManifestUploadStep(..., true) instead, so no tests were deleted.

Tests Removed

None

Verification

  • go build ./...
  • go vet ./...
  • go vet -tags=integration ./pkg/workflow
  • make fmt

Other deadcode candidates were skipped: they are used by non-test code (the WASM ParseWorkflowString path), or they have many test-only callers that I did not delete in this batch.

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

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

  • expires on Nov 7, 2026, 6:27 AM UTC-08:00

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

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.

🟡 Changes recommended

An active documentation inconsistency remains because the ADR still describes a helper that has been removed from the repository.

1 open issue
What changed in this PR

Removes the unused buildSafeOutputItemsManifestUploadStep helper and updates tests to call buildSafeOutputManifestUploadStep with includeItems=true, preserving existing behavior and coverage.

Changes:

  • Deletes the redundant safe-output upload wrapper.
  • Updates safe-output and redaction-gating tests to use the generalized helper.
  • Review note: the ADR still references the removed helper and should be updated.
File Summary
pkg/​workflow/​redaction_upload_gating_test.go Updates redaction-gating coverage to use the generalized upload-step builder.
pkg/​workflow/​compiler_safe_outputs_steps.go Removes the dead wrapper function.
pkg/​workflow/​compiler_safe_outputs_job_test.go Migrates manifest upload tests to the generalized helper.

Review effort: Lite (auto)

return buildSafeOutputManifestUploadStep(prefix, pinAction, claimArtifacts, data, true)
}

func buildSafeOutputManifestUploadStep(prefix string, pinAction func(string) string, claimArtifacts bool, data *WorkflowData, includeItems bool) []string {
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 15:03
@pelikhan
pelikhan merged commit 12a1884 into main Nov 4, 2026
6 checks passed
@pelikhan
pelikhan deleted the chore/remove-dead-string-api-funcs-a1460352f1c73805 branch November 4, 2026 15:04
@github-actions

github-actions Bot commented Nov 4, 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 Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #74871

@github-actions

github-actions Bot commented Nov 4, 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 Nov 4, 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 🏗️ · routed: opus55 xhigh · ~12 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 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 · routed: gpt56 max · ~1 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.2.0

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