-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bugfix MTE-2547 Use the latest version of PyFxA and pytest-fxa #22179
Conversation
@@ -1,7 +1,7 @@ | |||
{ | |||
"_meta": { | |||
"hash": { | |||
"sha256": "5c8b5b678f28852600d42fccc45bc6387f68bccea6613819686d72b66ef7b1f2" | |||
"sha256": "710b2b26f95df49fcc12cc73f8922fe70dca0ebb74636b2099b189499bdb9391" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't like these changes, I can roll back everything except the ones related to pytest-fxa-mte
and pyfxa-mte
. What do you all think?
Since Pipfile does not pin 📌 particular versions of depdencies, pipenv install
bumps the versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That probably makes sense, you only want changes that reflect changes in this commit.
@@ -11,7 +11,7 @@ mozprofile = "*" | |||
mozrunner = "*" | |||
mozversion = "*" | |||
pytest = "*" | |||
pytest-fxa = "*" | |||
pytest-fxa-mte = "1.5.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the following published libraries:
https://pypi.org/project/pytest-fxa-mte/
https://pypi.org/project/pyfxa-mte/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added "do not merge" because I am having Python environment issues on MacStadium. |
I have found out that I have tested the command on MacStadium as well. |
That's great Clare, this looks like the path forward. For https://pypi.org/project/pytest-fxa-mte/ can you modify the product description to indicate that it's a fork with updates to handling authentication? Is it safe to drop support for all those older versions of Python in your fork that are mentioned, as it shows in the description on your fork Is that configurable in the PyPi project since you're the maintainer? |
📜 Tickets
Jira ticket
💡 Description
The Sync Integration Tests have been failing since March 2024 due to an API change in account deletion: Since then the
destroy_account
API requires a token. Such a change caused the Mozilla accounts that were created during test execution cannot be removed at testtearDown()
. The logs of the test run shows the following error:The latest main (not released yet!) of PyFxA enables us to remove Mozilla accounts using the latest API change. I published the package in PyPI (note "-mte" suffix): https://pypi.org/project/pytest-fxa-mte/
Then I import the
PyFxA-mte
package topytest-fxa-mte
.pytest-fxa-mte
is published in PyPI: https://test.pypi.org/project/pytest-fxa-mte/.Finally, I pinned the version of
pytest-fxa-mte
as a part of the dependencies of Sync Integration Tests. 🎉I have tested my changes using the following command:
I confirmed that the accounts that were created during the test run no longer exist on stage. The following INFO log is seeen:
In addition, the following snippet of code is run under the virtualenv of PyFxA to confirm that the account no longer exists.
🤔 Unintentional change: Other dependencies including
pytest-html
has been bumped. 🤔📝 Checklist
You have to check all boxes before merging
@Mergifyio backport release/v120
)