ci(spread): switch from manually running spread to using snapcraft test#1038
Draft
lengau wants to merge 5 commits into
Draft
ci(spread): switch from manually running spread to using snapcraft test#1038lengau wants to merge 5 commits into
lengau wants to merge 5 commits into
Conversation
- 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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configures the spread setup to work with
snapcraft test:path/environment/includesosnapcraft testcan manage themtype/allocatestub fromcraftbackend sosnapcraft testcan inject its own adhoc configuration$CRAFT_ARTIFACTenv var set bysnapcraft testcloud-config.yamlfor thecraftbackend (used by the LXD VM allocator)apt-get updateinprepareto ensure package lists are freshCloses CRAFT-5063