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

internal/idm: drop libnetwork dependency #3169

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

corhere
Copy link
Contributor

@corhere corhere commented Feb 23, 2024

- What I did
Modified the internal/idm package to stop depending on package github.com/docker/docker/libnetwork/bitmap.

- How I did it
Rewrite it in terms of github.com/bits-and-blooms/bitset, an uncompressed bitset data structure. It is only used by portallocator, which requires a maximum set length of 65535, so using compressed bitmaps would be a premature optimization.

- How to test it
CI

- Description for the changelog

N/A; internal package

@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2024

Codecov Report

Merging #3169 (a1f8cff) into master (4b261ae) will decrease coverage by 0.01%.
The diff coverage is 94.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3169      +/-   ##
==========================================
- Coverage   55.74%   55.74%   -0.01%     
==========================================
  Files         158      158              
  Lines       33196    33206      +10     
==========================================
+ Hits        18506    18510       +4     
- Misses      13228    13236       +8     
+ Partials     1462     1460       -2     

@dperny
Copy link
Collaborator

dperny commented Feb 23, 2024

There is a minor conflict in this PR.

Rewrite it in terms of github.com/bits-and-blooms/bitset, an
uncompressed bitset data structure. It is only used by portallocator,
which requires a maximum set length of 65535, so using compressed
bitmaps would be a premature optimization.

Signed-off-by: Cory Snider <csnider@mirantis.com>
@corhere
Copy link
Contributor Author

corhere commented Feb 23, 2024

Git was able to rebase automatically 🤷

@dperny dperny merged commit 2e06ed0 into moby:master Feb 26, 2024
8 checks passed
@corhere corhere deleted the idm-bitset branch February 26, 2024 18:00
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.

None yet

3 participants