-
Notifications
You must be signed in to change notification settings - Fork 26
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
Related to #386. Wizard should bump ulimit #387
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #387 +/- ##
===========================================
- Coverage 85.33% 68.86% -16.48%
===========================================
Files 98 95 -3
Lines 10609 10290 -319
===========================================
- Hits 9053 7086 -1967
- Misses 1556 3204 +1648
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -351,7 +351,7 @@ def __init__(self, repo_dir: str): | |||
self._default_region = None | |||
|
|||
asyncio.run(self.set_config_details()) | |||
|
|||
check_and_update_resource_limit(self.config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what actually makes the difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! As an alternative - what do you think about using this function in main.py under the "setup" function - this is the current pattern (we use it in import and git plan currently).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdaue2 There is a slight chicken-and-egg problem. The function takes a config but when setup
is run, we may have a config to pass to the function. Wizard actually bootstrap config based on business logic in async def set_config_details(self):
. That's the reasoning why I placed check_and_update_resource_limit(self.config)
after self_config_details
has run to ensure we can use self.config
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What changed?
Rationale
How was it tested?
If it was manually verified, list the instructions for your reviewers to follow.
I manually set
ulimit -n 128
, that should make it easily reproduce the issue with importing large AWS org. After this change, the wizard will bump ulimit implicitly.