← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2052509] Re: [CI][ovs/ovn sqlalchemy master] jobs broken with Exception: Not enough arguments given

 

Reviewed:  https://review.opendev.org/c/openstack/devstack/+/908572
Committed: https://opendev.org/openstack/devstack/commit/4ddd456dd3e71bcdf9a02a12dd5914b82ec48e91
Submitter: "Zuul (22348)"
Branch:    master

commit 4ddd456dd3e71bcdf9a02a12dd5914b82ec48e91
Author: Slawek Kaplonski <skaplons@xxxxxxxxxx>
Date:   Fri Feb 9 14:11:44 2024 +0100

    Add support for the pyproject.toml file in setup with constraints
    
    In the _setup_package_with_constraints_edit name of the package was
    always discovered from the setup.cfg file. But as some projects
    implements PEP-621 (see [1] for the SQLAlchemy for example) it is not
    enough now.
    This patch adds parsing pyproject.toml file also if name is not found in
    the setup.cfg file.
    
    [1] https://github.com/sqlalchemy/sqlalchemy/commit/a8dbf8763a8fa2ca53cc01033f06681a421bf60b
    
    Closes-Bug: #2052509
    Change-Id: Iee9262079d09a8bd22cd05a8f17950a41a0d1f9d


** Changed in: devstack
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2052509

Title:
  [CI][ovs/ovn sqlalchemy master] jobs broken with Exception: Not enough
  arguments given

Status in devstack:
  Fix Released
Status in neutron:
  In Progress

Bug description:
  Fails like:-
  2024-02-06 02:28:34.618579 | controller | ++ inc/python:_setup_package_with_constraints_edit:400 :   cd /opt/stack/sqlalchemy
  2024-02-06 02:28:34.621804 | controller | ++ inc/python:_setup_package_with_constraints_edit:400 :   pwd
  2024-02-06 02:28:34.624859 | controller | + inc/python:_setup_package_with_constraints_edit:400 :   project_dir=/opt/stack/sqlalchemy
  2024-02-06 02:28:34.627646 | controller | + inc/python:_setup_package_with_constraints_edit:402 :   '[' -n /opt/stack/requirements ']'
  2024-02-06 02:28:34.630146 | controller | + inc/python:_setup_package_with_constraints_edit:406 :   local name
  2024-02-06 02:28:34.633640 | controller | ++ inc/python:_setup_package_with_constraints_edit:407 :   awk '/^name.*=/ {print $3}' /opt/stack/sqlalchemy/setup.cfg
  2024-02-06 02:28:34.639338 | controller | + inc/python:_setup_package_with_constraints_edit:407 :   name=
  2024-02-06 02:28:34.641840 | controller | + inc/python:_setup_package_with_constraints_edit:409 :   /opt/stack/requirements/.venv/bin/edit-constraints /opt/stack/requirements/upper-constraints.txt --
  2024-02-06 02:28:34.784286 | controller | Traceback (most recent call last):
  2024-02-06 02:28:34.784331 | controller |   File "/opt/stack/requirements/.venv/bin/edit-constraints", line 10, in <module>
  2024-02-06 02:28:34.784449 | controller |     sys.exit(main())
  2024-02-06 02:28:34.784484 | controller |   File "/opt/stack/requirements/.venv/lib/python3.10/site-packages/openstack_requirements/cmds/edit_constraint.py", line 66, in main
  2024-02-06 02:28:34.784629 | controller |     _validate_options(options, args)
  2024-02-06 02:28:34.784661 | controller |   File "/opt/stack/requirements/.venv/lib/python3.10/site-packages/openstack_requirements/cmds/edit_constraint.py", line 47, in _validate_options
  2024-02-06 02:28:34.784783 | controller |     raise Exception("Not enough arguments given")
  2024-02-06 02:28:34.784821 | controller | Exception: Not enough arguments given
  2024-02-06 02:28:34.805546 | controller | + inc/python:_setup_package_with_constraints_edit:1 :   exit_trap
  2024-02-06 02:28:34.808305 | controller | + ./stack.sh:exit_trap:549                 :   local r=1

  Example log:-
  https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_22d/periodic/opendev.org/openstack/neutron/master/neutron-
  ovs-tempest-with-sqlalchemy-master/22dfd7f/job-output.txt

  Builds:- https://zuul.openstack.org/builds?job_name=neutron-ovs-
  tempest-with-sqlalchemy-master&job_name=neutron-ovn-tempest-with-
  sqlalchemy-master

  
  Broken since https://github.com/sqlalchemy/sqlalchemy/commit/a8dbf8763a8fa2ca53cc01033f06681a421bf60b

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/2052509/+subscriptions



References