Skip to content

DO NOT import requests from botocore #424

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
Feb 12, 2021

Conversation

tianchu
Copy link
Contributor

@tianchu tianchu commented Feb 12, 2021

What does this PR do?

Remove the fallback way to import requests from botocore.

The Datadog Forwarder no longer depends on the requests module from botocore.vendored since v2.3.2, but the import statement was kept as a fallback to help customers upgrade their forwarders by copying the source code (that used to be the easiest way to upgrade until CloudFormation was adopted, see this PR).

That fallback import statement will soon become obsolete, and it probably triggered the communications (false alarms, since it's only a fallback) from AWS to customers.

Motivation

Testing Guidelines

Additional Notes

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)
  • This PR passes the unit tests
  • This PR passes the installation tests (ask a Datadog member to run the tests)

Copy link
Contributor

@agocs agocs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Are we going to bump the major version to signify what's technically a breaking change?

@tianchu
Copy link
Contributor Author

tianchu commented Feb 12, 2021

LGTM. Are we going to bump the major version to signify what's technically a breaking change?

I don't think so -- it's a breaking change only when upgrading from a 2.x version to the latest 3.x, the major version bump from 2 to 3 already reflects it.

@tianchu tianchu merged commit 3513c95 into master Feb 12, 2021
@tianchu tianchu deleted the tian.chu/donot-import-requests-from-botocore branch February 12, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants