Skip to content
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

Lock pymongo to version < 4.9.0 - fails to start with newer versions #366

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

plars
Copy link
Contributor

@plars plars commented Sep 28, 2024

Description

Varun pointed out that he was having trouble getting testflinger to start a few days ago. It looks like it's due to a change in pymongo recently, which is pulled in by flask-pymongo. I think the latest pymongo might break some things with GridFS (though I haven't tested it out completely yet), but it definitely breaks some things for us with both flask-pymongo and mongomock. For now, let's avoid the update until all of them play nice together again.

Resolved issues

I'm logging an issue for this, but we shouldn't close it with this patch. This is just a temporary fix to keep Testflinger functioning for now.

Documentation

N/A

Web service API changes

N/A

Tests

Confirmed that rebuilding the OCI and running it still works after this patch. But this is the version we've been using for a while now, so it just keeps what's already in production.

Copy link
Contributor

@boukeas boukeas left a comment

Choose a reason for hiding this comment

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

Thank you for addressing this. I agree this should be in the pyproject.toml for now. I had the exact same problems you are describing in the PR and the issue you filed.

@plars plars merged commit 388ebab into main Sep 30, 2024
1 check passed
@plars plars deleted the use-pymongo-4.8 branch September 30, 2024 19:01
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.

2 participants