You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to roll out a new update for my Ansible collection. Whenever it gets to the publishing step it fails with a cryptic JSON decoding error, which seems to point to something going wrong internally in Ansible (perhaps ansible-doc?)
If you try to publish the collection above, you'll get a cryptic parsing error that seems to stem from inside Ansible, without any pointers to what's actually going wrong other than parsing errors.
Expected Results
I expected the collection to be published.
Actual Results
Importing with galaxy-importer 0.4.20 Getting doc strings via ansible-doc FailedExpecting value: line 1 column 1 (char 0) File "/venv/lib64/python3.11/site-packages/pulpcore/tasking/tasks.py", line 66, in _execute_task result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/galaxy_ng/app/tasks/publishing.py", line 115, in import_and_auto_approve repo = _upload_collection(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/galaxy_ng/app/tasks/publishing.py", line 65, in _upload_collection general_create(*general_args, **kwargs) File "/venv/lib64/python3.11/site-packages/pulpcore/app/tasks/base.py", line 37, in general_create serializer.is_valid(raise_exception=True) File "/venv/lib64/python3.11/site-packages/rest_framework/serializers.py", line 227, in is_valid self._validated_data = self.run_validation(self.initial_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/rest_framework/serializers.py", line 429, in run_validation value = self.validate(value) ^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/pulp_ansible/app/serializers.py", line 484, in validate return super().validate(data) ^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/pulpcore/plugin/serializers/content.py", line 123, in validate data = self.deferred_validate(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/pulp_ansible/app/serializers.py", line 494, in deferred_validate collection_info = process_collection_artifact( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/pulp_ansible/app/tasks/upload.py", line 37, in process_collection_artifact importer_result = import_collection( ^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/galaxy_importer/collection.py", line 78, in import_collection return _import_collection(file, filename, file_url, logger, cfg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/galaxy_importer/collection.py", line 135, in _import_collection data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/galaxy_importer/loaders/collection.py", line 98, in load ).load() ^^^^^^ File "/venv/lib64/python3.11/site-packages/galaxy_importer/loaders/doc_string.py", line 51, in load found_plugins = self._run_ansible_doc_list(plugin_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib64/python3.11/site-packages/galaxy_importer/loaders/doc_string.py", line 118, in _run_ansible_doc_list return json.loads(stdout) ^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
I'm attempting to roll out a new update for my Ansible collection. Whenever it gets to the publishing step it fails with a cryptic JSON decoding error, which seems to point to something going wrong internally in Ansible (perhaps ansible-doc?)
Any help would be greatly appreciated, thank you!
Issue Type
Bug Report
Component Name
infisical_vault
Ansible Version
Configuration
OS / Environment
I've tried building & publishing both:
Locally: MacOS 14.1 Sonoma
Github Action: Ubuntu 24.04 LTS
(Building succeeds, but publishing fails)
Steps to Reproduce
The entire collection is open-source, so reproduction should be fairly straight forward.
https://github.com/Infisical/ansible-collection
If you try to publish the collection above, you'll get a cryptic parsing error that seems to stem from inside Ansible, without any pointers to what's actually going wrong other than parsing errors.
Expected Results
I expected the collection to be published.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: