← Back to issue list

Skip repacking if artifact contents are unchanged

View original Github issue

Metadata

Project
snapcraft
Number
#6325
Type
issue
State
open
Author
cmatsuoka
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

Triaged feature request to implement ST160 conditional repacking API; feature appears implemented in craft-application and snapcraft but issue remains open.

Suggested action: keep open

Reason: Issue is triaged and describes a real feature need for Test Farm operation. Evidence shows conditional repacking was implemented in craft-application (PR #1111) and snapcraft (documented in 9.1 release notes with spread tests), but it's unclear whether this specific issue was resolved or if additional work remains. Without confirmation that the issue is fully addressed, keeping it open is safer than closing.

Impact: 60 Quick Win: 33.0 Staleness: 55 Complexity: 45 Confidence: 50 Support Request: 10

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request Implement the ST160 craft-application API to avoid repacking an artifact when no changes were made. ### The problem it solves This is a requirement for Test Farm operation.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 33.0
Staleness: 55
Complexity: 45
Confidence: 50
Support Request: 10
keep open Triaged feature request to implement ST160 conditional repacking API; feature appears implemented in craft-application and snapcraft but issue remains open.
qwen/qwen3.6-35b-a3b
Staleness: 25
Complexity: 45
Confidence: 85
Support Request: 5
keep open Feature request to implement ST160 craft-application API to skip repacking unchanged artifacts, required for Test Farm operation. Currently triaged and awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 40
Confidence: 90
Support Request: 10
keep open Feature request to skip artifact repacking when contents are unchanged, required for Test Farm operations. Recently triaged by a maintainer and awaiting implementation.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-application#1111 (confidence 60%)

    craft-application PR #1111 added conditional repacking support with metadata mediation API, which appears to implement the ST160 repack-skipping behavior described in this issue.

Related issues

Issue Project State Summary Similarity
#800 Test must only pack if necessary craft-application open Enhancement: make `snapcraft test` skip repacking the artifact when unnecessary, using packed-file state. Triaged; PR #1111 added conditional repacking (ST160 metadata mediator) and a maintainer is still discussing scope (e.g. a `--use-artifact` option) in recent comments.
75%
#1357 feat: skip repacking if project is unchanged rockcraft closed Merged. Skips repacking output artifacts when the project is unchanged by leveraging the craft-application mediation API. Approved by two reviewers with all CI checks passing.
73%