← Back to issue list

parts: minor refactoring in instance log capture

View original Github issue

Metadata

Project
snapcraft
Number
#3905
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged minor refactoring that captures logs in a finally block instead of calling the function twice. Approved by reviewer, passed CI, and changed one file.

Suggested action:

No scores available.

Issue body

Refactor to capture logs in finally block instead of calling the function twice. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [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/)? - [ ] Have you successfully run `make lint`? - [ ] Have you successfully run `pytest tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged minor refactoring that captures logs in a finally block instead of calling the function twice. Approved by reviewer, passed CI, and changed one file.
qwen3.6-35b-a3b-mtp-q6 Merged refactoring that captures instance logs in a finally block instead of calling the function twice. The change improves error handling reliability and was approved without review comments.
qwen3.6-35b-a3b-mtp-q6 Merged a refactoring that captures instance logs in a finally block instead of calling the function twice, reducing duplication and improving reliability.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#893 (internal) Refactor capture_logs_from_instance to use new interface (CRAFT-1306). charmcraft merged Merged refactoring of capture_logs_from_instance to use a new interface per CRAFT-1306. Approved by one reviewer with no unresolved comments. The update modifies seven files, reducing 133 lines and adding 59.
74%