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 failure from DAB #15102

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Fix failure from DAB #15102

merged 1 commit into from
Apr 11, 2024

Conversation

AlanCoding
Copy link
Member

@AlanCoding AlanCoding commented Apr 11, 2024

SUMMARY

Checks busted due to merge of ansible/django-ansible-base#282

api-tests failed with


2024-04-11T15:24:59.1730806Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/ansible_base/rest_filters/rest_framework/field_lookup_backend.py", line 68, in get_fields_from_lookup
2024-04-11T15:24:59.1731193Z     field_list, new_path = get_fields_from_path(model, path, treat_jsonfield_as_text=self.TREAT_JSONFIELD_AS_TEXT)
2024-04-11T15:24:59.1731360Z                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T15:24:59.1731857Z TypeError: TestSmartFilterQueryFromString.<lambda>() got an unexpected keyword argument 'treat_jsonfield_as_text'
ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@thedoubl3j thedoubl3j enabled auto-merge (squash) April 11, 2024 16:16
@AlanCoding
Copy link
Member Author

New CI failure here from

2024-04-11T16:24:06.5443193Z ________________ test_inventory_update_injected_content[vmware] ________________
2024-04-11T16:24:06.5444848Z [gw0] linux -- Python 3.11.7 /var/lib/awx/venv/awx/bin/python3.11
2024-04-11T16:24:06.5445990Z Traceback (most recent call last):
2024-04-11T16:24:06.5479959Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/runner.py", line 340, in from_call
2024-04-11T16:24:06.5481416Z     result: Optional[TResult] = func()
2024-04-11T16:24:06.5482395Z                                 ^^^^^^
2024-04-11T16:24:06.5483953Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/runner.py", line 240, in <lambda>
2024-04-11T16:24:06.5485610Z     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
2024-04-11T16:24:06.5486507Z             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5488259Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_hooks.py", line 501, in __call__
2024-04-11T16:24:06.5490008Z     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
2024-04-11T16:24:06.5491104Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5492585Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
2024-04-11T16:24:06.5494024Z     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
2024-04-11T16:24:06.5494910Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5496308Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 181, in _multicall
2024-04-11T16:24:06.5497492Z     return outcome.get_result()
2024-04-11T16:24:06.5498008Z            ^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5499244Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_result.py", line 99, in get_result
2024-04-11T16:24:06.5500434Z     raise exc.with_traceback(exc.__traceback__)
2024-04-11T16:24:06.5501805Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 166, in _multicall
2024-04-11T16:24:06.5502968Z     teardown.throw(outcome._exception)
2024-04-11T16:24:06.5504398Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
2024-04-11T16:24:06.5505691Z     yield from thread_exception_runtest_hook()
2024-04-11T16:24:06.5507206Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
2024-04-11T16:24:06.5508471Z     yield
2024-04-11T16:24:06.5509497Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 166, in _multicall
2024-04-11T16:24:06.5510607Z     teardown.throw(outcome._exception)
2024-04-11T16:24:06.5512029Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
2024-04-11T16:24:06.5513367Z     yield from unraisable_exception_runtest_hook()
2024-04-11T16:24:06.5514975Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
2024-04-11T16:24:06.5516303Z     yield
2024-04-11T16:24:06.5517326Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 166, in _multicall
2024-04-11T16:24:06.5518428Z     teardown.throw(outcome._exception)
2024-04-11T16:24:06.5519718Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call
2024-04-11T16:24:06.5520936Z     yield from self._runtest_for(item, "call")
2024-04-11T16:24:06.5522421Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/logging.py", line 832, in _runtest_for
2024-04-11T16:24:06.5523776Z     yield
2024-04-11T16:24:06.5524764Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 166, in _multicall
2024-04-11T16:24:06.5525812Z     teardown.throw(outcome._exception)
2024-04-11T16:24:06.5527035Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call
2024-04-11T16:24:06.5528157Z     return (yield)
2024-04-11T16:24:06.5528524Z             ^^^^^
2024-04-11T16:24:06.5529572Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 166, in _multicall
2024-04-11T16:24:06.5530692Z     teardown.throw(outcome._exception)
2024-04-11T16:24:06.5532015Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call
2024-04-11T16:24:06.5533160Z     return (yield)
2024-04-11T16:24:06.5533519Z             ^^^^^
2024-04-11T16:24:06.5534583Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
2024-04-11T16:24:06.5535683Z     res = hook_impl.function(*args)
2024-04-11T16:24:06.5536185Z           ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5537656Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call
2024-04-11T16:24:06.5538805Z     raise e
2024-04-11T16:24:06.5539901Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call
2024-04-11T16:24:06.5541019Z     item.runtest()
2024-04-11T16:24:06.5542065Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/python.py", line 1772, in runtest
2024-04-11T16:24:06.5543198Z     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
2024-04-11T16:24:06.5544457Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_hooks.py", line 501, in __call__
2024-04-11T16:24:06.5545791Z     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
2024-04-11T16:24:06.5546676Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5547937Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
2024-04-11T16:24:06.5549235Z     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
2024-04-11T16:24:06.5550050Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5551304Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 181, in _multicall
2024-04-11T16:24:06.5552391Z     return outcome.get_result()
2024-04-11T16:24:06.5552866Z            ^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5553973Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_result.py", line 99, in get_result
2024-04-11T16:24:06.5555101Z     raise exc.with_traceback(exc.__traceback__)
2024-04-11T16:24:06.5556358Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
2024-04-11T16:24:06.5557458Z     res = hook_impl.function(*args)
2024-04-11T16:24:06.5557963Z           ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5559197Z   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call
2024-04-11T16:24:06.5560360Z     result = testfunction(**testargs)
2024-04-11T16:24:06.5560865Z              ^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5562182Z   File "/awx_devel/awx/main/tests/functional/test_inventory_source_injectors.py", line 272, in test_inventory_update_injected_content
2024-04-11T16:24:06.5563500Z     task.run(inventory_update.pk)
2024-04-11T16:24:06.5564183Z   File "/awx_devel/awx/main/tasks/jobs.py", line 94, in _wrapped
2024-04-11T16:24:06.5564894Z     return f(self, *args, **kwargs)
2024-04-11T16:24:06.5565390Z            ^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5566052Z   File "/awx_devel/awx/main/tasks/signals.py", line 81, in _wrapped
2024-04-11T16:24:06.5567036Z     return f(*args, **kwargs)
2024-04-11T16:24:06.5567491Z            ^^^^^^^^^^^^^^^^^^
2024-04-11T16:24:06.5568068Z   File "/awx_devel/awx/main/tasks/jobs.py", line 665, in run
2024-04-11T16:24:06.5568755Z     raise AwxTaskError.TaskError(self.instance, rc)
2024-04-11T16:24:06.5569421Z Exception: inventory_update 1 (error) encountered an error (rc=None), please see task stdout for details.
2024-04-11T16:24:06.5570252Z ----------------------------- Captured stderr call -----------------------------
2024-04-11T16:24:06.5571511Z �[36;1m2024-04-11 16:23:04,103 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 created {"type": "inventoryupdate", "task_id": 1, "state": "created", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5573330Z �[36;1m2024-04-11 16:23:04,154 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 pre run {"type": "inventoryupdate", "task_id": 1, "state": "pre_run", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5575198Z �[36;1m2024-04-11 16:23:04,154 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 preparing playbook {"type": "inventoryupdate", "task_id": 1, "state": "preparing_playbook", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5577284Z �[36;1m2024-04-11 16:23:04,168 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 running playbook {"type": "inventoryupdate", "task_id": 1, "state": "running_playbook", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5578764Z �[31;1m2024-04-11 16:23:04,173 ERROR    [-] awx.main.tasks.jobs inventory_update 1 (running) Exception occurred while running task�[0m
2024-04-11T16:24:06.5579495Z �[31;1mTraceback (most recent call last):�[0m
2024-04-11T16:24:06.5580021Z �[31;1m  File "/awx_devel/awx/main/tasks/jobs.py", line 605, in run�[0m
2024-04-11T16:24:06.5580507Z �[31;1m    res = receptor_job.run()�[0m
2024-04-11T16:24:06.5580860Z �[31;1m          ^^^^^^^^^^^^^^^^^^�[0m
2024-04-11T16:24:06.5581588Z �[31;1m  File "/awx_devel/awx/main/tests/functional/test_inventory_source_injectors.py", line 223, in substitute_run�[0m
2024-04-11T16:24:06.5582478Z �[31;1m    env, content = read_content(private_data_dir, envvars, inventory_update)�[0m
2024-04-11T16:24:06.5583091Z �[31;1m                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
2024-04-11T16:24:06.5583879Z �[31;1m  File "/awx_devel/awx/main/tests/functional/test_inventory_source_injectors.py", line 103, in read_content�[0m
2024-04-11T16:24:06.5584642Z �[31;1m    filename_list = os.listdir(private_data_dir)�[0m
2024-04-11T16:24:06.5585110Z �[31;1m                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
2024-04-11T16:24:06.5585712Z �[31;1mFileNotFoundError: [Errno 2] No such file or directory: '/tmp/awx_1_j9oxzffo'�[0m
2024-04-11T16:24:06.5587023Z �[36;1m2024-04-11 16:23:04,174 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 post run {"type": "inventoryupdate", "task_id": 1, "state": "post_run", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5588819Z �[36;1m2024-04-11 16:23:04,218 INFO     [-] awx.analytics.job_lifecycle inventoryupdate-1 finalize run {"type": "inventoryupdate", "task_id": 1, "state": "finalize_run", "work_unit_id": null, "task_name": "test-inv -  (test-inv - 1)"}�[0m
2024-04-11T16:24:06.5589962Z ------------------------------ Captured log call -------------------------------

@thedoubl3j thedoubl3j merged commit 1859a6a into ansible:devel Apr 11, 2024
45 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants