← Back to issue list

Export variables to testing environment

View original Github issue

Metadata

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

Current evaluation

Triaged enhancement to export project and architecture variables into the testing environment so lifecycle tests can reliably locate generated snaps; no resolution evidence is present.

Suggested action: keep open

Reason: The issue is explicitly marked Status: Triaged and Type: Enhancement, and its body names concrete variables plus an artifact-identification use case. Repository evidence shows SNAPCRAFT_PROJECT_DIR is set during the build lifecycle, but no evidence indicates that these variables are exported to the testing environment or that a resolving change landed; keep the valid enhancement open.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 19 Complexity: 35 Confidence: 86 Actionability: 82

Issue body

### What needs to get done Share variables such as `SNAPCRAFT_PROJECT_DIR`, `SNAPCRAFT_PROJECT_VERSION` and `CRAFT_ARCH_BUILD_FOR` with the testing environment. ### Why it needs to get done This allows test projects to correctly identify the snap generated in this lifecycle run by referencing them as `$SNAPCRAFT_PROJECT_DIR/mysnap_$SNAPCRAFT_PROJECT_VERSION_$CRAFT_ARCH_BUILD_FOR.snap`. Other variables containing component versions can be exported later.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 35
Quick Win: 19
Complexity: 35
Confidence: 86
Actionability: 82
keep open Triaged enhancement to export project and architecture variables into the testing environment so lifecycle tests can reliably locate generated snaps; no resolution evidence is present.
qwen/qwen3.6-35b-a3b
Impact: 35
Quick Win: 18
Complexity: 30
Confidence: 75
Actionability: 75
keep open Enhancement request to export SNAPCRAFT_PROJECT_DIR, SNAPCRAFT_PROJECT_VERSION, and CRAFT_ARCH_BUILD_FOR to the snapcraft test environment. Currently triaged but unimplemented.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 28
Staleness: 70
Complexity: 30
Confidence: 55
Support Request: 0
keep open Enhancement to export SNAPCRAFT_PROJECT_DIR, SNAPCRAFT_PROJECT_VERSION, and CRAFT_ARCH_BUILD_FOR into the testing environment so test projects can reference the generated snap path. Triaged by maintainer; no implementation or PR found in repo.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 10
Confidence: 90
Support Request: 0
keep open Enhancement to export snapcraft environment variables to the testing environment. Triaged and acknowledged by a maintainer, but inactive for over a year with no implementation progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 15
Confidence: 85
Support Request: 0
close stale Enhancement to export build variables to the testing environment. Triaged but inactive for over a year with only automated Jira sync comments and no implementation progress.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.