canonical / canonical/craft-application
Test must only pack if necessary
- Dominant language
- Python
- Stars
- 14
- Forks
- 29
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 12
Description
### Bug Description
Running the test command shouldn't repack the artifact unless it's necessary. Keep a packed file state and use the state service to verify if the file needs to be repacked.
### To Reproduce
Run `snapcraft test` on a project that uses craft testing and see the artifact being packed even if it's not necessary to repack.
### part yaml
```shell
N/A
```
### Relevant log output
```shell
N/A
```
Contributor guide
Research direction
Start by running `snapcraft test` on a project using craft testing and trace where the artifact is packed and where the state service is checked. Done means the test command preserves the packed-file state and repacks only when the state shows it is necessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100