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

[Caracal] Migrate github workflow and Fix Tests #142

Draft
wants to merge 10 commits into
base: stable/2024.1-m3
Choose a base branch
from

Conversation

sven-rosenzweig
Copy link
Contributor

Change python version and basebranch according to the Caracal release to
version 3.10 and 2024.1-m3.

Loosen constraints for the installation of neutron and
neutron-lib in the test-requirements.txt as the upperbound was set to
Neutron Yoga release. Within the tox configuration request the
installation of yoga from the current stable/2024.1-m3 branch.

For the DB unit tests remove the subnetpool as this is not needed for
a subnet creation. Without the subnetpool, the db unit test test_port_sg
fails as the result of a DB query returns the cartesian product between
the tables SecurityGroupPortBindings and StandardAttributes. Thus the
length of the result set is lowered from 9 to 8.
This is a minor bug which will be fixed in a separate PR.

@sven-rosenzweig sven-rosenzweig force-pushed the migrate_tox_fix_unit_tests branch 5 times, most recently from 1e66afc to 11df9b4 Compare November 19, 2024 13:42
Copy link

github-actions bot commented Nov 19, 2024

Name                                                                      Stmts   Miss  Cover
---------------------------------------------------------------------------------------------
networking_nsxv3/api/rpc.py                                                 233    110    53%
networking_nsxv3/common/config.py                                            16      0   100%
networking_nsxv3/common/constants.py                                         23      0   100%
networking_nsxv3/common/locking.py                                           35     11    69%
networking_nsxv3/common/synchronization.py                                  182     51    72%
networking_nsxv3/db/db.py                                                   119     19    84%
networking_nsxv3/extensions/nsxtoperations.py                               110     40    64%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/agent.py                   166     53    68%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/cli.py                     302    199    34%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/client_nsx.py              187     47    75%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/constants_nsx.py             6      0   100%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/extensions/firewall.py      27      0   100%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/provider.py                169     10    94%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/provider_nsx_policy.py     759    110    86%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/realization.py             203     33    84%
networking_nsxv3/plugins/ml2/drivers/nsxv3/driver.py                        129     74    43%
networking_nsxv3/prometheus/exporter.py                                      19      5    74%
networking_nsxv3/services/logapi/drivers/nsxv3/driver.py                     41      1    98%
networking_nsxv3/services/qos/drivers/nsxv3/qos.py                           34      4    88%
networking_nsxv3/services/trunk/drivers/nsxv3/trunk.py                       71      3    96%
---------------------------------------------------------------------------------------------
TOTAL                                                                      2831    770    73%

@sven-rosenzweig sven-rosenzweig force-pushed the migrate_tox_fix_unit_tests branch from 11df9b4 to c80b101 Compare November 20, 2024 08:29
@sven-rosenzweig sven-rosenzweig requested review from joroaf and notandy and removed request for joroaf November 28, 2024 09:55
sven-rosenzweig and others added 7 commits November 28, 2024 11:02
Before loading the NSX-T Operation API default configuration settings
must be loaded as of part of the version migration.

Remove the subnetpool in the DB unit tests as this is not needed for
a subnet creation. Without the subnetpool, the db unit test test_port_sg
fails as the result of a DB query returns the cartesian product between
the tables SecurityGroupPortBindings and StandardAttributes. Thus the
length of the result set is lowered from 9 to 8 as there are only 8
objects with standard attributes.

This is a minor bug which will be fixed in a separate PR.
Loosen constraints for the installation of neutron and
neutron-lib in the test-requirements.txt as the upper bound was set to
Neutron Yoga release. Within the tox configuration request the
installation of yoga from the current stable/2024.1-m3 branch.
As Tox version 4 treats '#' as comments a '\' is required.

Change base branch to Caracal release. Furthermore set the base python
version to 3.10.

Update the github-runner to the latest version, as the reason for
sticking to an older version is no longer true.

Loosen constraints for the VIRTUALENV_PIP version. Sticking with pinned
version causes the tox execution to fail.
Sqlalchemy has become more strict, the second argument would
need to be a column or an expression, not another object
Apparently for sqlalchemy 2.0, using the decorators is mandatory
Apparently some time in the past, the automatic adding
of options during import have been replaced by the explicit
registration via a function call
In recent time, the automatic import of all config files
has been refactored to selective import, so we have to
do it now by hand.
@sven-rosenzweig sven-rosenzweig force-pushed the migrate_tox_fix_unit_tests branch from 16be2e5 to e72ebd5 Compare November 28, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants