← Back to issue list

providers: handle unexpected case where instance never logs (CRAFT-345)

View original Github issue

Metadata

Project
charmcraft
Number
#425
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged to handle cases where managed instances fail to create logs by catching and logging FileNotFoundError. Resolves CRAFT-345. Approved by two reviewers, modified two files.

Suggested action:

No scores available.

Issue body

If the managed instance never gets to creating the log, for whatever reason, catch the FileNotFoundError and log it. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to handle cases where managed instances fail to create logs by catching and logging FileNotFoundError. Resolves CRAFT-345. Approved by two reviewers, modified two files.
qwen3.6-35b-a3b-mtp-q6 Merged a fix for the providers module that catches FileNotFoundError when a managed instance fails to create a log file, logging the error gracefully instead of crashing. Resolves CRAFT-345.
qwen3.6-35b-a3b-mtp-q6 Merged. Resolves an edge case where a managed instance fails to create a log file by catching and logging the FileNotFoundError instead of crashing.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#12 providers: retrieve data from instance log file (CRAFT-589) rockcraft merged Merged implementation to retrieve instance log data upon provider execution completion and append it to external logs. Uses craft-cli predictable naming and sets library logs to debug level. Approved, rebased on main, and merged.
70%