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

Buffer increase #738

Merged
merged 7 commits into from
May 14, 2018
Merged

Conversation

strajansebastian
Copy link
Contributor

@strajansebastian strajansebastian commented May 11, 2018

Increase buffer size for dependency list to up to 2MB of package names.

Fixes #

Requirements

All new code should be covered with tests, documentation should be updated. CI should pass.

Description of the Change

Checklist

  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

This was done to fix a problem for a package with a really long list of dependencies.
It would be nice if this kind of values are configurable via a config for future, to avoid editing the code for custom use cases.
thanks to Sorin Pop, who found and fixed the issue in our internal system :)
fix big list of dependency problems (up to 2MB)
@codecov
Copy link

codecov bot commented May 11, 2018

Codecov Report

Merging #738 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #738      +/-   ##
==========================================
+ Coverage   59.17%   59.19%   +0.01%     
==========================================
  Files          50       50              
  Lines        6183     6185       +2     
==========================================
+ Hits         3659     3661       +2     
  Misses       2123     2123              
  Partials      401      401
Impacted Files Coverage Δ
deb/format.go 87.61% <100%> (+0.22%) ⬆️

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 c7a3a10...d679023. Read the comment docs.

@strajansebastian strajansebastian mentioned this pull request May 11, 2018
6 tasks
smira added 2 commits May 11, 2018 22:11
This way `bufio.Scanner` would allocate initial buffer of default size,
buf might still grow to maximum defined size.
@smira
Copy link
Contributor

smira commented May 11, 2018

@strajansebastian thanks for the PR, I have added some changes and unit-tests (I borrowed your sample file), please let me know if that looks good to you

@smira smira added the 1.3.0 label May 11, 2018
@strajansebastian
Copy link
Contributor Author

@smira everything looks good from my point of view. Thanks for the help!

@smira smira merged commit d31144b into aptly-dev:master May 14, 2018
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.

2 participants