feat(remote-build): add GitRepo class
Metadata
Current evaluation
Merged PR #4368 as dc58181e8, adding a pygit2-based GitRepo wrapper for remote builds and resolving #4320 (CRAFT-1975).
Resolution: closed resolved
Reason: PR #4368 merged into main as commit dc58181e8. It added the pygit2-based GitRepo wrapper requested in #4320.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `pytest tests/unit`?
-----
Fixes #4320
(CRAFT-1975)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4368 as dc58181e8, adding a pygit2-based GitRepo wrapper for remote builds and resolving #4320 (CRAFT-1975). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4368 as dc58181e8, adding a pygit2-based GitRepo wrapper for remote builds and fixing #4320 (CRAFT-1975). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged as dc58181e8, adding a pygit2-based GitRepo class for remote builds and resolving #4320 (CRAFT-1975). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into main, introducing a GitRepo class for remote builds to resolve #4320. Approved by two reviewers with passing CI and 100% diff coverage. An unrelated spread failure was noted for later investigation. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Introduces a GitRepo class for remote builds, resolving issue #4320. Achieved 100% diff coverage with a 0.02% overall increase. An unrelated spread failure was noted for later investigation. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcore/snapcraft#4320
(confidence 100%)
PR #4368 explicitly fixes #4320 and was merged as dc58181e8.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #396 feat: add clone and remotes to GitRepo | craft-application | merged | Merged #396 in commit 90423a82, adding GitRepo cloning plus remote creation, renaming, and existence checks (CRAFT-3087). | |
| #385 Move Git abstraction outside of remotebuild | craft-application | closed | Moved GitRepo from remotebuild into craft_application.git in canonical/craft-application#388, merged as ea697712; fixes #385. | |
| #4370 feat(remote-build): check if project is in a git repository | snapcraft | merged | Merged PR #4370 added Git-repository detection for remote-build, preserving legacy behavior for non-Git projects; commit e0ef5ec27 resolves #4321. |