Launchpad: Handle invalid credentials files better
Metadata
Current evaluation
Enhancement request (maintainer-filed, triaged) to make Launchpad.login recover from a corrupt/invalid launchpad credentials file by deleting it and re-authenticating, instead of surfacing a raw configparser.NoOptionError internal traceback. Still unaddressed in craft_application/launchpad/launchpad.py.
Suggested action: keep open
Reason: The issue is explicitly triaged (labels 'Status: Triaged', 'Type: Enhancement') and authored by maintainer lengau, with a full traceback showing 'charmcraft internal error: No option \'consumer_key\' in section: \'1\''. Inspection of the current code confirms it is unimplemented: Launchpad.login in craft_application/launchpad/launchpad.py (lines 73-98) calls launchpadlib's login_with with no try/except around it, and RemoteBuildService._get_lp_client (remotebuild.py:250-268) only emits debug messages about the credentials file existence; a repo-wide grep for 'configparser' returns no matches and git log -S shows no fix commit. The requested behaviour is concrete (delete the credentials file and log in again), so it is ready for development, though the exact desired UX (silent retry with re-auth vs. raising a CraftError telling the user to delete the file) is not spelled out.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
32
Quick Win:
17
Complexity:
35
Confidence:
88
Actionability:
82
|
keep open | Enhancement request (maintainer-filed, triaged) to make Launchpad.login recover from a corrupt/invalid launchpad credentials file by deleting it and re-authenticating, instead of surfacing a raw configparser.NoOptionError internal traceback. Still unaddressed in craft_application/launchpad/launchpad.py. | |
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
13
Complexity:
40
Confidence:
70
Actionability:
70
|
keep open | Enhancement to handle invalid Launchpad credentials files gracefully by catching configparser errors, deleting the corrupted file, and retrying login. | |
| qwen/qwen3.8-27b |
Impact:
35
Quick Win:
24
Staleness:
55
Complexity:
30
Confidence:
75
Support Request:
5
|
keep open | Enhancement to catch configparser errors from invalid Launchpad credentials files and retry login after deleting the file. Triaged by maintainer 2.5 years ago; code in launchpad.py still has no such handling. Inactive for ~7 months. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
10
|
keep open | Enhancement to improve error handling for invalid Launchpad credentials files, suggesting deletion and re-login instead of crashing with a configparser error. Currently triaged but inactive for over 6 months. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
5
|
close stale | Enhancement to improve error handling for invalid Launchpad credentials files. Triaged but inactive for over two years with no progress or recent maintainer engagement. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.