feat(testing): set artifact and resource file variables
Metadata
Current evaluation
Merged after approval and rebasing. Sets CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> variables during spread.yaml processing, enabling user scripts to reference generated test artifacts and resources. CI checks passed.
Suggested action: —
No scores available.
Issue body
When processing the spread.yaml file, set variables `CRAFT_ARTIFACT`
and `CRAFT_RESOURCE_<resource-name>` to the name of the corresponding
files generated in this lifecycle run. These can be used in user
scripts to install the artifacts to test.
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and rebasing. Sets CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> variables during spread.yaml processing, enabling user scripts to reference generated test artifacts and resources. CI checks passed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Sets CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> variables during spread.yaml processing to expose generated file paths for user test scripts. Branch rebased on main prior to merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1167 feat: support testing of multi-artifact projects | craft-application | merged | Adds CRAFT_ARTIFACT_<name> variables to the spread test environment for each generated artifact, enabling testing of multi-artifact projects like Debcraft. Approved by 2 reviewers; most CI checks still pending, none failing. | |
| #5438 feat(testing): add names to resource files | snapcraft | merged | Merged a feature mapping resource names to filenames for testing env vars. Approved by two reviewers, passed all CI checks, and fixed commit messages. Enables test scriptlets to directly reference newly created artifact files. |