ua: do not re-enable enabled services
Metadata
Current evaluation
Merged into hotfix/7.2.2. Prevents Ubuntu Advantage from raising errors when attempting to re-enable already enabled services. Rebased and merged alongside fixes for unrelated failing tests.
Suggested action: —
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`?
-----
If a UA service is already enabled, do not attempt to re-enable the service because UA will raise and error.
source: https://bugs.launchpad.net/bugs/1989500
(CRAFT-1450)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into hotfix/7.2.2. Prevents Ubuntu Advantage from raising errors when attempting to re-enable already enabled services. Rebased and merged alongside fixes for unrelated failing tests. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into hotfix/7.2.2. Prevents UA from attempting to re-enable already enabled services, resolving a related error. Combined with fixes for two unrelated failing tests. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into hotfix/7.2.2. Skips re-enabling already enabled Ubuntu Advantage services to prevent runtime errors. Resolves Launchpad bug #1989500 and CRAFT-1450. |
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. |