Skip to content

Disable dependency isolation #877

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 1 commit into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure_functions_worker/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
PYTHON_THREADPOOL_THREAD_COUNT_MIN = 1
PYTHON_THREADPOOL_THREAD_COUNT_MAX = sys.maxsize
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT = False
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = True
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = False
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT = False
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT_39 = True

Expand Down
15 changes: 8 additions & 7 deletions tests/unittests/test_utilities_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ def test_clear_path_importer_cache_and_modules_retain_namespace(self):
os.path.join(self._worker_deps_path, 'common_module')
)

@unittest.skip(
'This feature is not ready due to azure. namespace not found bugs.'
)
def test_use_worker_dependencies(self):
# Setup app settings
os.environ['PYTHON_ISOLATE_WORKER_DEPENDENCIES'] = 'true'
Expand Down Expand Up @@ -570,9 +573,8 @@ def test_use_worker_dependencies_default_python_36_37_38(self):
with self.assertRaises(ImportError):
import common_module # NoQA

@unittest.skipUnless(
sys.version_info.major == 3 and sys.version_info.minor == 9,
'Test only available for Python 3.9'
@unittest.skip(
'This feature is not ready due to azure. namespace not found bugs.'
)
def test_use_worker_dependencies_default_python_39(self):
# Feature should be enabled in Python 3.9 by default
Expand Down Expand Up @@ -627,7 +629,7 @@ def test_prioritize_customer_dependencies_disable(self):
with self.assertRaises(ImportError):
import common_module # NoQA

@unittest.skipUnless(
@unittest.skipIf(
sys.version_info.major == 3 and sys.version_info.minor in (6, 7, 8),
'Test only available for Python 3.6, 3.7, or 3.8'
)
Expand All @@ -643,9 +645,8 @@ def test_prioritize_customer_dependencies_default_python_36_37_38(self):
with self.assertRaises(ImportError):
import common_module # NoQA

@unittest.skipUnless(
sys.version_info.major == 3 and sys.version_info.minor == 9,
'Test only available for Python 3.9'
@unittest.skip(
'This feature is not ready due to azure. namespace not found bugs.'
)
def test_prioritize_customer_dependencies_default_python_39(self):
# Feature should be enabled in Python 3.9 by default
Expand Down