Skip to content

loader: expand test coverage and document selection ordering#879

Open
glours wants to merge 1 commit into
compose-spec:mainfrom
glours:loader-selection-followup
Open

loader: expand test coverage and document selection ordering#879
glours wants to merge 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.

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 requested a review from ndeloof as a code owner May 27, 2026 13:07
@glours glours self-assigned this May 27, 2026
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