← Back to issue list

remote build: `--recover` looking for the wrong repository

View original Github issue

Metadata

Project
craft-application
Number
#621
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

remote build --recover fails with NotFoundError because resume_builds looks up the Launchpad git repo by name/owner only, omitting the project it was created under. Triaged bug, still open, no fix in current code.

Suggested action: keep open

Reason: The bug is confirmed in current code: resume_builds() calls _get_repository() which does self.lp.get_repository(name=self._name, owner=self.lp.username), while _ensure_repository() creates the repo with project=self._lp_project, so the resume path resolves to ~owner/+git/name instead of ~owner/project/name. Issue is labelled Status: Triaged, Type: Bug, has an internal ticket (CRAFT-4030), and last activity was 215 days ago, so it should remain open.

Impact: 50 Quick Win: 35.0 Staleness: 55 Complexity: 30 Confidence: 85 Support Request: 0

Issue body

### Bug Description When recovering, we get an error like: `rockcraft internal error: NotFoundError('Could not find repository at path ~ecoldi/+git/rockcraft-buildtest-920858155e40dde975df53309a997f86')` It looks like it's because the recover option isn't taking into account the fact that the repository is inside a project ### To Reproduce `anythingcraft remote-build --recover` ### part yaml ```shell ``` ### Relevant log output ```shell n/a ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 50
Quick Win: 35.0
Staleness: 55
Complexity: 30
Confidence: 85
Support Request: 0
keep open remote build --recover fails with NotFoundError because resume_builds looks up the Launchpad git repo by name/owner only, omitting the project it was created under. Triaged bug, still open, no fix in current code.
qwen/qwen3.6-35b-a3b
Staleness: 65
Complexity: 30
Confidence: 85
Support Request: 5
keep open Remote build --recover flag fails with NotFoundError due to incorrect repository path resolution. Issue is triaged and awaiting a fix.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 30
Confidence: 85
Support Request: 5
keep open rockcraft remote-build --recover fails with NotFoundError when repository path includes a project prefix. Triaged as a bug, awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 25
Confidence: 90
Support Request: 5
keep open remote-build --recover fails with NotFoundError due to incorrect repository path resolution when nested in a project. Triaged and open, awaiting fix. Last active 139 days ago.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.