61 Commits

Author SHA1 Message Date
Jan Jasek
250ef34135 pytest-based selenium tests switch zuul job to voting
Change-Id: Idcb18f53301e9cd7e0bb47540a749f38c1d9f626
2024-04-19 09:58:04 +02:00
Zuul
3092faf720 Merge "pytest-based selenium tests : Add non-voting pytest-ui job" 2024-04-08 22:58:11 +00:00
Ashish Gupta
88c6fd0dfb pytest-based selenium tests : Add non-voting pytest-ui job
This patch adds a non-voting zuul job for pytest-based UI tests

Change-Id: Iaea9604e99df0db520c8a4358fcefb91e9ab7064
2024-04-08 06:48:55 +00:00
manchandavishal
f36b95db4f Make "horizon-tox-python3-django42" job voting
horizon now supports Django 4.2 version. So
this patch make ""horizon-tox-python3-django42" job
as voting.

Change-Id: I09e50fdede1003fe9a94d129dffe03d224e52e50
2024-01-17 19:28:25 +05:30
manchandavishal
10ed30ebd8 Drop Nodejs v18 job
As nodejs v20 job is passing in horizon and all horizon
plugins [1]. So we didn't require the nodejs v18 job.

This patch removes the nodejs v18 job definition from
``.zuul.d/nodejs-jobs.yaml`` and other nodejs v18 job
references.

[1] https://review.opendev.org/c/openstack/horizon/+/904934

Change-Id: I3a27799b4864c572a2ef7bf7477ea2b21eb8f395
2024-01-09 03:49:29 +00:00
Zuul
12644333d5 Merge "Setup project template for nodejs v20 jobs" 2023-11-22 17:15:24 +00:00
manchandavishal
13910d7ad0 Setup project template for nodejs v20 jobs
This patch defines job for nodejs v20 which is current
LTS version of nodejs and also, the runtime for the 2024.1
cycle[1]. Nodejs v18 is in maintenance phase[2].

The next step is to remove nodejs v18
jobs once nodejs v20 job passes for the horizon and its plugins.

[1] https://review.opendev.org/c/openstack/governance/+/900224
[2] https://nodejs.org/en/about/previous-releases
[3] https://github.com/nodejs/release#release-schedule

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/901027
Change-Id: I199f75f94e46cd91ce1bc77cb6d63df20ac98899
2023-11-15 17:25:02 +05:30
manchandavishal
ec8bbeaf3c Add non-voting pytest-based job in the CI job
This patch adds a non-voting job 'horizon-integration-pytest'.
It is failing as of now but we are planning to fix it asap.

Change-Id: I3130314be0dfa04fbb5245d0e15e0ab299f2b543
2023-11-07 16:48:16 +05:30
Akihiro Motoki
40e416b8fc Add unit tests with Django 4.2
Django 4.2 is our primary version in 2023.2 (Caracal),
so we need to start testing with Django 4.2.
Once all unit tests work, let's switch it to voting.

PYTHONWARNINGS in tox.ini is also simplified. We had three similar
variants of PYTHONWARNINGS in tox.ini. There is no need to use a
different value for py3 and py39 as we already use py39 by default.
PendingDeprecationWarning was added to hide Django deprecation
warnings, so I keep it now. On the other hand I think we should
handle Django deprecation warnings much earlier to sync Django
releases more promptly, so TODO comment is added.

Change-Id: I530be8fde637a912968b4ce7dbc94a4108dc50df
2023-10-19 22:13:22 +09:00
manchandavishal
5034d8408e Make horizon-integration-tests job voting again
This patch makes "horizon-integration-tests" job voting
again. It was changed to non-voting so that patch that
update Xstatic-jQuery upper bound, update cirros version
for the horizon-integration job and a few other changes
which are required to fix the horizon-integration can get merged.

The patch [1] is already merged and the upper bound in
openStack/requirement also got updated[2]. So let's make
horizon-integration job voting again.

[1] https://review.opendev.org/c/openstack/horizon/+/887548
[2] https://review.opendev.org/c/openstack/requirements/+/887933

Change-Id: I0059c2cd47e6b540306337caa3e0f826f3b755a9
2023-07-10 21:31:09 +05:30
Radomir Dopieralski
480aba9422 Bump XStatic-JQuery to make it work with jquery-migrate
The jquery-migrate 3 requires newer jquery than we have.
Also added all the other fixes for integration tests to see
if that resolves our problems.

This needs to be merge first so that patch which update the
upper bump of XStatic-JQuery in openstack/requiremensts [1]
can be merged.

Note: This patch also make horizon-integration job to non-voting
so that we can merge this patch and once openstack/requirements
[1] patch is merged, we will make horizon-integartion job voting
again

[1] https://review.opendev.org/c/openstack/requirements/+/887933

Co-Author-By: manchandavishal <manchandavishal143@gmail.com>

Change-Id: I9b8a5e8abe734e7fd99aa0066ede0377e34fbf44
2023-07-10 18:15:18 +05:30
manchandavishal
3c5006efb4 Rename x/xstatic-angular-fileupload->openstack/xstatic-angular-fileupload
xstatic-angular-fileupload pypi moved under openstack namespace.
It is already renamed in openstack/project-config [1].
This patch do the same in ``.zuul.d/xstatic-master.yaml`` file.

[1] https://review.opendev.org/c/openstack/project-config/+/873843

Change-Id: I41cf26f7586908796e339bb78f81c93cf5911ce2
2023-05-24 03:55:17 +00:00
Takashi Kajinami
a01dc74139 Remove usage of openstack/xstatic-font-awesome
The repository has been retired and will be maintained in an external
organization[1]. Because we install the library from Pypi, we no longer
need to clone it from opendev repository.

[1] https://github.com/xstatic-py/xstatic-font-awesome

Change-Id: I9c75b084705dfdc6df52aca1659f89444c8a1728
2023-02-27 11:27:02 +09:00
manchandavishal
203ab558ab Update nodejs version in parent job of "horizon-cross-ironic-ui-npm"
horizon and ironic-ui already migrated to nodejs18 but parent
job of 'horizon-cross-ironic-ui-npm' still uses nodejs16.
So this patch updates nodejs16->nodejs18 version in parent job
of "horizon-cross-ironic-ui-npm".

Note: It also updates the python version to py39->py310
in parent jobs of "horizon-cross-manila-ui-python" and
"horizon-cross-heat-dashboard-python" as per the antelope runtime.

Change-Id: I4b34661e91cb307df49f7282196cca8961d7eac1
2023-01-17 04:58:14 +00:00
Zuul
217d94d333 Merge "Set Nodeset to debian-bullseye for npm, integration and selenium job" 2022-12-04 03:23:18 +00:00
manchandavishal
9a43c7964d Set Nodeset to debian-bullseye for npm, integration and selenium job
This patch changes nodeset to "debian-bullseye" from "ubuntu-focal" for
horizon-selenium-headless, horizon-nodejs, and horizon-integration-tests
jobs. Debian bullseye is also a runtime for the 2023.1 cycle as
mentioned here [1]. Right now if we change nodeset to "ubuntu-jammy"
all of the above jobs start failing. One possible solution to run these
jobs on "ubuntu-jammy" nodeset is to install firefox as a deb. package
instead of using snap as discussed here [2]. We can switch nodeset to
"ubuntu-jammy" in the future once the firefox issue with snap is fixed [3].

Also geckodriver version is upadted to latest(i.e. v0.32.0) to include
latest bug fix.

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html
[2] https://meetings.opendev.org/irclogs/%23openstack-infra/%23openstack-infra.2022-11-23.log.html#t2022-11-23T14:15:08
[3] https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/865459

Related-Bug: #1996638

Change-Id: Ic50fbb8b29fc5dec42d1a5e94095c9777c7d5fb6
2022-11-29 17:00:31 +00:00
manchandavishal
c832e239ba Drop Nodejs v16 job
As nodejs v18 job is passing in horizon and all horizon
plugins [1]. So we didn't require the nodejs v16 job.

This patch removes the nodejs v16 job definition from
``.zuul.d/nodejs-jobs.yaml`` and other nodejs v16 job
references.

[1] https://review.opendev.org/c/openstack/horizon/+/865293

Change-Id: I9e791c24944f228a27813eb860080d3ea3e1449d
2022-11-25 15:30:48 +05:30
Zuul
2f6b1e906a Merge "Setup project template for nodejs v18 jobs" 2022-11-23 22:53:47 +00:00
manchandavishal
bebc8dad2f Set Nodeset to ubuntu-focal for integration and selenium job
As openstack-tox jobs migrated from ubuntu focal to ubuntu
jammy[1]. So horizon integration and selenium-headless jobs
start failing. This patch changes the nodeset for both
these jobs to ubuntu focal as a workaround to unblock
the CI.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/861116

Related-Bug: #1996638
Change-Id: I674d7d3a8e1b34229fd5ef0285153e13324d3417
2022-11-22 18:50:35 +00:00
manchandavishal
eaed7513ce Setup project template for nodejs v18 jobs
This patch defines job for for nodejs v18 which is the
next LTS version of nodejs[1] and also, the runtime for
the 2023.1 cycle[2]. The next step is to remove nodejs v16
jobs once nodejs v18 job passes for the horizon and its plugins.

[1] https://nodejs.org/en/about/releases/
[2] https://governance.openstack.org/tc/reference/runtimes/2023.1.html#node-js-runtime-for-2023-1

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/861876
Change-Id: I8caabe248b4a454f245aa2eedf36b2d63fd90e92
2022-11-03 07:24:48 +00:00
b832048287 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I57d369e1e1a84a2685e3eb157699e1262c996400
2022-09-21 12:08:30 +00:00
Zuul
fee268dd89 Merge "Drop Nodejs14 job" 2022-09-19 18:21:35 +00:00
Zuul
c28cdb8afb Merge "Drop lower-constraints.txt and its testing" 2022-08-18 18:32:26 +00:00
Zuul
b214ad471e Merge "Update nodejs version in parent job of "horizon-cross-ironic-ui-npm"" 2022-08-17 17:09:26 +00:00
Zuul
ea9137f63d Merge "zuul: Declare queue at top level" 2022-07-20 06:01:48 +00:00
Takashi Kajinami
4212950a4a zuul: Declare queue at top level
Zuul deprecated declaring shared queues at a pipeline level with
release 4.1.0[1]. This updates the job definition to use the top level
declaration instead.

See [2] for details.

[1] https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes
[2] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: Ie63dd3b161cb8fd9be89002027d699ce2c4a67a5
2022-06-13 09:53:35 +09:00
manchandavishal
b5c2b41c43 Update nodejs version in parent job of "horizon-cross-ironic-ui-npm"
horizon and ironic-ui already migrated to nodejs16 but parent
job of 'horizon-cross-ironic-ui-npm' still uses nodejs10.
So this patch updates nodejs10->nodejs16 version in parent job
of "horizon-cross-ironic-ui-npm".

Change-Id: Iff8b60f79de26fb22f014ebc9f15d12dcb89f822
2022-06-08 16:29:29 +00:00
manchandavishal
f6eea0be23 Drop Nodejs14 job
As horizon already used nodejs16 job[1]. So we didn't require
the nodejs14 job. This patch removes the nodejs14 job definition
from ``.zuul.d/nodejs-jobs.yaml``. Also, a series of patches for
horizon plugins to use the nodejs16 job is already up [2].

[1] https://review.opendev.org/c/openstack/horizon/+/831929
[2] https://review.opendev.org/q/topic:migrate-to-nodejs16

Change-Id: I170520ad99176e8ef31d8f52a3b012339fd80837
2022-06-08 13:24:28 +00:00
manchandavishal
68e12b8100 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ia315117f43a299fc68f3a15db59ddae37f8d30cf
2022-06-08 12:38:07 +00:00
Akihiro Motoki
ee80782504 Drop py36 and py37 support
Python runtimes for Zed are 3.8, 3.9 and optionally 3.10 [1][2],
so tox envs in tox.ini are updated accordingly.

Declare python_requires >=3.8 in setup.cfg
python_requires are declared in many projects during dropping
python 2.7 support. It is good to follow the convention and
it also clarifies our python interpreter requirement.

This commit also cleans up python2.7 related stuffs in setup.py.
Both are related to the supported versions of python,
so I made both changes in a single commit.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html
[2] b740b42fb1/zuul.d/project-templates.yaml (L542)

Change-Id: I4161816fd1fec19a3834cc7d994b3f761e1ab2ce
Closes-Bug: #1960887
2022-06-06 17:59:13 +09:00
Zuul
2bb253800a Merge "Setup project template for nodejs v16 jobs" 2022-05-19 10:30:54 +00:00
manchandavishal
60692f56d2 Setup project template for nodejs v16 jobs
This patch defines a project template "horizon-nodejs-jobs"
for nodejs v16 jobs which is the next LTS version of nodejs[1]
and also, the runtime for the Zed cycle[2]. Next step is to
the horizon plugins use this template to run nodejs v16 jobs
and once it's pass in all horizon plugins we can remove
nodejs v14 jobs completely.

This patch also do few cleaups:
• remove nodejs v14 job to run on horizon gate because we don't
  need to run both nodejs v14 and nodejs v16 jobs for horizon.
• replace nodejs v14 experimental xstatic job with nodejs v16 job.
• replace horizon-nodejs14-run-test periodic job with nodejs v16.

[1] https://nodejs.org/en/about/releases/
[2] https://governance.openstack.org/tc/reference/runtimes/zed.html#node-js-runtime-for-zed

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/831912
Change-Id: Ic11f2c3bd7a6a09c8fa6fb7a457e83e889deed6b
2022-04-28 10:45:02 +05:30
Zuul
7284b4599e Merge "Add Python3 zed unit tests" 2022-03-26 07:38:38 +00:00
Akihiro Motoki
35a490f4ec Do not assume keystone admin endpoint
keystone does not distinguish public and admin endpoints since
Train [1], so there is no need to use a separate endpoint for
keystone admin operations. admin endpoint still can be configured
but there is no functional difference anymore from other endpoints.
We do not need to require admin endpoint and can use an endpoint
specified by OPENSTACK_ENDPOINT_TYPE for all API operations.

This commit reverts commit f9bab3fe195eb13635aa70cb910d94df98d66cf3
as we no longer need the workaround.

[1] https://review.opendev.org/c/openstack/keystone/+/664246

Closes-Bug: #1950659
Change-Id: I2660fd2df8081e1d2d9c84626037f94bd9d137a5
2022-03-25 20:06:49 +09:00
6922e862f7 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ib9a58c104aa0ec116ad86467b4d7b6ab4cdf7303
2022-03-23 16:06:53 +00:00
Zuul
7ba6f8519b Merge "Drop Django 2.2 support" 2022-01-15 08:36:43 +00:00
manchandavishal
8918bf751d Drop Django 2.2 support
Django 2.2 support was dropped. Django 2.2 ends its extended support
in April 2022[1]. Considering this, horizon dropped Django 2.2 support
and use Django 3.2 as default version of Django.

It also updates the python version from py38 to py39 for
"horizon-non-primary-django-jobs" and
"horizon-tox-python3-django" project template because py36
and py39 are now runtime for the Yoga cycle[2]. So I have updated it to
py39.

[1] https://www.djangoproject.com/download/
[2] https://review.opendev.org/c/openstack/governance/+/820195

Change-Id: I8886f12f7e51b721ac5123070086d5dcfefe4e72
2022-01-05 19:26:56 +00:00
manchandavishal
7249e7c1dc Updating python testing as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are
handled by the job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit makes other required changes in ``.zuul.d/cross-jobs.yaml``,
tox.ini and update the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ie66460c19e5e670e9be3b1262d5f06e821078be9
2021-12-15 13:06:16 +05:30
manchandavishal
f9bab3fe19 Create Keystone admin endpoint for horizon integartion job
CI job "horizon-integration-tests" needs an admin endpoint. Since
[1] devstack does not create it by default. This patch enables it
in this job now.

[1] https://review.opendev.org/c/openstack/devstack/+/777345

Related-Bug: #1950659
Change-Id: I5a81344ea3aaa182d8b4d6a15a6240d3c99557cf
2021-11-11 20:01:28 +05:30
Akihiro Motoki
9d1bb3626b Allow both Django 2.2 and 3.2 for smooth transition
I believe we need the following steps and it is what I did in past
when we bump the Django minimum version.

1. (already done) update global-requirements.txt to allow horizon to
   update requirements.txt to include Django 3.2.
2. specify the required Django version which includes both 2.2 and 3.2
   (at this point upper-constraints uses 2.2)
3. update upper-constraints.txt in the requirements repo to use Django 3.2
4. bump the min version of Django in horizon

(optionally) update non-primary-django tests to include non-primary versions of
Django. It seems you drops 2.2 support together when we support 3.2, so perhaps
this step is not the case though.

https://review.opendev.org/c/openstack/horizon/+/811412 directly updated
the min version to Django 3.2 which is incompatible with the global
upper-constraints.txt.
To avoid this, https://review.opendev.org/c/openstack/horizon/+/815206 made
almost all tests non-voting. I am not a fan of such approach and believe
there is a way to make the transition of Django version more smoothly.

---

This commit reverts the zuul configuration changes in
https://review.opendev.org/c/openstack/horizon/+/815206 and
https://review.opendev.org/c/openstack/horizon/+/811412.

horizon-tox-python3-django32 is voting now as we are making it
the default version.

Change-Id: I60bb672ef1b197e657a8b3bd86d07464bcb1759f
2021-10-26 09:57:06 +09:00
Zuul
ab2021eb1d Merge "Bump Django version to Current LTS Version" 2021-10-25 13:17:15 +00:00
manchandavishal
7bfb56010d Bump Django version to Current LTS Version
This patch update Django version to the current LTS version i.e. 3.2.
Django 2.2 is going to end its extended support by April 2022[1].
horizon and all its plugins already support Django3.2 version, So
let's make this the default version. It also bump few other packages
version in lower-constraints.txt to make it work with Django 3.2.

Note: It also change 'openstack-tox-py38' job to non-voting
which I will revert in follow-up patch once this patch is merged.

[1] https://www.djangoproject.com/download/

Change-Id: I49e323b76ad2c2e680c3f133d0f219d850f7908c
2021-10-25 17:39:21 +05:30
manchandavishal
4ef292b0cd Skip or make horizon failed gate job to non-voting to merge Django 3.2
This patch is to skip or make most of the horizon gate jobs non-voting
because all these jobs are failing after [1] merged, So we have
to skip these jobs for now so that we can merge [2], [3]
and after that, we will revert this patch.

[1] https://review.opendev.org/c/openstack/requirements/+/813405
[2] https://review.opendev.org/c/openstack/horizon/+/811412
[3] https://review.opendev.org/c/openstack/requirements/+/815096

Change-Id: Ib0ba0c4448a74c5a0ee1c005704f2e889f284481
2021-10-25 13:00:25 +05:30
66091d7b2f Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I1e39e7abea536b5054557eb725069583b7504e0f
2021-09-23 14:14:34 +00:00
Akihiro Motoki
f3d2b9d540 Preparation for Django 3.2 support
This commit adds a non-voting unit test job with Django 3.2.

Jobs with Django 3.0 and 3.1 are dropped now.
They were introduced before Django 3.2 was released.
Django 3.0 reached EOL and Django 3.1 will reach EOL this December.
Django 3.2 is an LTS version so testing with Django 3.2 is enough.

Change-Id: Ic6ba0ea281b287b7f4762f92e2e81a6fd654da8f
2021-09-16 16:43:17 +09:00
Zuul
49b79a6f30 Merge "Preparation for Django 3.0 and 3.1 support (1)" 2021-07-29 14:52:45 +00:00
Zuul
f706cffb95 Merge "Drop nodejs10 job" 2021-07-29 08:44:22 +00:00
Zuul
a9d83dda1c Merge "Setup project-template for nodejs14 jobs" 2021-04-29 07:19:19 +00:00
manchandavishal
8b59bc4370 Drop nodejs10 job
As we added nodejs14 support in
I423e8bbec21ab1d52a0a840d779723aa92678735 change.
We can now drop nodejs10 or related job as it is EOL.

Change-Id: I54e909d2ba0c6d751247809373166c37f8baeb77
2021-04-12 18:50:26 +05:30
manchandavishal
3f2adabf16 Setup project-template for nodejs14 jobs
Nodejs10 is going to EOL by April 2021 [1].
So this patch defines a template for nodejs14 jobs
which is next LTS vesrion of nodejs. Once we migrate
to nodejs14 version we can drop nodejs10 support.

[1] https://nodejs.org/en/about/releases/

Change-Id: I423e8bbec21ab1d52a0a840d779723aa92678735
2021-04-12 18:44:39 +05:30