Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-3891

BZ#2225451 Error parsing tox.ini for OSP 18 jobs

XMLWordPrintable

    • Moderate

      Hello,

      we observe a failure in PEP8 job executed as part of Component CI for OSP 18

      ```
      2023-07-20 00:38:10.955922 | TASK [tox : Run tox without tests]
      2023-07-20 00:38:21.523038 | container | using tox.ini: /home/zuul/src/code.engineering.redhat.com/oslo.serialization/tox.ini (pid 663)
      2023-07-20 00:38:21.540945 | container | Traceback (most recent call last):
      2023-07-20 00:38:21.540999 | container | File "/usr/bin/tox", line 8, in <module>
      2023-07-20 00:38:21.541012 | container | sys.exit(cmdline())
      2023-07-20 00:38:21.541020 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/session/_init_.py", line 44, in cmdline
      2023-07-20 00:38:21.542440 | container | main(args)
      2023-07-20 00:38:21.542463 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/session/_init_.py", line 65, in main
      2023-07-20 00:38:21.542491 | container | config = load_config(args)
      2023-07-20 00:38:21.542502 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/session/_init_.py", line 81, in load_config
      2023-07-20 00:38:21.542545 | container | config = parseconfig(args)
      2023-07-20 00:38:21.542554 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init_.py", line 299, in parseconfig
      2023-07-20 00:38:21.542629 | container | ParseIni(config, config_file, content)
      2023-07-20 00:38:21.542638 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init.py", line 1323, in __init_
      2023-07-20 00:38:21.542871 | container | raise tox.exception.ConfigError(
      2023-07-20 00:38:21.542888 | container | tox.exception.ConfigError: ConfigError: cover failed with not enough values to unpack (expected 2, got 1) at Traceback (most recent call last):
      2023-07-20 00:38:21.542898 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init_.py", line 1299, in run
      2023-07-20 00:38:21.542906 | container | results[name] = cur_self.make_envconfig(name, section, subs, config)
      2023-07-20 00:38:21.542915 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init_.py", line 1479, in make_envconfig
      2023-07-20 00:38:21.542924 | container | res = meth(env_attr.name, env_attr.default, replace=replace)
      2023-07-20 00:38:21.542932 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init_.py", line 1718, in getdict_setenv
      2023-07-20 00:38:21.542940 | container | definitions = self._getdict(value, default=default, sep=sep, replace=replace)
      2023-07-20 00:38:21.542954 | container | File "/opt/tox/lib64/python3.9/site-packages/tox/config/_init_.py", line 1738, in _getdict
      2023-07-20 00:38:21.542962 | container | name, value = line.split("=", 1)
      2023-07-20 00:38:21.542970 | container | ValueError: not enough values to unpack (expected 2, got 1)
      ```

      I suspect the problem may be related to wrong indentation in line 24 in tox.ini file.

      You can use this change for debugging the issue.
      https://code.engineering.redhat.com/gerrit/c/oslo.serialization/+/445370

      Yours,
      Szymon

              herveberaud Hervé Beraud (Inactive)
              jira-bugzilla-migration RH Bugzilla Integration
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: