Can't run twice when ua-services specified
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Fixed. Reported that snapcraft fails on repeated runs with ua-services due to ua enable returning non-zero for already-enabled services. Resolved by updating execution logic to handle existing service states.
Suggested action: —
No scores available.
Issue body
Hi there,
I've been trying the newly introduced ua feature that allows specifying ua services (https://github.com/snapcore/snapcraft/pull/3890).
The feature itself seem to work fine - snapping goes through. However running the snapcraft command twice results in failure. The root cause seems to be that the `ua enable <service>` command returns a non-zero value if the requested service is already enabled.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Fixed. Reported that snapcraft fails on repeated runs with ua-services due to ua enable returning non-zero for already-enabled services. Resolved by updating execution logic to handle existing service states. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Subsequent snapcraft runs fail because ua enable returns a non-zero exit code when services are already active. Issue closed without resolution. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Running snapcraft twice with ua-services failed because ua enable returns a non-zero exit code for already-enabled services. Resolved by updating the execution logic to handle existing service states without failing. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The snapcraft failure on repeated runs with ua-services specified, caused by ua enable returning a non-zero exit code for already enabled services, remains unfixed. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3961 ua: do not re-enable enabled services for snapcraft_legacy | snapcraft | merged | Merged a fix for snapcraft_legacy preventing re-enablement of already-active UA services to avoid errors. Approved, retargeted to the hotfix branch, and merged after an unrelated test failure was resolved separately. |