-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Bugfix: Add config to disable plugin initialization for Persistent sandbox #2179
Conversation
@SmartManoj
Further annotation was: |
This may be a solution for #2178 The current change concerns calling |
Right, it's hard to keep track with the issues. :) |
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.
I'm not sure we want to add an option to disable the plugins. That could affect other behavior.
Can you describe the end goal here in more detail? Why does adding this flag help?
Just tried it locally and I didn't get |
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.
I am a bit lost in this feature so I'll leave the review burden to Robert or anyone else 😄 . I just have one request:
once all issues with persistent sandbox are resolved, could you please add it to run-integration-tests.yml
? You could add a new line to matrix
. We now have three different kinds of sandboxes, and you could add a new dimension - persistent type.
@SmartManoj I still don't understand how/why this works. Does the user need to change the value of Why is |
It does not need to change every time.
|
Alright. I don't love the top-level config here--it puts too much burden on the user to know when to turn this flag on and off. But let's get this in since it's causing issues. Long term, better solutions might be:
|
This PR brings back the old behavior (always initialize). To disable the plugin initialization, one can set |
Set initialize_plugins=0
This PR brings back the old behavior (always initialize). To disable the plugin initialization, one can set
init_sandbox_plugins
config to 0.For persistent sandboxes, need to run
source bashrc
.As
source ~/.bashrc
was removed in #2172, refactored the logic to executesource ~/.bashrc
.Solves current bug due to the removal,
-bash: execute_cli: command not found
error.And with #2177, it won't cause the #2178 problem for persistent sandboxes.