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

fix: use .txt files inside .in files to ensure consistency across environments #4556

Merged
merged 7 commits into from
Feb 7, 2025

Conversation

zawan-ila
Copy link
Contributor

@zawan-ila zawan-ila commented Feb 3, 2025

PROD-3793

If we include .in files as requirements (instead of .txt files), there is a possibility that different envs (dev, prod, local, test etc.) may get different versions of the same package. An example is the attrs package in our repository. The local env has version 21.4.0 whereas the prod env has version 25.1.0

This PR is an attempt to ensure that package versions are consistent across environments.

It might be helpful to review the commits separately.

@zawan-ila zawan-ila force-pushed the anawaz/prod-3793 branch 3 times, most recently from 04c4142 to 0ab0fb1 Compare February 3, 2025 15:07
@@ -0,0 +1,1029 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

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

If test.txt did not exist before, is it being used anywhere in CI flow? or is everything under local.txt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's being used anywhere. If it were, things would have broken

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm, strange.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not update test/CI to use test.txt? I mean the purpose of having the separate dependencies was to be able to use environment-specific dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the tests to use test.txt

@zawan-ila zawan-ila merged commit 72a9334 into master Feb 7, 2025
14 checks passed
@zawan-ila zawan-ila deleted the anawaz/prod-3793 branch February 7, 2025 07:33
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.

4 participants