← Back to issue list

Refactor and integrate organize from build

View original Github issue

Metadata

Project
craft-parts
Number
#1592
Type
issue
State
closed
Author
cmatsuoka
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

Reintroduced organize-from-build in merged PR #1598 (commit cc02958b), with (build) as a source partition whose files are copied rather than moved.

Resolution: closed resolved

Reason: PR #1598 was merged as commit cc02958b. It adds (build) as an organize source and preserves source files by copying them, addressing the regression that led to #1548.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done The organize from build feature is used by Debcraft and was first introduced in #1535 and reverted in #1548 due to a regression in organize behavior. This feature must be fixed and reintegrated without introducing any regressions. ### Why it needs to get done To avoid maintaining a separate Craft Parts branch for Debcraft.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Reintroduced organize-from-build in merged PR #1598 (commit cc02958b), with (build) as a source partition whose files are copied rather than moved.
stealth/space-bunny-alpha — closed resolved Reintegrated organize-from-build in merged PR #1598 (cc02958b), adding (build) as a source partition and copying rather than moving its files.
qwen/qwen3.6-35b-a3b — — Implemented in PR #1598 (commit cc02958b). The organize_files function now accepts build as a source partition, copying files to destinations instead of moving them. This resolves the regression and removes the need for a separate Craft Parts branch.
qwen/qwen3.6-35b-a3b
Staleness: 50
Complexity: 60
Confidence: 85
Support Request: 5
keep open Refactor and reintegrate the reverted organize from build feature to eliminate a separate Craft Parts branch for Debcraft. Currently triaged but inactive for 60 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 60
Confidence: 90
Support Request: 5
keep open Tracks fixing and reintegrating the organize from build feature after a regression caused its revert. Currently triaged and linked to an internal ticket, awaiting implementation.

Update history

Date Change
closed

Related work

Related issues

Issue Project State Summary Similarity
#1598 feat(organize): support build pseudo-partition source craft-parts merged Merged #1598 via commit cc02958b, adding source-only (build) organize support so build artifacts can be copied into install partitions without being removed.
73%
#1544 fix: prevent organizing a directory into itself craft-parts closed PR #1544 was closed unmerged as incomplete; the solution was replaced by the organize-from-build rework in #1598 (commit cc02958b).
72%
#1535 feat: organize files from build craft-parts merged Merged as 8e4daf5 adding (build)-partition organize support and trailing-slash destination handling for #1521; reverted by #1548 (56282732) after a Snapcraft regression, then re-landed as #1598.
71%
#2047 pluginhandler: organize in build instead of stage snapcraft merged Merged PR #2047 moved organize handling from stage to build, fixing repeat staging and ensuring collision detection sees organized files.
70%
#1521 Organize files from build craft-parts closed Support for copying build-directory files into install partitions landed in #1598 (cc02958b), after #1535 was reverted by #1548 and the feature was re-landed.
70%