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

add new error/warning handler to display #79164

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Oct 19, 2022

also implment toggle for limit/empty host list

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

display

  also implment toggle for limit/empty host list
@bcoca bcoca marked this pull request as draft October 19, 2022 16:44
@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.15 feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. labels Oct 19, 2022
@ansibot
Copy link
Contributor

ansibot commented Oct 19, 2022

The test ansible-test sanity --test package-data [explain] failed with the error:

Command "/root/.ansible/test/venv/sanity.package-data/3.11/b269f971/bin/python /root/ansible/test/sanity/code-smell/package-data.py" returned exit status 1.
>>> Standard Error
Traceback (most recent call last):
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 405, in <module>
    main()
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 382, in main
    sdist_path = create_sdist(tmp_dir)
                 ^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 187, in create_sdist
    raise Exception('make snapshot failed:\n%s' % stderr)
Exception: make snapshot failed:
Traceback (most recent call last):
  File "/tmp/tmpz2biqsz1/hacking/build-ansible.py", line 103, in <module>
    main()
  File "/tmp/tmpz2biqsz1/hacking/build-ansible.py", line 92, in main
    retval = command.main(args)
             ^^^^^^^^^^^^^^^^^^
  File "/tmp/tmpz2biqsz1/hacking/build_library/build_ansible/command_plugins/generate_man.py", line 279, in main
    allvars[cli_name] = opts_docs(cli_class_name, cli_name)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/tmpz2biqsz1/hacking/build_library/build_ansible/command_plugins/generate_man.py", line 119, in opts_docs
    cli_klass = getattr(__import__("ansible.cli.%s" % cli_module_name,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/tmpz2biqsz1/lib/ansible/cli/__init__.py", line 574
    msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")
                                                                                               ^
SyntaxError: unmatched ')'
make: *** [Makefile:148: generate_rst] Error 1

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/root/.ansible/test/venv/sanity.docs-build/3.11/acdf1679/bin/python /root/ansible/test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make core_singlehtmldocs' failed with status code: 2
--> Standard Output
Creating symlinks in core_structure
ln -sf ../rst/core_index.rst rst/index.rst
ln -sf ../dev_guide/core_index.rst rst/dev_guide/index.rst
ln -sf ../sphinx_conf/core_conf.py rst/conf.py
../../hacking/build-ansible.py collection-meta --template-file=../templates/collections_galaxy_meta.rst.j2 --output-dir=rst/dev_guide/  ../../lib/ansible/galaxy/data/collections_galaxy_meta.yml
../../hacking/build-ansible.py document-config --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/  ../../lib/ansible/config/base.yml
mkdir -p rst/cli
../../hacking/build-ansible.py generate-man --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst  ../../lib/ansible/cli/*.py
--> Standard Error
Traceback (most recent call last):
  File "/root/ansible/docs/docsite/../../hacking/build-ansible.py", line 103, in <module>
    main()
  File "/root/ansible/docs/docsite/../../hacking/build-ansible.py", line 92, in main
    retval = command.main(args)
             ^^^^^^^^^^^^^^^^^^
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/generate_man.py", line 279, in main
    allvars[cli_name] = opts_docs(cli_class_name, cli_name)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/generate_man.py", line 119, in opts_docs
    cli_klass = getattr(__import__("ansible.cli.%s" % cli_module_name,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/lib/ansible/cli/__init__.py", line 574
    msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")
                                                                                               ^
SyntaxError: unmatched ')'
make: *** [Makefile:201: cli] Error 1

The test ansible-test sanity --test ansible-doc [explain] failed with the error:

Command "ansible-doc -t become runas su sudo" returned exit status 1.
>>> Standard Error
Traceback (most recent call last):
  File "/root/ansible/bin/ansible-doc", line 11, in <module>
    from ansible.cli import CLI
  File "/root/ansible/lib/ansible/cli/__init__.py", line 574
    msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")
                                                                                               ^
SyntaxError: unmatched ')'

The test ansible-test sanity --test import --python 3.9 [explain] failed with 14 errors:

lib/ansible/cli/__init__.py:574:104: traceback: SyntaxError: unmatched ')' (at test/lib/ansible_test/_util/target/sanity/import/importer.py:300:0)
lib/ansible/cli/adhoc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/option_helpers.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/config.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/console.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/doc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/galaxy.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/inventory.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/playbook.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/pull.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/ansible_connection_cli_stub.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/vault.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)

The test ansible-test sanity --test import --python 3.11 [explain] failed with 14 errors:

lib/ansible/cli/__init__.py:574:104: traceback: SyntaxError: unmatched ')' (at test/lib/ansible_test/_util/target/sanity/import/importer.py:300:0)
lib/ansible/cli/adhoc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/option_helpers.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/config.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/console.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/doc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/galaxy.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/inventory.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/playbook.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/pull.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/ansible_connection_cli_stub.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/vault.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)

The test ansible-test sanity --test import --python 3.10 [explain] failed with 14 errors:

lib/ansible/cli/__init__.py:574:104: traceback: SyntaxError: unmatched ')' (at test/lib/ansible_test/_util/target/sanity/import/importer.py:300:0)
lib/ansible/cli/adhoc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/arguments/option_helpers.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/config.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/console.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/doc.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/galaxy.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/inventory.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/playbook.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/pull.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/__init__.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/scripts/ansible_connection_cli_stub.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)
lib/ansible/cli/vault.py:0:0: traceback: SyntaxError: unmatched ')' (at lib/ansible/cli/__init__.py:574:104)

The test ansible-test sanity --test compile --python 3.9 [explain] failed with 1 error:

lib/ansible/cli/__init__.py:574:104: SyntaxError: msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")

The test ansible-test sanity --test compile --python 3.11 [explain] failed with 1 error:

lib/ansible/cli/__init__.py:574:104: SyntaxError: msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")

The test ansible-test sanity --test compile --python 3.10 [explain] failed with 1 error:

lib/ansible/cli/__init__.py:574:104: SyntaxError: msg = "Specified inventory, host pattern and/or --limit leaves us with no hosts to target.")

The test ansible-test sanity --test pylint [explain] failed with 10 errors:

lib/ansible/cli/__init__.py:574:104: syntax-error: Parsing failed: 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/adhoc.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/config.py:10:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/console.py:12:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/doc.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/galaxy.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/inventory.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/playbook.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/pull.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'
lib/ansible/cli/vault.py:11:0: syntax-error: Cannot import 'ansible.cli' due to 'unmatched ')' (<unknown>, line 574)'

click here for bot help

@webknjaz

This comment was marked as resolved.

@azure-pipelines

This comment was marked as resolved.

@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Oct 25, 2022
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Nov 2, 2022
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Sep 12, 2023
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.15 feature This issue/PR relates to a feature request. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants