Skip to content

Enable service explicitly requested to be restarted#10952

Merged
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:restart_with_profile
Sep 1, 2023
Merged

Enable service explicitly requested to be restarted#10952
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:restart_with_profile

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented Aug 31, 2023

What I did
loading local compose.yaml file, if service(s) are explicitly set by command args, automagically enable profiles
also moved "no deps" logic to backend code otherwise running without a project cause a nil pointer panic.

Related issue
fixes #10948

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested review from a team, StefanScherer, glours, laurazard, milas, nicksieger and ulyssessouza and removed request for a team August 31, 2023 07:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 31, 2023

Codecov Report

Patch coverage: 9.09% and project coverage change: -0.06% ⚠️

Comparison is base (1fdbcb6) 58.31% compared to head (ebb20fc) 58.25%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10952      +/-   ##
==========================================
- Coverage   58.31%   58.25%   -0.06%     
==========================================
  Files         124      124              
  Lines       10906    10912       +6     
==========================================
- Hits         6360     6357       -3     
- Misses       3918     3925       +7     
- Partials      628      630       +2     
Files Changed Coverage Δ
pkg/api/api.go 28.84% <ø> (ø)
pkg/compose/restart.go 69.56% <0.00%> (-8.49%) ⬇️
cmd/compose/restart.go 69.23% <16.66%> (+0.80%) ⬆️

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

LGTM - would be nice to update restart e2e test to cover this 😉

@ndeloof ndeloof force-pushed the restart_with_profile branch from 7f4f28e to ebb20fc Compare September 1, 2023 09:39
@ndeloof ndeloof merged commit 32c3d0a into docker:main Sep 1, 2023
@ndeloof ndeloof deleted the restart_with_profile branch December 20, 2023 13:52
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.

[BUG] restarting single service that has a profile fails with 'no such service'

2 participants