To use python3.9, you'd have to change the nodeset on .zuul.yaml to debian-bullseye (copy from python3.9 and you should be good)[1]. On tox.ini, you need to use the same upper-constraints as you do for python3.9 (the one that comes from starlingx/root)[2].

You can find a good example on [3] where I defaulted all envs for python3.9 and used 3.6 only on venvs that doesn't have support for python3.9. Make sure you execute those tox tests locally before you try to make zuul try them (just because it's easier to spot any requirement inconsistency running locally). You can test using the same command zuul uses (tox -c python-k8sapp-sriov-fec-operator/k8sapp_sriov_fec_operator/tox.ini -e pylint).

[1]https://review.opendev.org/c/starlingx/app-sriov-fec-operator/+/845179/19/.zuul.yaml#19
[2]https://review.opendev.org/c/starlingx/app-sriov-fec-operator/+/845179/19/python-k8sapp-sriov-fec-operator/k8sapp_sriov_fec_operator/tox.ini#27
[3]https://github.com/starlingx/openstack-armada-app/blob/master/python-k8sapp-openstack/k8sapp_openstack/tox.ini


Thiago

From: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>
Sent: Thursday, September 1, 2022 11:03 AM
To: Brito, Thiago <Thiago.Brito@windriver.com>; Khalil, Ghada <Ghada.Khalil@windriver.com>; Burla, Balendu <balendu.burla@intel.com>
Cc: starlingx-discuss@lists.starlingx.io <starlingx-discuss@lists.starlingx.io>
Subject: RE: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration
 

[Please note: This e-mail is from an EXTERNAL e-mail address]

Thank you for the suggestion. I would like to try another build with including nodeset as ubuntu-bionic in .zuul.com. Does that require python3.6 as well or can we change it back to python3?

 

In case the above still fails, what are all the files that needs to be modified and what are the changes that needs to be made in order to change everything to python3.9?

Are there any other applications that I can refer to which already have moved to python3.9 for pylint zuul job?

 

Nidhi

From: Brito, Thiago <Thiago.Brito@windriver.com>
Sent: Thursday, September 1, 2022 6:03 AM
To: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>; Khalil, Ghada <ghada.khalil@windriver.com>; Burla, Balendu <balendu.burla@intel.com>
Cc: starlingx-discuss@lists.starlingx.io
Subject: Re: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

Log says "InterpreterNotFound". The node you zuul is running it into (ubuntu-focal) doesn't have python3.6. You can either change your nodeset to "ubuntu-bionic" on .zuul.yaml or, as I said before, change everything to python3.9 (running on debian-bullseye) and don't carry technical debt from start.

 

Thiago


From: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>
Sent: Wednesday, August 31, 2022 8:23 PM
To: Brito, Thiago <Thiago.Brito@windriver.com>; Khalil, Ghada <Ghada.Khalil@windriver.com>; Burla, Balendu <balendu.burla@intel.com>
Cc: starlingx-discuss@lists.starlingx.io <starlingx-discuss@lists.starlingx.io>
Subject: RE: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

[Please note: This e-mail is from an EXTERNAL e-mail address]

I updated the pylint env from “python3” to “python3.6”, but it still failed.

 

GLOB sdist-make: /home/zuul/src/opendev.org/starlingx/app-sriov-fec-operator/python-k8sapp-sriov-fec-operator/k8sapp_sriov_fec_operator/setup.py
pylint create: /tmp/zuul_k8sapp_sriov_fec_operatortox/pylint
ERROR: InterpreterNotFound: python3.6
___________________________________ summary ____________________________________
ERROR:  pylint: InterpreterNotFound: python3.6

 

 

Link: Zuul Build (opendev.org)

 

Can you please suggest what is the fix for this issue?

 

Thank you,

Nidhi

From: Brito, Thiago <Thiago.Brito@windriver.com>
Sent: Wednesday, August 31, 2022 8:07 AM
To: Khalil, Ghada <ghada.khalil@windriver.com>; Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>; Burla, Balendu <balendu.burla@intel.com>
Cc: starlingx-discuss@lists.starlingx.io
Subject: Re: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

Hi,

 

Expanding the logs I see that the error is related to an unavailable bdist_wininst command during the wheel creation to install on the tox venv. It seems like this was deprecated on python3.8 (which is the default on the node being used when you provide basepython=python3) and removed from setuptools at some point during that cycle; but you are using the upper-requirements from Openstack stein in your tox setup, so I think it is installing a weird setuptools version.

 

I recommend using basepython=python3.6 for the pylint env (if you can manage to use python3.9 and the debian upper-constraints, it's even better, but I think you'd have to tweak zuul.yml to change the nodeset as well).

 

and that someone also steps up to actively maintain this and work on existing issues. FWIW, bdist_wininst is currently broken on 3.8+, and a PR has languished for over 3 months - but people can work around that by applying the patch to the python version that builds the distribution.

 

 

Thiago


From: Khalil, Ghada <Ghada.Khalil@windriver.com>
Sent: Wednesday, August 31, 2022 11:33 AM
To: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>; Burla, Balendu <balendu.burla@intel.com>
Cc: starlingx-discuss@lists.starlingx.io <starlingx-discuss@lists.starlingx.io>
Subject: Re: [Starlingx-discuss] Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

Adding the stx-discuss mailing list for wider visibility in case someone is able to comment/help with. It appears that a “recheck” this morning still failed.

 

Thanks,

Ghada

 

PS: It’s recommended to always include the mailing list on reported issues.

 

From: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>
Sent: Tuesday, August 30, 2022 9:04 PM
To: Burla, Balendu <balendu.burla@intel.com>; Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>; Khalil, Ghada <Ghada.Khalil@windriver.com>; Somerville, Jim <Jim.Somerville@windriver.com>; Panech, Davlet <Davlet.Panech@windriver.com>; Little, Scott <Scott.Little@windriver.com>; Kantek, Andre Fernando Zanella <AndreFernandoZanella.Kantek@windriver.com>; Koerich, Douglas Henrique <DouglasHenrique.Koerich@windriver.com>; Ho, Teresa <Teresa.Ho@windriver.com>
Subject: RE: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

[Please note: This e-mail is from an EXTERNAL e-mail address]

Hi all,

 

pylint test is complaining about something in the k8sapp folder in the latest patchset 14. I have not uploaded any changes to this folder, infact the same job had passed yesterday in my last patchset 13. Can someone here please suggest where to look to resolve this issue? I didn’t quite understand what the issue is.

 

Zuul Build (opendev.org)

 

Regards,

Nidhi

 

From: Zuul (Code Review) <review@openstack.org>
Sent: Tuesday, August 30, 2022 5:13 PM
To: Shivashankara Belur, Nidhi <nidhi.shivashankara.belur@intel.com>
Cc: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>; Somerville, Jim <jim.somerville@windriver.com>; Andre Kantek <AndreFernandoZanella.Kantek@windriver.com>; Davlet Panech <davlet.panech@windriver.com>; Ho, Teresa <teresa.ho@windriver.com>; Khalil, Ghada <ghada.khalil@windriver.com>; Scott Little <scott.little@windriver.com>; Burla, Balendu <balendu.burla@intel.com>
Subject: Change in ...app-sriov-fec-operator[master]: sriov-fec-operator system app integration

 

Attention is currently required from: Jim Somerville, Ghada Khalil, Scott Little, Douglas Henrique Koerich, Nidhi Shivashankara Belur, Andre Kantek, Davlet Panech, Teresa Ho.

Build failed (check pipeline). For information on how to proceed, see
https://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing

https://zuul.opendev.org/t/openstack/buildset/10fd7a2bb881467ca0a24a8464e0822f

Patch set 14:Verified -1

View Change

To view, visit change 845179. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: starlingx/app-sriov-fec-operator

Gerrit-Branch: master

Gerrit-Change-Id: I1eee9e48a10e86be32e59bb83852c7bc179f0b44

Gerrit-Change-Number: 845179

Gerrit-PatchSet: 14

Gerrit-Owner: Nidhi Shivashankara Belur <nidhi.shivashankara.belur@intel.com>

Gerrit-Reviewer: Davlet Panech <davlet.panech@windriver.com>

Gerrit-Reviewer: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>

Gerrit-Reviewer: Ghada Khalil <ghada.khalil@windriver.com>

Gerrit-Reviewer: Jim Somerville <jim.somerville@windriver.com>

Gerrit-Reviewer: Scott Little <scott.little@windriver.com>

Gerrit-Reviewer: Teresa Ho <teresa.ho@windriver.com>

Gerrit-Reviewer: Zuul

Gerrit-CC: Andre Kantek <AndreFernandoZanella.Kantek@windriver.com>

Gerrit-CC: Balendu Mouli Burla <balendu.burla@intel.com>

Gerrit-Attention: Jim Somerville <jim.somerville@windriver.com>

Gerrit-Attention: Ghada Khalil <ghada.khalil@windriver.com>

Gerrit-Attention: Scott Little <scott.little@windriver.com>

Gerrit-Attention: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>

Gerrit-Attention: Nidhi Shivashankara Belur <nidhi.shivashankara.belur@intel.com>

Gerrit-Attention: Andre Kantek <AndreFernandoZanella.Kantek@windriver.com>

Gerrit-Attention: Davlet Panech <davlet.panech@windriver.com>

Gerrit-Attention: Teresa Ho <teresa.ho@windriver.com>

Gerrit-Comment-Date: Wed, 31 Aug 2022 00:12:41 +0000

Gerrit-HasComments: No

Gerrit-Has-Labels: Yes

Gerrit-MessageType: comment