openshift-eng / elliott

Apache License 2.0
15 stars 28 forks source link

cli/common: make brew-event an int #348

Closed sosiouxme closed 2 years ago

sosiouxme commented 2 years ago

the brew API won't accept it as a string.

koji.GenericError: Invalid event: '45837595'

openshift-bot commented 2 years ago

Build #1

GLOB sdist-make: /mnt/workspace/jenkins/working/art-tools_elliott_PR-348/setup.py
py36 create: /mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36
py36 installdeps: -rrequirements-dev.txt
py36 inst: /mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/.tmp/package/1/rh-elliott-2.0.14.dev32+g08dee5e.zip
py36 installed: aiodns==3.0.0,aiohttp==3.8.1,aiosignal==1.2.0,appdirs==1.4.4,astroid==2.11.5,async-timeout==4.0.2,asynctest==0.13.0,attrs==21.4.0,Brotli==1.0.9,cached-property==1.5.2,cchardet==2.1.7,certifi==2022.5.18.1,cffi==1.15.0,charset-normalizer==2.0.12,click==8.0.4,contextvars==2.4,coverage==5.5,cryptography==37.0.2,dataclasses==0.8,decorator==5.1.1,defusedxml==0.7.1,dill==0.3.4,distlib==0.3.4,errata-tool==1.27.1,filelock==3.4.1,flake8==3.8.4,flexmock==0.11.3,frozenlist==1.2.0,future==0.18.2,gssapi==1.7.3,idna==3.3,idna-ssl==1.1.0,immutables==0.18,importlib-metadata==4.8.3,importlib-resources==5.4.0,iniconfig==1.1.1,isort==5.10.1,jeepney==0.7.1,jira==3.2.0,jsonpath-rw==1.4.0,keyring==23.4.1,koji==1.29.0,krb5==0.3.0,lazy-object-proxy==1.7.1,mccabe==0.6.1,mock==4.0.3,multidict==5.2.0,mypy==0.961,mypy-extensions==0.4.3,oauthlib==3.2.0,packaging==21.3,platformdirs==2.4.0,pluggy==1.0.0,ply==3.11,py==1.11.0,pycares==4.1.2,pycodestyle==2.6.0,pycparser==2.21,pyflakes==2.2.0,pygit2==1.6.1,pylint==2.13.9,pyparsing==3.0.9,pyspnego==0.5.2,pytest==6.2.5,python-bugzilla==3.2.0,python-dateutil==2.8.2,PyYAML==6.0,requests==2.27.1,requests-gssapi==1.2.3,requests-kerberos==0.14.0,requests-oauthlib==1.3.1,requests-toolbelt==0.9.1,rh-elliott @ file:///mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/.tmp/package/1/rh-elliott-2.0.14.dev32%2Bg08dee5e.zip,ruamel.yaml==0.17.21,ruamel.yaml.clib==0.2.6,SecretStorage==3.3.2,semver==2.13.0,setuptools-scm==6.4.2,six==1.16.0,tenacity==8.0.1,toml==0.10.2,tomli==1.2.3,tox==3.20.1,typed-ast==1.5.4,typing-extensions==4.1.1,urllib3==1.26.9,virtualenv==20.2.2,wrapt==1.14.1,yarl==1.7.2,zipp==3.6.0
py36 run-test-pre: PYTHONHASHSEED='2628158296'
py36 run-test: commands[0] | coverage run --branch --source elliottlib -m unittest discover -t . -s tests/
/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/spnego/_ntlm_raw/crypto.py:22: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.hazmat.backends import default_backend
...........For flaw bug 5 - these tracker bugs do not have a valid whiteboard component value: [1] Cannot reliably determine if flaw bug is first fix. Check tracker bugs manually
..................................................changed 123 from status1 to status2
.123 is already on status1
.changed 123 from status1 to status2
..changed 123 from status1 to status2
.123 is already on status1
.changed 123 from status1 to status2
................../mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib64/python3.6/site-packages/aiohttp/connector.py:777: DeprecationWarning: The object should be created within an async function
  loop=loop,
/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib64/python3.6/site-packages/aiohttp/connector.py:782: DeprecationWarning: The object should be created within an async function
  resolver = DefaultResolver(loop=self._loop)
........./mnt/workspace/jenkins/working/art-tools_elliott_PR-348/elliottlib/errata_async.py:41: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
  resp.raise_for_status()
........................F.................F.F.................Retrieving bugs for advisory ['12345']
...
======================================================================
FAIL: test_find_bugs_sweep_report_jira (tests.test_find_bugs_sweep_cli.FindBugsSweepTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/tests/test_find_bugs_sweep_cli.py", line 192, in test_find_bugs_sweep_report_jira
    self.fail(t)
AssertionError: Traceback (most recent call last):

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/testing.py", line 408, in invoke
    return_value = cli.main(args=args or (), prog_name=prog_name, **extra)

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/lib/python3.6/site-packages/click/decorators.py", line 38, in new_func
    return f(get_current_context().obj, *args, **kwargs)

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/elliottlib/cli/find_bugs_sweep_cli.py", line 119, in find_bugs_sweep_cli
    JIRABugTracker(JIRABugTracker.get_config(runtime)))

  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/elliottlib/bzutil.py", line 287, in get_config
    return runtime.gitdata.load_data(key='bug').data

AttributeError: 'Runtime' object has no attribute 'gitdata'

======================================================================
FAIL: test_remove_all (tests.test_remove_bugs_cli.RemoveBugsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/tests/test_remove_bugs_cli.py", line 72, in test_remove_all
    self.assertIn("Found 2 bugs", result.output)
AssertionError: 'Found 2 bugs' not found in ''

======================================================================
FAIL: test_remove_bugzilla_bug (tests.test_remove_bugs_cli.RemoveBugsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/workspace/jenkins/working/art-tools_elliott_PR-348/tests/test_remove_bugs_cli.py", line 27, in test_remove_bugzilla_bug
    self.assertIn("Found 2 bugs", result.output)
AssertionError: 'Found 2 bugs' not found in ''

----------------------------------------------------------------------
Ran 156 tests in 1.542s

FAILED (failures=3)
ERROR: InvocationError for command /mnt/workspace/jenkins/working/art-tools_elliott_PR-348/.tox/py36/bin/coverage run --branch --source elliottlib -m unittest discover -t . -s tests/ (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py36: commands failed
thegreyd commented 2 years ago

/lgtm

thegreyd commented 2 years ago

I'm fixing the ^ test failures in https://github.com/openshift/elliott/pull/347