swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

manager/allocator/cnmallocator: add temporary adaptor for constructor

Open thaJeztah opened this issue 2 years ago • 6 comments

  • possible alternative to https://github.com/moby/moby/pull/45843
  • relates to / supersedes / closes https://github.com/moby/swarmkit/pull/3130
  • supersedes / closes https://github.com/moby/swarmkit/pull/3015

Add an adaptor to help with a signature change in the Idm constructor.

- What I did

- How I did it

- How to test it

- Description for the changelog

thaJeztah avatar Jun 30 '23 11:06 thaJeztah

Looks like this has legitimate test failures hitting the "invalid constructor" branch -- but I like this idea in principle, if we can make it work...

neersighted avatar Jun 30 '23 23:06 neersighted

Yes, looks like I messed it up, or at least didn't handle everything, but I can give it another try tomorrow

thaJeztah avatar Jul 02 '23 21:07 thaJeztah

Codecov Report

Merging #3139 (e21d93d) into master (93fe90a) will decrease coverage by 0.08%. The diff coverage is 56.25%.

@@            Coverage Diff             @@
##           master    #3139      +/-   ##
==========================================
- Coverage   61.76%   61.69%   -0.08%     
==========================================
  Files         154      154              
  Lines       31106    31120      +14     
==========================================
- Hits        19214    19198      -16     
- Misses      10346    10383      +37     
+ Partials     1546     1539       -7     

codecov-commenter avatar Jul 03 '23 15:07 codecov-commenter

Whoop; this is green, and my test-PR in moby with this change is also green;

  • https://github.com/moby/moby/pull/45876

@dperny @neersighted PTAL

thaJeztah avatar Jul 03 '23 19:07 thaJeztah

I think I can combine this PR with https://github.com/moby/swarmkit/pull/3015, which now does something very similar for another signature change; let me update this one.

thaJeztah avatar Jul 04 '23 13:07 thaJeztah

This PR has been superseded by #3143

corhere avatar Jul 07 '23 19:07 corhere