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

fix integration test 2.9 #551

Closed
wants to merge 2 commits into from

Conversation

abikouo
Copy link
Contributor

@abikouo abikouo commented Dec 12, 2022

SUMMARY

fix the following error with integration testing on ansible 2.9

"Traceback (most recent call last):\n  File \"/home/zuul-worker/.ansible/tmp/ansible-tmp-1670848053.522889-37466-177335097386880/AnsiballZ_test_inventory_read_credentials.py\", line 116, in <module>\n    _ansiballz_main()\n  File \"/home/zuul-worker/.ansible/tmp/ansible-tmp-1670848053.522889-37466-177335097386880/AnsiballZ_test_inventory_read_credentials.py\", line 108, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/zuul-worker/.ansible/tmp/ansible-tmp-1670848053.522889-37466-177335097386880/AnsiballZ_test_inventory_read_credentials.py\", line 54, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.test_inventory_read_credentials', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib64/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_test_inventory_read_credentials_payload_set5jnfm/ansible_test_inventory_read_credentials_payload.zip/ansible/modules/test_inventory_read_credentials.py\", line 140, in <module>\n  File \"/tmp/ansible_test_inventory_read_credentials_payload_set5jnfm/ansible_test_inventory_read_credentials_payload.zip/ansible/modules/test_inventory_read_credentials.py\", line 136, in main\n  File \"/tmp/ansible_test_inventory_read_credentials_payload_set5jnfm/ansible_test_inventory_read_credentials_payload.zip/ansible/modules/test_inventory_read_credentials.py\", line 98, in __init__\n  File \"/tmp/ansible_test_inventory_read_credentials_payload_set5jnfm/ansible_test_inventory_read_credentials_payload.zip/ansible/modules/test_inventory_read_credentials.py\", line 121, in execute_module\n  File \"/home/zuul-worker/venv/lib/python3.8/site-packages/kubernetes/dynamic/client.py\", line 84, in __init__\n    self.__discoverer = discoverer(self, cache_file)\n  File \"/home/zuul-worker/venv/lib/python3.8/site-packages/kubernetes/dynamic/discovery.py\", line 224, in __init__\n    Discoverer.__init__(self, client, cache_file)\n  File \"/home/zuul-worker/venv/lib/python3.8/site-packages/kubernetes/dynamic/discovery.py\", line 48, in __init__\n    default_cachefile_name = 'osrcp-{0}.json'.format(hashlib.md5(default_cache_id, usedforsecurity=False).hexdigest())\nTypeError: openssl_md5() takes at most 1 argument (2 given)\n",

This fix aimed to resolve CI issue since the following PR is not released yet kubernetes-client/python#1955

ISSUE TYPE
  • Bugfix Pull Request

@abikouo
Copy link
Contributor Author

abikouo commented Dec 12, 2022

check ondemand

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ build-ansible-collection SUCCESS in 3m 18s

Warning:
Failed to create check run ansible/ondemand: 403 Client Error: Forbidden for url: https://api.github.com/repos/ansible-collections/kubernetes.core/check-runs

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ build-ansible-collection SUCCESS in 3m 15s
ansible-test-sanity-docker-devel FAILURE in 7m 44s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 7m 46s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 10m 28s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 10m 04s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 8m 08s
✔️ ansible-test-units-kubernetes-core-python38 SUCCESS in 6m 18s
✔️ ansible-tox-linters SUCCESS in 4m 49s
✔️ ansible-galaxy-importer SUCCESS in 3m 46s

@abikouo
Copy link
Contributor Author

abikouo commented Dec 12, 2022

check ondemand

@softwarefactory-project-zuul
Copy link

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ build-ansible-collection SUCCESS in 3m 14s
✔️ ansible-test-splitter SUCCESS in 2m 22s
integration-kubernetes.core-devel-1 FAILURE in 45m 51s (non-voting)
✔️ integration-kubernetes.core-devel-2 SUCCESS in 26m 21s (non-voting)
⚠️ integration-kubernetes.core-devel-3 SKIPPED (non-voting)
integration-kubernetes.core-milestone-1 FAILURE in 45m 38s
✔️ integration-kubernetes.core-milestone-2 SUCCESS in 27m 14s
⚠️ integration-kubernetes.core-milestone-3 SKIPPED
integration-kubernetes.core-2.9-1 FAILURE in 46m 31s
✔️ integration-kubernetes.core-2.9-2 SUCCESS in 27m 15s
⚠️ integration-kubernetes.core-2.9-3 SKIPPED
integration-kubernetes.core-2.10-1 FAILURE in 46m 12s
✔️ integration-kubernetes.core-2.10-2 SUCCESS in 26m 23s
⚠️ integration-kubernetes.core-2.10-3 SKIPPED
integration-kubernetes.core-with-turbo-1 FAILURE in 46m 07s
✔️ integration-kubernetes.core-with-turbo-2 SUCCESS in 26m 20s
⚠️ integration-kubernetes.core-with-turbo-3 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 11s

Warning:
Failed to create check run ansible/ondemand: 403 Client Error: Forbidden for url: https://api.github.com/repos/ansible-collections/kubernetes.core/check-runs

@abikouo
Copy link
Contributor Author

abikouo commented Dec 12, 2022

merged into #549

@abikouo abikouo closed this Dec 12, 2022
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.

1 participant