Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

Pymongo released 4.11.1 https://github.com/mongodb/mongo-python-driver/releases/tag/4.11.1 which breaks our CI similar to what happened in #46215.

Working this around to unblock CI for now.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@amoghrajesh
Copy link
Contributor Author

Fails due to

providers/amazon/tests/provider_tests/amazon/aws/hooks/test_emr.py:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
providers/amazon/src/airflow/providers/amazon/aws/hooks/emr.py:136: in create_job_flow
    response = self.get_conn().run_job_flow(**config)
/usr/local/lib/python3.12/site-packages/botocore/client.py:569: in _api_call
    return self._make_api_call(operation_name, kwargs)
/usr/local/lib/python3.12/site-packages/botocore/client.py:1005: in _make_api_call
    http, parsed_response = self._make_request(
/usr/local/lib/python3.12/site-packages/botocore/client.py:1029: in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
/usr/local/lib/python3.12/site-packages/botocore/endpoint.py:119: in make_request
    return self._send_request(request_dict, operation_model)
/usr/local/lib/python3.12/site-packages/botocore/endpoint.py:196: in _send_request
    request = self.create_request(request_dict, operation_model)
/usr/local/lib/python3.12/site-packages/botocore/endpoint.py:132: in create_request
    self._event_emitter.emit(
/usr/local/lib/python3.12/site-packages/botocore/hooks.py:412: in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
/usr/local/lib/python3.12/site-packages/botocore/hooks.py:256: in emit
    return self._emit(event_name, kwargs)
/usr/local/lib/python3.12/site-packages/botocore/hooks.py:239: in _emit
    response = handler(**kwargs)
/usr/local/lib/python3.12/site-packages/botocore/signers.py:106: in handler
    return self.sign(operation_name, request)
/usr/local/lib/python3.12/site-packages/botocore/signers.py:198: in sign
    auth.add_auth(request)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <botocore.auth.SigV4Auth object at 0x7f858a34a030>
request = <botocore.awsrequest.AWSRequest object at 0x7f8569b580e0>

    def add_auth(self, request):
        if self.credentials is None:
            raise NoCredentialsError()
>       datetime_now = datetime.datetime.utcnow()
E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).

I believe this in unrelated and has a fix?

@jscheffl
Copy link
Contributor

I believe this in unrelated and has a fix?

Yes, this is also the same problem on main. LGTM!

@jscheffl jscheffl merged commit dddc979 into apache:main Feb 11, 2025
148 of 152 checks passed
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
Last test is stuck and the same like the other failed otherwise. Let's merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants