Upgrade python packages to use pytest 8 and requests 2.31 #36595
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
I'm working to resolve security alerts on the main Airbyte repo. This PR addresses ReDoS in
py
and vulnerabilities inrequests
.Arguably, we should probably bundle
cryptography
in this as well — it has quite a few alerts with it.How
setup.py
files for connectors that have not moved to Poetry yet.^8
for all Poetry packages in our repository, along withpytest-mock
to^3
.tools/bin/run_poetry_lock.sh
thatpoetry lock
all packages.connector_ops
andqa_engine
(soon to be removed in another PR) are frequent offendersRisks
airbyte-ci/pipelines
— I've upgradedrequests
to 2.31 to resolve another requirement, but noticed that Ben pinned it to 2.28 because it was not compatible with previous version ofdocker
package. We should test thatairbyte-ci
still works fine.Should we republish all connectors for this?
No, we shouldn't — pytest is a dev dependency, and no behavior change is introduced. That's why I think that upgrading
cryptography
is a different concern — for that one we might actually want to republish.