Skip to content

loader: expand test coverage and document selection ordering#879

Merged
glours merged 1 commit into
compose-spec:mainfrom
glours:loader-selection-followup
Jun 22, 2026
Merged

loader: expand test coverage and document selection ordering#879
glours merged 1 commit into
compose-spec:mainfrom
glours:loader-selection-followup

Conversation

@glours

@glours glours commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #875. Adds tests for coverage gaps identified during review and a comment at the call site documenting why WithServicesEnabled must precede WithSelectedServices.

  • Test that selecting a profile-disabled service re-activates it, locking in the two-step contract.
  • Test that WithoutUnnecessaryResources prunes secrets, configs and models (only networks/volumes were exercised before).
  • Test that WithoutUnnecessaryResources works standalone, without WithSelectedServices.
  • Comment the WithServicesEnabled-before-WithSelectedServices ordering requirement in ModelToProject.

@glours glours requested a review from ndeloof as a code owner May 27, 2026 13:07
@glours glours self-assigned this May 27, 2026
Follow-up to compose-spec#875. Adds tests for coverage gaps identified during
review and a comment at the call site documenting why
WithServicesEnabled must precede WithSelectedServices.

- Test that selecting a profile-disabled service re-activates it,
  locking in the two-step contract.
- Test that WithoutUnnecessaryResources prunes secrets, configs and
  models (only networks/volumes were exercised before).
- Test that WithoutUnnecessaryResources works standalone, without
  WithSelectedServices.
- Comment the WithServicesEnabled-before-WithSelectedServices
  ordering requirement in ModelToProject.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours glours force-pushed the loader-selection-followup branch from 1d2c378 to bc17d48 Compare June 22, 2026 17:14
@glours glours enabled auto-merge (rebase) June 22, 2026 17:14
@glours glours merged commit 83463fe into compose-spec:main Jun 22, 2026
8 checks passed
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.

2 participants