Skip to content

feat: spread tests and centralized justfile#9

Merged
lucabello merged 4 commits intomainfrom
feat/use-rock-blueprint
Mar 6, 2026
Merged

feat: spread tests and centralized justfile#9
lucabello merged 4 commits intomainfrom
feat/use-rock-blueprint

Conversation

@lucabello
Copy link
Copy Markdown
Contributor

This PR brings the rock up to speed with our newest practice of a centralized justfile, and changes our tests to use rockcraft test (and thus spread).

I'm adding spread tests to the latest folder only; feel free to copy-paste that to other versions if you want, but please do so in a follow-up PR!

Context

More information can be found at:

Per usual, you can also find the available commands by simply running just.

FAQ

  • Can we remove the .extension file? The .extension file is a rockcraft init --profile=test artifact; unfortunately we can't remove it or avoid to commit it
  • Does this model allow for version-specific tests? Yes, each version has its own set of spread tests
  • Can we symlink spread.yaml instead of copying it in just test? Unfortunately not, as rockcraft test (which internally calls rockcraft pack first) mounts the rock folder to a LXD container for packing, which breaks all symlinks

Testing Instructions

just test will run the tests for the latest rock version.

Upgrade Notes

This PR won't trigger changes to any rockcraft.yaml file, which means:

  • no rocks will be changed
  • no tests will be triggered on this run
  • no PR will be opened to OCI Factory
  • the latest rock version will still be pushed to GHCR under the :dev tag

@lucabello lucabello requested a review from a team as a code owner March 5, 2026 11:47
@lucabello lucabello merged commit f6070b4 into main Mar 6, 2026
2 checks passed
@lucabello lucabello deleted the feat/use-rock-blueprint branch March 6, 2026 11:29
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