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

Removed add uname #68746

Closed
wants to merge 2 commits into from
Closed

Conversation

akchhayalok
Copy link

SUMMARY
ISSUE TYPE
  • Fixed build error pull request
COMPONENT NAME
ADDITIONAL INFORMATION

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 commands Commands category core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community labels Apr 7, 2020
@ansibot
Copy link
Contributor

ansibot commented Apr 7, 2020

The test ansible-test sanity --test validate-modules [explain] failed with 5 errors:

lib/ansible/modules/commands/command.py:0:0: python-syntax-error: Python SyntaxError while parsing module
test/sanity/ignore.txt:110:1: A100: Ignoring 'doc-missing-type' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:111:1: A100: Ignoring 'nonexistent-parameter-documented' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:112:1: A100: Ignoring 'parameter-list-no-elements' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:113:1: A100: Ignoring 'undocumented-parameter' on 'lib/ansible/modules/commands/command.py' is unnecessary

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:0: syntax-error: invalid syntax (<unknown>, line 219)

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

Command "ansible-doc -t module command" returned exit status 1.
>>> Standard Error
ERROR! module command missing documentation (or could not parse documentation): invalid syntax (<unknown>, line 219)

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

Command "/usr/bin/python3.6 /root/ansible/test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
PYTHONPATH=../../lib ../../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
PYTHONPATH=../../lib ../../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
PYTHONPATH=../../lib ../../hacking/build-ansible.py generate-man --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-keywords --template-dir=../templates --output-dir=rst/reference_appendices/ ./keyword_desc.yml
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-plugins -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Evaluating module files...
Makefile:99: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../../hacking/build-ansible.py", line 92, in <module>
    main()
  File "../../hacking/build-ansible.py", line 81, in main
    retval = command.main(args)
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 747, in main
    plugin_info, categories = get_plugin_info(args.module_dir, limit_to=args.limit_to, verbose=(args.verbosity > 0))
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 225, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 124, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 40, in read_docstring
    M = ast.parse(b_module_data.read())
  File "/usr/lib/python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 219
    'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}
                                                                                         ^
SyntaxError: invalid syntax
make: *** [modules] Error 1

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

Command "/usr/bin/python3.6 /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 372, in <module>
    main()
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 349, in main
    sdist_path = create_sdist(tmp_dir)
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 163, in create_sdist
    raise Exception('make snapshot failed:\n%s' % stderr)
Exception: make snapshot failed:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
ERROR! module command at /tmp/tmpr3_nwv1q/lib/ansible/modules/commands/command.py has a documentation error formatting or is missing documentation.
Traceback (most recent call last):
  File "packaging/release/changelogs/changelog.py", line 835, in <module>
    main()
  File "packaging/release/changelogs/changelog.py", line 102, in main
    args.func(args)
  File "packaging/release/changelogs/changelog.py", line 132, in command_release
    plugins = load_plugins(version=version, force_reload=reload_plugins)
  File "packaging/release/changelogs/changelog.py", line 184, in load_plugins
    '--json', '--metadata-dump', '-t', plugin_type])
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/tmpr3_nwv1q/bin/ansible-doc', '--json', '--metadata-dump', '-t', 'module']' returned non-zero exit status 1.
make: *** [changelog] Error 1

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:97: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:97: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

The test ansible-test sanity --test import --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.8 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:97: traceback: SyntaxError: invalid syntax

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

lib/ansible/modules/commands/command.py:219:97: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test pep8 [explain] failed with 2 errors:

lib/ansible/modules/commands/command.py:219:87: E231: missing whitespace after ','
lib/ansible/modules/commands/command.py:219:104: E225: missing whitespace around operator

The test ansible-test sanity --test pslint [explain] failed with 4 errors:

lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:3:10: PSProvideCommentHelp: The cmdlet 'Add-LocalPrinter' does not have a help comment.
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:28:22: PSAvoidTrailingWhitespace: Line has trailing whitespace
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:30:34: PSAvoidTrailingWhitespace: Line has trailing whitespace
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:35:24: PSAvoidTrailingWhitespace: Line has trailing whitespace

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: python-syntax-error: invalid syntax (<unknown>, line 219)

click here for bot help

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 7, 2020
@ansibot
Copy link
Contributor

ansibot commented Apr 8, 2020

The test ansible-test sanity --test validate-modules [explain] failed with 5 errors:

lib/ansible/modules/commands/command.py:0:0: python-syntax-error: Python SyntaxError while parsing module
test/sanity/ignore.txt:110:1: A100: Ignoring 'doc-missing-type' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:111:1: A100: Ignoring 'nonexistent-parameter-documented' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:112:1: A100: Ignoring 'parameter-list-no-elements' on 'lib/ansible/modules/commands/command.py' is unnecessary
test/sanity/ignore.txt:113:1: A100: Ignoring 'undocumented-parameter' on 'lib/ansible/modules/commands/command.py' is unnecessary

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:0: syntax-error: invalid syntax (&lt;unknown&gt;, line 219)

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

Command "ansible-doc -t module command" returned exit status 1.
>>> Standard Error
ERROR! module command missing documentation (or could not parse documentation): invalid syntax (<unknown>, line 219)

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

Command "/usr/bin/python3.6 /root/ansible/test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
PYTHONPATH=../../lib ../../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
PYTHONPATH=../../lib ../../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
PYTHONPATH=../../lib ../../hacking/build-ansible.py generate-man --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-keywords --template-dir=../templates --output-dir=rst/reference_appendices/ ./keyword_desc.yml
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-plugins -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Evaluating module files...
Makefile:99: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../../hacking/build-ansible.py", line 92, in <module>
    main()
  File "../../hacking/build-ansible.py", line 81, in main
    retval = command.main(args)
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 747, in main
    plugin_info, categories = get_plugin_info(args.module_dir, limit_to=args.limit_to, verbose=(args.verbosity > 0))
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 225, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 124, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 40, in read_docstring
    M = ast.parse(b_module_data.read())
  File "/usr/lib/python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 219
    'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}
                                                                                         ^
SyntaxError: invalid syntax
make: *** [modules] Error 1

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

Command "/usr/bin/python3.6 /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 372, in <module>
    main()
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 349, in main
    sdist_path = create_sdist(tmp_dir)
  File "/root/ansible/test/sanity/code-smell/package-data.py", line 163, in create_sdist
    raise Exception('make snapshot failed:\n%s' % stderr)
Exception: make snapshot failed:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
ERROR! module command at /tmp/tmpyfepdy_h/lib/ansible/modules/commands/command.py has a documentation error formatting or is missing documentation.
Traceback (most recent call last):
  File "packaging/release/changelogs/changelog.py", line 835, in <module>
    main()
  File "packaging/release/changelogs/changelog.py", line 102, in main
    args.func(args)
  File "packaging/release/changelogs/changelog.py", line 132, in command_release
    plugins = load_plugins(version=version, force_reload=reload_plugins)
  File "packaging/release/changelogs/changelog.py", line 184, in load_plugins
    '--json', '--metadata-dump', '-t', plugin_type])
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/tmpyfepdy_h/bin/ansible-doc', '--json', '--metadata-dump', '-t', 'module']' returned non-zero exit status 1.
make: *** [changelog] Error 1

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:103: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:97: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

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

lib/ansible/modules/commands/command.py:219:97: SyntaxError: 'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch','uname: 'version=kernel'}

The test ansible-test sanity --test import --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test import --python 3.8 [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:97: traceback: SyntaxError: invalid syntax

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

lib/ansible/modules/commands/command.py:219:97: traceback: SyntaxError: invalid syntax

The test ansible-test sanity --test pep8 [explain] failed with 2 errors:

lib/ansible/modules/commands/command.py:219:87: E231: missing whitespace after ','
lib/ansible/modules/commands/command.py:219:104: E225: missing whitespace around operator

The test ansible-test sanity --test pslint [explain] failed with 4 errors:

lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:3:10: PSProvideCommentHelp: The cmdlet 'Add-LocalPrinter' does not have a help comment.
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:28:22: PSAvoidTrailingWhitespace: Line has trailing whitespace
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:30:34: PSAvoidTrailingWhitespace: Line has trailing whitespace
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.AddPrinter.psm1:35:24: PSAvoidTrailingWhitespace: Line has trailing whitespace

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/commands/command.py:219:103: python-syntax-error: invalid syntax (<unknown>, line 219)

click here for bot help

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Apr 8, 2020
@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Apr 8, 2020
@akchhayalok akchhayalok deleted the removed-add-uname branch May 7, 2020 17:41
@ansible ansible locked and limited conversation to collaborators May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 ci_verified Changes made in this PR are causing tests to fail. commands Commands category module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_contributor This PR is the first contribution by a new community member. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants