Skip to content

chore: remove dead code and fix deadcode harness tag#87

Merged
fullstackjam merged 2 commits into
mainfrom
chore/clean-deadcode
May 19, 2026
Merged

chore: remove dead code and fix deadcode harness tag#87
fullstackjam merged 2 commits into
mainfrom
chore/clean-deadcode

Conversation

@fullstackjam
Copy link
Copy Markdown
Collaborator

Summary

  • Delete IsPackageInstalled, UninstallPackage, EnsurePackageNotInstalled from testutil/helpers.go — callers were in real_install_test.go which was removed in ci: move L4 vm-e2e from tart to github actions macos-14 #86
  • Delete MacHost.Destroy — no-op method, never called
  • Delete vmInstallViaBrewTap, vmRunOpenbootWithGit, vmWriteTestSnapshot from test/e2e/vm_helpers_test.go — became dead after ci: move L4 vm-e2e from tart to github actions macos-14 #86 switched to dev binary and removed snapshot tests
  • Fix harness.yml: run deadcode with -tags="e2e,vm" so helpers only called from e2e-tagged files (e.g. BuildTestBinary) are not falsely flagged as dead

Test plan

  • deadcode -test -tags="e2e,vm" ./... returns clean locally
  • go vet ./... clean
  • go build ./... clean

- testutil: delete IsPackageInstalled, UninstallPackage, EnsurePackageNotInstalled
  (callers were in real_install_test.go which was removed earlier)
- testutil: delete MacHost.Destroy (no-op, never called)
- test/e2e: delete vmInstallViaBrewTap, vmRunOpenbootWithGit, vmWriteTestSnapshot
  (became dead after FirstTimeUser switched to dev binary + snapshot tests removed)
- harness.yml: run deadcode with -tags="e2e,vm" so test helpers with
  e2e-only callers (BuildTestBinary etc.) are not falsely flagged
@github-actions github-actions Bot added tests Tests only ci CI/CD changes labels May 19, 2026
@github-actions github-actions Bot added the docs label May 19, 2026
@fullstackjam fullstackjam merged commit d0d682c into main May 19, 2026
12 checks passed
@fullstackjam fullstackjam deleted the chore/clean-deadcode branch May 19, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD changes docs tests Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant