Skip to content

ci(spread): switch from manually running spread to using snapcraft test#1038

Draft
lengau wants to merge 5 commits into
mainfrom
work/CRAFT-5063
Draft

ci(spread): switch from manually running spread to using snapcraft test#1038
lengau wants to merge 5 commits into
mainfrom
work/CRAFT-5063

Conversation

@lengau
Copy link
Copy Markdown
Collaborator

@lengau lengau commented Mar 19, 2026

Configures the spread setup to work with snapcraft test:

  • Comment out top-level path/environment/include so snapcraft test can manage them
  • Remove type/allocate stub from craft backend so snapcraft test can inject its own adhoc configuration
  • Switch snap install to use $CRAFT_ARTIFACT env var set by snapcraft test
  • Configure root SSH login in cloud-config.yaml for the craft backend (used by the LXD VM allocator)
  • Run apt-get update in prepare to ensure package lists are fresh

Closes CRAFT-5063

- Comment out top-level path/environment/include so snapcraft test
  can manage them
- Remove type/allocate stub from craft backend so snapcraft test
  can inject its own adhoc configuration
- Switch snap install to use $CRAFT_ARTIFACT env var set by snapcraft test
- Configure root SSH login in cloud-config.yaml for the craft backend
- Run apt-get update in prepare to ensure package lists are fresh

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lengau lengau changed the title ci(spread): support snapcraft test command ci(spread): switch from manually running spread to using snapcraft test Mar 19, 2026
lengau and others added 4 commits March 19, 2026 12:54
Runs `snapcraft test` on all available Linux platforms using
canonical/craft-actions for setup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Actions runners use system names like 'ubuntu-22.04' (without
the '-64' suffix), so spread's provider filter fails to match the
'-64'-suffixed names. Add both variants.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alex Lowe <alex.lowe@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant