From 94f4c488a601bb435b2479fde872468b7a2e515d Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 6 Aug 2024 14:09:25 -0400 Subject: [PATCH] build: Pin social-auth-app-django as a requirement. (#35237) There are a few migrations going into this library which cause operational headaches for operators. We would like to pin until the migrations settle down and then we can unpin this again. --- requirements/constraints.txt | 6 ++++++ requirements/edx/base.txt | 1 + requirements/edx/development.txt | 1 + requirements/edx/doc.txt | 1 + requirements/edx/testing.txt | 1 + 5 files changed, 10 insertions(+) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 89f265931dc4..0bdb5ad2285c 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -130,3 +130,9 @@ numpy<2.0.0 # Two lines were added in 1.14.4 that make file_exists_in_storage function always return False, # as the default value of AWS_S3_FILE_OVERWRITE is True django-storages<1.14.4 + +# social-auth-app-django 5.4.2 introduces a new migration that will not play nicely with large installations. This will touch +# user tables, which are quite large, especially on instances like edx.org. +# We are pinning this until after all the smaller migrations get handled and then we can migrate this all at once. +# Ticket to unpin: https://github.com/edx/edx-arch-experiments/issues/760 +social-auth-app-django<=5.4.1 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index cb8799b700a4..fcfe7548a013 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -1065,6 +1065,7 @@ snowflake-connector-python==3.11.0 # via edx-enterprise social-auth-app-django==5.4.1 # via + # -c requirements/edx/../constraints.txt # -r requirements/edx/kernel.in # edx-auth-backends social-auth-core==4.5.4 diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 7683bf6dd26c..d6487d2ffa98 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1884,6 +1884,7 @@ snowflake-connector-python==3.11.0 # edx-enterprise social-auth-app-django==5.4.1 # via + # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt # edx-auth-backends diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index 39c1b8d668f9..c90be697606c 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -1255,6 +1255,7 @@ snowflake-connector-python==3.11.0 # edx-enterprise social-auth-app-django==5.4.1 # via + # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt # edx-auth-backends social-auth-core==4.5.4 diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 278423303c9e..a679ac373e18 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -1416,6 +1416,7 @@ snowflake-connector-python==3.11.0 # edx-enterprise social-auth-app-django==5.4.1 # via + # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt # edx-auth-backends social-auth-core==4.5.4