Skip to content

don't rely on depends_on to resolve volume_from, better use observed state#10999

Merged
ndeloof merged 2 commits intodocker:mainfrom
ndeloof:no-deps-volume-from
Sep 14, 2023
Merged

don't rely on depends_on to resolve volume_from, better use observed state#10999
ndeloof merged 2 commits intodocker:mainfrom
ndeloof:no-deps-volume-from

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented Sep 14, 2023

What I did
remove preemptive parsing of volumes_from doing convergence based on known dependencies, better rely on observed state to select target container. This also removes the assumption we will be able to use container number 1

Related issue
closes #10996
closes #10997

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

@ndeloof ndeloof force-pushed the no-deps-volume-from branch from 6eefef3 to 81b8ba6 Compare September 14, 2023 07:39
Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 14, 2023

Codecov Report

Patch coverage: 70.68% and project coverage change: +0.07% 🎉

Comparison is base (e19232e) 57.88% compared to head (e2aa036) 57.95%.

❗ Current head e2aa036 differs from pull request most recent head 92637d2. Consider uploading reports for the commit 92637d2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10999      +/-   ##
==========================================
+ Coverage   57.88%   57.95%   +0.07%     
==========================================
  Files         129      129              
  Lines       11160    11108      -52     
==========================================
- Hits         6460     6438      -22     
+ Misses       4063     4038      -25     
+ Partials      637      632       -5     
Files Changed Coverage Δ
pkg/compose/run.go 55.04% <25.00%> (-0.41%) ⬇️
pkg/compose/convergence.go 71.73% <73.58%> (+0.12%) ⬆️
pkg/compose/create.go 58.79% <100.00%> (-0.15%) ⬇️

... and 2 files with indirect coverage changes

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

@ndeloof ndeloof force-pushed the no-deps-volume-from branch 2 times, most recently from ad3dc84 to bf961a9 Compare September 14, 2023 09:47
@ndeloof ndeloof requested review from a team, StefanScherer, laurazard, milas, nicksieger and ulyssessouza and removed request for a team September 14, 2023 09:48
@ndeloof ndeloof force-pushed the no-deps-volume-from branch 2 times, most recently from 273c702 to e2aa036 Compare September 14, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants