Skip to content

BOM-2245 : Unpin python-dateutil#27196

Merged
mzulqarnain1 merged 1 commit intomasterfrom
bom-2245-attempt-2
Apr 1, 2021
Merged

BOM-2245 : Unpin python-dateutil#27196
mzulqarnain1 merged 1 commit intomasterfrom
bom-2245-attempt-2

Conversation

@mzulqarnain1
Copy link
Contributor

@mzulqarnain1 mzulqarnain1 commented Mar 31, 2021

Attempting this upgrade again since last time it was reverted due to cache unpickling problem.
Complete details here https://openedx.atlassian.net/browse/BOM-2245?focusedCommentId=525883

This time we are going to clear the cache and blockstore configuration when this gets deployed to production using command

sudo -HEu www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp lms generate_course_blocks --all_courses --force_update

@mzulqarnain1 mzulqarnain1 force-pushed the bom-2245-attempt-2 branch 2 times, most recently from 00733a8 to 9e7a5be Compare March 31, 2021 13:13
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@mzulqarnain1 mzulqarnain1 marked this pull request as ready for review March 31, 2021 15:35
Copy link
Contributor

@jmbowman jmbowman left a comment

Choose a reason for hiding this comment

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

Looks good as long as the new test successfully reproduced the problem we hit in prod. Please coordinate the deployment with SRE, since there will be some unusual steps with this one. And capture the steps needed in the draft Lilac release notes.

"""
with open('openedx/core/lib/tests/pickled_data/pickled_datetime.txt', 'rb') as fp:
val = zunpickle(fp.read())
assert val < datetime.now(pytz.utc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you verify that this test failed with the new python-dateutil version when using a pickle created with the version on master? Just making sure that this test case at least reproduces the problem we've already encountered.

Copy link
Contributor Author

@mzulqarnain1 mzulqarnain1 Apr 1, 2021

Choose a reason for hiding this comment

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

Yes, If I generate the pickle on python-dateutil==2.4.0 and run the test with python-dateutil==2.8.1 we get the exact same error as we got on production i.e.
AttributeError: 'tzlocal' object has no attribute '_hasdst'

@mzulqarnain1 mzulqarnain1 merged commit 40878cd into master Apr 1, 2021
@mzulqarnain1 mzulqarnain1 deleted the bom-2245-attempt-2 branch April 1, 2021 14:53
mzulqarnain1 added a commit that referenced this pull request Apr 1, 2021
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

mzulqarnain1 pushed a commit that referenced this pull request Apr 1, 2021
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been rolled back from the production environment.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

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