Skip to content

[Crane: crane-migration-python-to-go-full-apm-cli-rewrite]#86

Merged
mrjf merged 10 commits into
mainfrom
crane/crane-migration-python-to-go-full-apm-cli-rewrite
May 27, 2026
Merged

[Crane: crane-migration-python-to-go-full-apm-cli-rewrite]#86
mrjf merged 10 commits into
mainfrom
crane/crane-migration-python-to-go-full-apm-cli-rewrite

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

APM CLI: Python -> Go Full Rewrite

[bot] This PR is maintained by Crane. Each accepted iteration adds a commit to this branch.

Migration: Python 3.10+ (CPython/Click/Rich) -> Go (native binary)
Strategy: greenfield
Migration Issue: #78
State File: crane-migration-python-to-go-full-apm-cli-rewrite.md


Current Status

Best Score 0.6589 (199/302 parity tests passing)
Progress 199/302 (65.9%)
Milestone 8 -- install/ (partial: errors + plan)
Next Milestone 8 continued -- install context, request, sources

Iteration 11 Summary

Ported foundational install pipeline types:

  • internal/install/errors.go: DirectDependencyError, AuthenticationError, FrozenInstallError, PolicyViolationError
  • internal/install/plan.go: PlanEntry, UpdatePlan, BuildUpdatePlan, LockfileSatisfiesManifest, RenderPlanText
  • internal/install/install_test.go: 36 TestParity* tests

Score improved from 0.5397 to 0.6589 (+0.1192).

[bot] Generated by Crane

Generated by Crane · ● 28.5M ·

…11: Milestone 8 (install/) -- errors, plan, parity tests

- internal/install/errors.go: DirectDependencyError, AuthenticationError,
  FrozenInstallError, PolicyViolationError -- mirrors install/errors.py
- internal/install/plan.go: PlanEntry, UpdatePlan, BuildUpdatePlan,
  LockfileSatisfiesManifest, RenderPlanText -- mirrors install/plan.py
- internal/install/install_test.go: 36 TestParity* test functions

Score: 0.6589 (was 0.5397, +0.1192, 199/302 parity passing)

Run: https://github.com/githubnext/apm/actions/runs/26479056327

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions Bot and others added 2 commits May 26, 2026 22:43
…12: Port install/context.go and install/request.go

Run: https://github.com/githubnext/apm/actions/runs/26479708206

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 10dd58f

Generated by Crane · ● 31.4M

…13: Port install/cache_pin.go + sources.go types

Run: https://github.com/githubnext/apm/actions/runs/26481040888

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 5b4817b

Generated by Crane · ● 40.8M

…17: Port runtime/ + adapters/ + commands/ + integration/ + compilation/

Port 5 modules with 51 new TestParity* tests:
- internal/runtime: RuntimeAdapter interface, factory, manager, utils (find_runtime_binary security guard), 11 parity tests
- internal/adapters/client: MCPClientAdapter interface + MCPServerEntry types, 5 parity tests
- internal/adapters/pm: MCPPackageManagerAdapter interface, 3 parity tests
- internal/commands: CommandContext + CommandResult types, 11 parity tests
- internal/integration: Integrator interface + IntegrationResult types, 9 parity tests
- internal/compilation: StabilizeBuildID + constants, 11 parity tests

Score: 0.7483 -> 0.9172 (+0.1689), 277/302 parity points

Run: https://github.com/githubnext/apm/actions/runs/26489964081

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 40558e2

Generated by Crane · ● 41.5M

github-actions Bot and others added 2 commits May 27, 2026 04:11
…18: Port policy/ + security/ -- 304 parity tests, score 1.0

Run: https://github.com/githubnext/apm/actions/runs/26493354341

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 7dbed8b

Generated by Crane · ● 30.8M

@mrjf mrjf marked this pull request as ready for review May 27, 2026 16:30
@mrjf mrjf merged commit f77d95e into main May 27, 2026
@mrjf mrjf deleted the crane/crane-migration-python-to-go-full-apm-cli-rewrite branch May 27, 2026 16:30
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.

1 participant