← Back to issue list

"snapcraft/test" action

View original Github issue

Metadata

Project
craft-actions
Number
#54
Type
issue
State
open
Author
lengau
Labels
Type: Enhancement Status: Triaged
Created
Updated
Closed
—

Current evaluation

Maintainer-filed, triaged enhancement: add a snapcraft/test action mirroring snapcraft/pack's inputs/outputs, plus an extra-params input and residual-artifact outputs. Not implemented (no snapcraft/test dir); pack only has a boolean 'test' input.

Suggested action: keep open

Reason: The issue is explicitly labeled 'Type: Enhancement, Status: Triaged' and was filed by maintainer lengau, with a Jira ticket created (CRAFT-5032) — it has been assessed and is a valid, still-unimplemented feature. Repo inspection confirms no snapcraft/test action exists (layout shows only snapcraft/pack and snapcraft/setup); the closest existing capability is the boolean `test` input documented in snapcraft/pack/README.md ('Run `snapcraft test` to execute tests after packing'), which SnapcraftBuilder implements via buildCommand() returning ['snapcraft','test'] — that covers neither the standalone action, the extra-parameters input, nor residual-artifact outputs (no 'residual' references anywhere in common/src or commits). Complexity is moderate rather than low: the shared CraftBuilder already supports runTests, but 'extra parameters' plumbing and residual-artifact discovery/output are new common-code work; actionability is slightly reduced because the exact input/output naming for extra params and residual artifacts is unspecified.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 20 Complexity: 45 Confidence: 82 Actionability: 75

Issue body

Create an action that runs `snapcraft test` on the runner. It should have the same inputs and outputs as the [pack action](https://github.com/canonical/craft-actions/tree/main/snapcraft/pack), plus: - A way to provide extra parameters to `snapcraft test` - Outputs should include [residual artifacts](https://github.com/canonical/spread#fetching-residual-artifacts).

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 20
Complexity: 45
Confidence: 82
Actionability: 75
keep open Maintainer-filed, triaged enhancement: add a snapcraft/test action mirroring snapcraft/pack's inputs/outputs, plus an extra-params input and residual-artifact outputs. Not implemented (no snapcraft/test dir); pack only has a boolean 'test' input.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 14
Complexity: 50
Confidence: 85
Actionability: 70
keep open Enhancement request to create a standalone 'snapcraft test' GitHub Action with extra parameters and residual artifact outputs.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 22
Staleness: 55
Complexity: 50
Confidence: 80
Support Request: 5
keep open Feature request for a dedicated snapcraft/test GitHub Action with extra parameters and residual artifact outputs. Triaged by maintainer, tracked as CRAFT-5032, no implementation started. Pack action has a basic test flag but no dedicated test action exists.
qwen/qwen3.6-35b-a3b
Staleness: 70
Complexity: 60
Confidence: 85
Support Request: 0
keep open Enhancement to add a GitHub Action for running snapcraft test, mirroring the pack action with extra parameters and artifact outputs. Currently triaged but inactive for 145 days with only a Jira sync comment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 45
Confidence: 85
Support Request: 5
keep open Request to create a GitHub Action for running snapcraft test, mirroring the pack action interface with extra parameters and residual artifact outputs. Currently triaged but inactive for ~4 months.

Update history

No update history recorded yet.

Related work

  • Related To: craft-actions#50 (confidence 60%)

    Merged PR adding tests for the Snapcraft actions (snapcraft/pack, snapcraft/setup); a new snapcraft/test action would need equivalent coverage.

Related issues

Issue Project State Summary Similarity
#45 feat: create new snapcraft-pack action craft-actions merged Merged as commit 8756708, adding a snapcraft/pack action modeled on charmcraft/pack, with shared common/ workflows, working `path` input, and snap/ dir added to the cache key. All CI checks passed; docs followed in #46.
70%