Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

ndeloof
Copy link
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
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

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, nicksieger, StefanScherer, ulyssessouza, milas and laurazard 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
@ndeloof ndeloof force-pushed the no-deps-volume-from branch from e2aa036 to 92637d2 Compare September 14, 2023 13:19
@ndeloof ndeloof enabled auto-merge (rebase) September 14, 2023 13:19
@ndeloof ndeloof merged commit 8af49ff into docker:main Sep 14, 2023
23 checks passed
@ndeloof ndeloof deleted the no-deps-volume-from branch September 14, 2023 13:45
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