Skip to content

fix depends on behavior and simplify some of its logic #908

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

Merged
merged 2 commits into from
Apr 18, 2021
Merged

Conversation

simskij
Copy link
Member

@simskij simskij commented Apr 17, 2021

The logic for updating containers in order based on their dependencies had some problems that have been accumulated from various changes, where the full logic wasn't greatly understood.
This PR solves two main reasons why updating linked containers have not been working correctly. It also cleans up the logic and adds more descriptive names to prevent this to happen again.

One scenario that just doesn't make sense is the combination of rolling-updates and linked containers, they are now explicitly made mutually exclusive as using them together just causes undefined behaviour,
There could be some additional logic added to do a semi-rolling update instead (which is probably what anyone uses these together would expect to happen), but since that logic is not in place, using them together causes a fatal error for now.

Fatal errors should now also correctly be sent through notifications, since watchtower now waits for pending notifications to be sent before exiting.

@codecov
Copy link

codecov bot commented Apr 17, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@3b60afe). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head ffc7bff differs from pull request most recent head 571f73a. Consider uploading reports for the commit 571f73a to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #908   +/-   ##
=======================================
  Coverage        ?   42.57%           
=======================================
  Files           ?       24           
  Lines           ?     1388           
  Branches        ?        0           
=======================================
  Hits            ?      591           
  Misses          ?      736           
  Partials        ?       61           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b60afe...571f73a. Read the comment docs.

@simskij simskij requested a review from piksel April 18, 2021 16:37
@simskij simskij merged commit 3de202a into main Apr 18, 2021
@simskij simskij deleted the fix/depends-on branch April 18, 2021 16:37
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