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

ignore py2 errors #381

Merged

Conversation

goneri
Copy link
Member

@goneri goneri commented Jun 2, 2021

  • ignore all the errors with pre-3.8 Python
  • add a script to refresh the ignores files easily

@ansibullbot
Copy link

@goneri: Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information.

Here are the items we could not find in your description:

  • issue type

Please set the description of this pullrequest with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/PULL_REQUEST_TEMPLATE.md

click here for bot help

@ansibullbot ansibullbot added needs_info This issue requires further information. Please answer any outstanding questions needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly needs_triage tests tests labels Jun 2, 2021
@tremble
Copy link
Contributor

tremble commented Jun 2, 2021

Can we use the --skip-test option instead of mass-adding ignore entries?

- ignore all the errors with pre-3.8 Python
- add a script to refresh the ignores files easily
@goneri goneri force-pushed the ignore-py2-errors_22571 branch from ce6d6f2 to 39f483b Compare June 2, 2021 14:38
@goneri
Copy link
Member Author

goneri commented Jun 2, 2021

Can we use the --skip-test option instead of mass-adding ignore entries?

We cannot use --skip-test, the option does not accept things like compile-3.7!skip. It can just fully turn off the test. In addition, we don't control the ansible-test configuration of AutomationHub. So it will still test againt py27.

@goneri goneri requested a review from jillr June 2, 2021 14:45
@ansibullbot ansibullbot added community_review and removed needs_info This issue requires further information. Please answer any outstanding questions needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly labels Jun 2, 2021
@tremble
Copy link
Contributor

tremble commented Jun 2, 2021

@goneri Then FWIW this is probably the right change to make but we should talk to @mattclay about a better long term solution for disabling/reconfiguring ansible-test

@tremble
Copy link
Contributor

tremble commented Jun 2, 2021

https://github.com/openstack/ansible-collections-openstack/blob/master/tools/run-ansible-sanity.sh#L28

I don't quite get why we care about not totally turning off the Python 2.6/2.7/3.5 tests, but I'll not push here.

@jillr
Copy link
Collaborator

jillr commented Jun 2, 2021

@tremble I would also prefer to avoid hundreds of ignores (community.aws is going to be "fun") but in the immediate term we can't keep blocking CI. :(

@goneri
Copy link
Member Author

goneri commented Jun 2, 2021

https://github.com/openstack/ansible-collections-openstack/blob/master/tools/run-ansible-sanity.sh#L28

I don't quite get why we care about not totally turning off the Python 2.6/2.7/3.5 tests, but I'll not push here.

They test with Python 3.6 only. This is another approach that we can take, but we will still need to have the ignore files at some point because of AutomationHub.

Copy link
Collaborator

@jillr jillr left a comment

Choose a reason for hiding this comment

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

lgtm when #370 passes (contains 3-only changes)

@goneri
Copy link
Member Author

goneri commented Jun 2, 2021

@tremble I've open this a while ago: ansible/ansible#74398. @mattclay has since pushed a new feature that give the ability to disable a Python version. But it won't be backported.

goneri added a commit to goneri/community.aws that referenced this pull request Jun 2, 2021
We only support Python 3.8 now. This commit had:

- a script to refresh the ignore files:
  tests/sanity/refresh_ignore_files
- the ignore files.

See: ansible-collections/amazon.aws#381
@jillr
Copy link
Collaborator

jillr commented Jun 2, 2021

370 sanity is passing now (the integration failures are unrelated). thanks @goneri!

@jillr jillr added the gate label Jun 2, 2021
@ansible-zuul ansible-zuul bot merged commit 5bc1292 into ansible-collections:main Jun 2, 2021
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
We only support Python 3.8 now. This commit had:

- a script to refresh the ignore files:
  tests/sanity/refresh_ignore_files
- the ignore files.

See: ansible-collections/amazon.aws#381
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
We only support Python 3.8 now. This commit had:

- a script to refresh the ignore files:
  tests/sanity/refresh_ignore_files
- the ignore files.

See: ansible-collections/amazon.aws#381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants