feat(testing): set artifact and resource file variables
Metadata
Current evaluation
Merged PR #739 added CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> variables for artifact and resource files generated during the test lifecycle.
Resolution: closed resolved
Reason: PR #739 was approved and merged, resolving the feature in commit e86eec65. The change exposes generated artifact and resource paths for use in user test scripts.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #739 added CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> variables for artifact and resource files generated during the test lifecycle. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/craft-application#739, setting CRAFT_ARTIFACT and CRAFT_RESOURCE_<resource-name> during spread.yaml processing so test scripts can reference generated files. | |
| 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. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5438 feat(testing): add names to resource files | snapcraft | merged | Merged PR #5438 in commit 76e30fb51, adding resource-name mappings so testing-service environment variables expose generated artifact and resource filenames to test scriptlets. | |
| #1167 feat: support testing of multi-artifact projects | craft-application | merged | Merged in canonical/craft-application#1167 via commit b9159fe7, adding per-artifact CRAFT_ARTIFACT_<name> Spread variables for multi-artifact project testing. |