Skip to content

Conversation

@sentrivana
Copy link
Contributor

Remove -latest tests on the 1.x branch and try freezing the versions to what was out at the time of the last 1.x release.

@sentrivana sentrivana changed the title Freeze library versions [1.x] Freeze library versions Jul 25, 2024
@sentrivana sentrivana changed the title [1.x] Freeze library versions [1.x] Fix tests Jul 25, 2024
Comment on lines +74 to +75
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need this so that we don't get a certificate error in Python 3.5 GitHub actions.

boto3: TESTPATH=tests/integrations/boto3
bottle: TESTPATH=tests/integrations/bottle
celery: TESTPATH=tests/integrations/celery
py{3.8,3.10}-celery: VIRTUALENV_PIP=23.3.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Newer pip fails to install some celery versions due to "invalid metadata"

@sentrivana sentrivana marked this pull request as ready for review July 26, 2024 11:56
Copy link
Contributor

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for doing this!

Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

I have some questions and suggestions, but mostly looks good. These do not need to block merging if you disagree

Comment on lines +39 to +40
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of adding this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.7","3.8","3.9","3.11","3.12"]
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we keep testing any 1.x changes on these Python versions to ensure we remain compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This whole step should actually not be there anymore at all -- it's testing latest. Looks like I missed some latest somewhere in tox.ini. Will recheck this.

But to answer more generally -- the goal is to get rid of all the -latest jobs and instead test additional pinned versions (stuff that was latest in the past) in the -pinned group.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, missed some stuff: 1f1256c Fixed now.

fail-fast: false
matrix:
python-version: ["3.7","3.8","3.11"]
python-version: ["3.7","3.8","3.11","3.12"]
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to be testing additional Python versions we were not testing before on 1.x since we are not officially supporting it anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The pinned and the latest tests used to be separate workflow steps before (you can see the now removed latest step above this). I've now pinned the last supported version of our GraphQL deps to whatever was "latest" at the time when our last release came out, so the tests essentially just moved to the pinned step instead. We were testing against it before as well -- just in another step.

@sentrivana sentrivana merged commit 388e68e into 1.x Jul 26, 2024
@sentrivana sentrivana deleted the ivana/1.x/fix-tests branch July 26, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants