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
azure - Update azure-functions #4364
azure - Update azure-functions #4364
Conversation
@@ -17,7 +17,7 @@ | |||
import unittest | |||
|
|||
try: | |||
from azure.functions_worker.bindings.queue import QueueMessage | |||
from azure.functions.queue import QueueMessage |
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.
why is this in a try/except import block in a unit test?
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.
nevermind the the ci failure indicates due to not working on python 2.7
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.
in general the blanket catch on import errors should be localized to python 2.7 so that the other runtimes actually throw properly on errors.
tools/c7n_azure/setup.py
Outdated
@@ -70,6 +70,7 @@ | |||
"azure-mgmt-eventgrid", | |||
"azure-mgmt-logic", | |||
"azure-cosmos", | |||
"azure-functions", |
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 don't think we do this as it only works in 3.6/3.7 and isn't needed here.
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 but going to let someone else approve before merge also since I just made a commit in here.
There was some refactoring in azure-functions-worker library and old code stopped working.
addresses #4363