This repository was archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
Bug in azure-devops triggers exception #257
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The Azure Devops python SDK needs to be upgraded to at least 6.0.0b4 to address include a fixe for a race-condition (see microsoft/azure-devops-python-api#356) that can manifest as the following exception:
Exception while executing function: Functions.notifications Result: Failure
Exception: FileExistsError: [Errno 17] File exists: '/home/.azure-devops/python-sdk/cache'
Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 270, in _handle__function_load_request
func_request.metadata.entry_point)
File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 32, in call
return func(*args, **kwargs)
File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/loader.py", line 76, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/site/wwwroot/notifications/__init__.py", line 14, in <module>
from ..onefuzzlib.notifications.main import Notification
File "/home/site/wwwroot/onefuzzlib/notifications/main.py", line 30, in <module>
from .ado import notify_ado
File "/home/site/wwwroot/onefuzzlib/notifications/ado.py", line 9, in <module>
from azure.devops.connection import Connection
File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/devops/connection.py", line 9, in <module>
from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE
File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/devops/_file_cache.py", line 122, in <module>
DEFAULT_CACHE_DIR = get_cache_dir()
File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/devops/_file_cache.py", line 117, in get_cache_dir
os.makedirs(azure_devops_cache_dir)
File "/usr/local/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working