Skip to content

Fix parsing of TOTAL_MEMORY=64MB #10581

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
Feb 26, 2020
Merged

Fix parsing of TOTAL_MEMORY=64MB #10581

merged 2 commits into from
Feb 26, 2020

Conversation

kripken
Copy link
Member

@kripken kripken commented Feb 26, 2020

This is a regression from #10566 which renamed that
setting to INITIAL_MEMORY, and #10449 which added
a test using that setting in that way, and landed close
enough that we didn't notice it was doing so. It should
have worked since we tried to support the old name of
the setting, but this uncovered a bug, so it's actually
good that it broke!

The bug is that we have special handling for expanding
things like 64MB into a number, and that handling did
not work on aliases. As a solution, map aliases very
early in parsing.

kripken and others added 2 commits February 26, 2020 07:17
…NITIAL_MEMORY) early so that processing of things like '64MB' happens properly
@kripken kripken requested a review from sbc100 February 26, 2020 17:41
@kripken
Copy link
Member Author

kripken commented Feb 26, 2020

Landing quickly as this fixes breakage for users on tip of tree, but please review when you can.

@kripken kripken merged commit a09648c into master Feb 26, 2020
@kripken kripken deleted the alt branch February 26, 2020 17:42
Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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