← 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 recovery looks for a personal Launchpad repository instead of a project-scoped repository, breaking --recover for builds inside a Launchpad project. The bug is triaged and remains open.

Suggested action: keep open

Reason: The issue is labeled Status: Triaged and Type: Bug, and `anythingcraft remote-build --recover` reproduces a lookup at `~ecoldi/+git/...`. Repository creation supports project-scoped paths such as `~{owner}/{project}/+git/{name}`, so recovery must preserve that project context; no resolving commit was found.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 25 Complexity: 28 Confidence: 92 Actionability: 88

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
stealth/space-bunny-alpha
Impact: 40
Quick Win: 25
Complexity: 28
Confidence: 92
Actionability: 88
keep open Remote-build recovery looks for a personal Launchpad repository instead of a project-scoped repository, breaking --recover for builds inside a Launchpad project. The bug is triaged and remains open.
qwen/qwen3.6-35b-a3b
Impact: 60
Quick Win: 22
Complexity: 50
Confidence: 75
Actionability: 75
keep open remote-build --recover fails with NotFoundError because it uses the build_id as the repository name instead of the actual repository name when resuming builds
qwen/qwen3.8-27b
Impact: 50
Quick Win: 35
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.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#248 remote build: If a build with the given name already exists, ask the user whether to recover it or cancel it. craft-application open Triaged enhancement remains open: remote-build has explicit --recover but no same-name choice to recover an existing Launchpad build or cancel and replace it; the service currently deletes/recreates a found recipe.
70%