← Back to issue list

multipass(MultipassInstance): refactor push_file_io

View original Github issue

Metadata

Project
craft-providers
Number
#268
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #268 as commit 9c18861, extracting _create_temp_file() from push_file_io(); no functional changes. The refactor prepared PR #269 to reuse the helper.

Resolution: closed resolved

Reason: PR #268 was approved and merged as commit 9c18861. It extracted temporary-file creation into _create_temp_file() without changing behavior, and PR #269 subsequently reused it.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? ----- ## Overview Refactor `push_file_io()`. No functional changes. ## Details I moved a block of code out of `push_file_io()` to `_create_temp_file()`, so I can reuse it in `push_file()` in a subsequent PR. (CRAFT-1719)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #268 as commit 9c18861, extracting _create_temp_file() from push_file_io(); no functional changes. The refactor prepared PR #269 to reuse the helper.
qwen/qwen3.6-35b-a3b — closed resolved Refactored push_file_io by extracting code to _create_temp_file for reuse in push_file. No functional changes. Merged.

Update history

Date Change
created

Related work

  • Related To: canonical/craft-providers#269 (confidence 99%)

    The follow-up PR reused _create_temp_file() to support pushing files to any location and merged as commit 49c1a63.

Related issues

Issue Project State Summary Similarity
#269 multipass(MultipassInstance): push files to any location craft-providers merged Merged PR #269 (commit 49c1a63) made MultipassInstance.push_file() transfer through a temporary file before moving it to any destination, resolving #169.
77%
#193 MultipassInstance: `push_file_io()` method works regardless of working dir craft-providers merged Merged PR #193 in commit a41d0b4, fixing MultipassInstance.push_file_io() to work regardless of host working-directory permissions; released in craft-providers 1.7.0.
76%
#11 multipass: introduce MultipassInstance craft-providers merged Merged PR #11 introduced MultipassInstance via commit 615064d (merge ba6cd15); Windows support remained a noted follow-up.
71%