Skip to content

docs: recommend spread directly, rather than charmcraft test - #2706

Merged
tonyandrewmeyer merged 7 commits into
canonical:mainfrom
tonyandrewmeyer:docs-recommend-spread
Aug 27, 2026
Merged

docs: recommend spread directly, rather than charmcraft test#2706
tonyandrewmeyer merged 7 commits into
canonical:mainfrom
tonyandrewmeyer:docs-recommend-spread

Conversation

@tonyandrewmeyer

@tonyandrewmeyer tonyandrewmeyer commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The integration testing docs presented charmcraft test as the way to run tests in parallel, with spread only appearing as a description of what the experimental charmcraft init test profiles generate. Since charmcraft test is a wrapper around spread and isn't finalised, the advice we want to be giving is to use spread, which is also what is currently recommended to charm teams.

  • The CI how-to now recommends spread and drops the implication that you need the charmcraft init test profiles to get the parallel setup - any charm can add spread.yaml and a spread directory by hand.
  • The workflow example still runs charmcraft test, since it installs and configures spread for you, but says that's why.
  • The tutorial keeps charmcraft test for convenience, and notes that the spread.yaml and task.yaml files are the part that survives if the wrapper changes.

tonyandrewmeyer and others added 4 commits August 26, 2026 13:12
The docs presented `charmcraft test` as the way to run integration tests
in parallel, with spread only mentioned as the thing underneath it, and
the parallel CI recipe was gated on the experimental `charmcraft init`
test profiles. `charmcraft test` is a wrapper around spread, and isn't
finalised, so the advice we want to give is to adopt spread: the
`spread.yaml` and `task.yaml` files keep working whatever shape the
wrapper ends up with.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@tonyandrewmeyer
tonyandrewmeyer marked this pull request as ready for review August 26, 2026 01:26
The minimal workflow just below it has a hard-coded matrix, so adding a
task.yaml does nothing until you edit the matrix as well. The
dynamic-discovery paragraph further down already makes the claim, where
it is true.
The lead-in above it says the tutorial uses the wrapper, and the command
that follows is charmcraft init rather than charmcraft test, so framing it
as something to try if interested doesn't match either side.

@dwilding dwilding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice updates, thanks!

Comment thread docs/howto/set-up-continuous-integration-for-a-charm.md Outdated
Comment thread docs/howto/set-up-continuous-integration-for-a-charm.md Outdated
Comment thread docs/howto/set-up-continuous-integration-for-a-charm.md Outdated
Comment thread docs/howto/set-up-continuous-integration-for-a-charm.md Outdated
Comment thread docs/howto/write-integration-tests-for-a-charm.md Outdated

@tromai tromai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

I agree with David's comments. Everything else looks great to me.

Capitalise Spread as a proper noun throughout the prose (leaving
filenames, paths and the workflow example alone), and take David's
simplifications to the `charmcraft test` explanations in the CI how-to
and the tutorial.

Also point the integration testing how-to at the new set-up-ci-spread
section rather than the more general set-up-ci-integration one, since
that is where the per-module fan-out is described.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@tonyandrewmeyer
tonyandrewmeyer merged commit d9d03ab into canonical:main Aug 27, 2026
60 checks passed
@tonyandrewmeyer
tonyandrewmeyer deleted the docs-recommend-spread branch August 27, 2026 09:33
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.

3 participants