-
Notifications
You must be signed in to change notification settings - Fork 50
many: make two builds of core26, one with and one without cloud-init #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alfonsosanchezbeato
merged 14 commits into
canonical:main
from
alfonsosanchezbeato:separate-cloud-init
Apr 6, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
661b460
many: make cloud-init support optional
alfonsosanchezbeato 381e0a5
snapcraft.yaml: add conditional cloud-init build support
alfonsosanchezbeato 22d32ae
snapcraft.yaml: use core26 in beta for changelog generation
alfonsosanchezbeato 8980285
.github,tests: build and test bases with and without cloud-init
alfonsosanchezbeato 9d13756
spread.yaml: expose BUILD_VARIANT to tests
alfonsosanchezbeato bece2d5
tests/lib/models: use test-snapd user for models and create...
alfonsosanchezbeato e9eb554
tests/lib/models: add test ssh keys
alfonsosanchezbeato 8f21d6c
.github: add base-variant support for cloud-init testing
alfonsosanchezbeato 241730b
tests: use cloud-init or assertions depending on BUILD_VARIANT
alfonsosanchezbeato 94f90cf
many: make insertion of user in image optional
alfonsosanchezbeato 18e6fa3
tests: fix way we check run mode
alfonsosanchezbeato 62e6b64
tests: exclude cloud-init variant from tests-snapd tests
alfonsosanchezbeato 227a7d3
tests: fix permissions for ssh private key
alfonsosanchezbeato d3c6a13
tests/lib/prepare-utils.sh: create users needed by snapd tests
alfonsosanchezbeato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,6 +22,19 @@ parts: | |||||
| source-type: git | ||||||
| source-branch: '26.04' | ||||||
| override-build: | | ||||||
| # We use a marker file in $CRAFT_PROJECT_DIR to decide whether to include | ||||||
| # cloud-init or not. This file can be manually created for local builds, | ||||||
| # or automatically set if we are in a branch like 26-cloud-init. The | ||||||
| # latter is the case for Launchpad builds - note that this is not a | ||||||
| # branch forked from master, but a branch that is created by CI/CD in the | ||||||
| # same commit at master at build time, that is then imported by the LP | ||||||
| # recipe, and then removed. | ||||||
| ( | ||||||
| cd "$CRAFT_PROJECT_DIR" | ||||||
| if git branch --show-current | grep '.*-cloud-init$' | ||||||
|
||||||
| if git branch --show-current | grep '.*-cloud-init$' | |
| if git branch --show-current | grep -q -- '-cloud-init$' |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| -----BEGIN OPENSSH PRIVATE KEY----- | ||
| b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW | ||
| QyNTUxOQAAACCmIQU2qoW1zRd0NPm73jTdQqJdPg1th6TSsfa44ZEgqwAAAJj0+Ytm9PmL | ||
| ZgAAAAtzc2gtZWQyNTUxOQAAACCmIQU2qoW1zRd0NPm73jTdQqJdPg1th6TSsfa44ZEgqw | ||
| AAAEC6WWaSpu+AUYRpU//2yZgzEv3e9NWIhC5dHZsotHYCdaYhBTaqhbXNF3Q0+bveNN1C | ||
| ol0+DW2HpNKx9rjhkSCrAAAAEHVidW50dUBsb2NhbGhvc3QBAgMEBQ== | ||
| -----END OPENSSH PRIVATE KEY----- |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYhBTaqhbXNF3Q0+bveNN1Col0+DW2HpNKx9rjhkSCr ubuntu@localhost |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests-snapdis now matrixed overvariant: [regular, cloud-init], but the image boot/SSH helper (tests/lib/prepare-utils.sh) SSHes as usertest@localhost(created via cloud-init config) and the workflow still relies onprepare_base_cloudinitto inject a cloud-init config into the gadget. The "regular" variant (intended to be built without cloud-init) is likely to never create thetestuser, causing the VM boot step to time out. Consider runningtests-snapdonly for the cloud-init variant (or updating the VM/user provisioning to not depend on cloud-init for the regular build).