You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/sanity/code-smell
Matt Clay ae380e3bef
[stable-2.13] ansible-test - Multiple backports (#77951)
* ansible-test - Backport `InternalError`

NOTE: This is a partial backport, including only one new class.

(cherry picked from commit b960641759)

* ansible-test - Fix subprocess management. (#77641)

* Run code-smell sanity tests in UTF-8 Mode.
* Update subprocess use in sanity test programs.
* Use raw_command instead of run_command with always=True set.
* Add more capture=True usage.
* Don't expose stdin to subprocesses.
* Capture more output. Warn on retry.
* Add more captures.
* Capture coverage cli output.
* Capture windows and network host checks.
* Be explicit about interactive usage.
* Use a shell for non-captured, non-interactive subprocesses.
* Add integration test to assert no TTY.
* Add unit test to assert no TTY.
* Require blocking stdin/stdout/stderr.
* Use subprocess.run in ansible-core sanity tests.
* Remove unused arg.
* Be explicit with subprocess.run check=False.
* Add changelog.
* Use a Python subprocess instead of a shell.
* Use InternalError instead of Exception.
* Require capture argument.
* Check for invalid raw_command arguments.
* Removed pointless communicate=True usage.
* Relocate stdout w/o capture check.
* Use threads instead of a subprocess for IO.

(cherry picked from commit 5c2d830dea)

* ansible-test - Add support for remote Ubuntu VMs.

(cherry picked from commit 6513453310)

* ansible-test - Fix remote completion validation.

(cherry picked from commit e2200e8dfc)

* ansible-test - Add multi-arch remote support.

(cherry picked from commit 2cc74b04c4)

* ansible-test - Enhance the shell command. (#77734)

* ansible-test - Add shell --export option.

* ansible-test - Support cmd args for shell command.

Also allow shell to be used without a valid layout if no delegation is required.

* ansible-test - Improve stderr/stdout consistency.

By default all output goes to stdout only, with the exception of a fatal error.

When using any of the following, all output defaults to stderr instead:

* sanity with the `--lint` option -- sanity messages to stdout
* coverage analyze -- output to stdout if the output file is `/dev/stdout`
* shell -- shell output to stdout

This fixes issues two main issues:

* Unpredictable output order when using both info and error/warning messages.
* Mixing of lint/command/shell output with bootstrapping messages on stdout.

* ansible-test - Add changelog fragment.

(cherry picked from commit fe349a1ccd)

* ansible-test - Fix remote args restriction.

The platform-specific and global fallbacks were not working with the `--remote` option.

This regression was introduced by https://github.com/ansible/ansible/pull/77711

(cherry picked from commit 76ead1e768)
4 years ago
..
ansible-requirements.json ansible-test - split controller/target testing (#75605) 4 years ago
ansible-requirements.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
ansible-test-future-boilerplate.json ansible-test - Clean up future boilerplate. (#76874) 4 years ago
ansible-test-future-boilerplate.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
botmeta.json Split up "code smell" sanity tests. (#60174) 6 years ago
botmeta.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
botmeta.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
botmeta.requirements.txt ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
configure-remoting-ps1.json Split up "code smell" sanity tests. (#60174) 6 years ago
configure-remoting-ps1.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
deprecated-config.json Split up "code smell" sanity tests. (#60174) 6 years ago
deprecated-config.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
deprecated-config.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
deprecated-config.requirements.txt ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
docs-build.json ansible-test - split controller/target testing (#75605) 4 years ago
docs-build.py [stable-2.13] ansible-test - Multiple backports (#77951) 4 years ago
docs-build.requirements.in [stable-2.13] Replace antsibull with antsibull-docs (#77504) 4 years ago
docs-build.requirements.txt [stable-2.13] Replace antsibull with antsibull-docs (#77504) 4 years ago
no-unwanted-files.json Sanity test updates for collections support. (#61248) 6 years ago
no-unwanted-files.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
obsolete-files.json Sanity test updates for collections support. (#61248) 6 years ago
obsolete-files.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
package-data.json ansible-test - split controller/target testing (#75605) 4 years ago
package-data.py [stable-2.13] ansible-test - Multiple backports (#77951) 4 years ago
package-data.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
package-data.requirements.txt Bump requirements for antsibull to 0.42.0 (which depends on antsibull-changelog >= 0.14.0). (#77362) 4 years ago
release-names.json Update release name for 2.10 6 years ago
release-names.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
release-names.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
release-names.requirements.txt ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
required-and-default-attributes.json Update sanity tests for collections. (#61352) 6 years ago
required-and-default-attributes.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
rstcheck.json Limit rstcheck sanity test to ansible-core. (#73391) 5 years ago
rstcheck.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
rstcheck.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
rstcheck.requirements.txt ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
skip.txt Split up "code smell" sanity tests. (#60174) 6 years ago
test-constraints.json Fix ansible-test constraints issues. (#73578) 5 years ago
test-constraints.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
update-bundled.json Split up "code smell" sanity tests. (#60174) 6 years ago
update-bundled.py ansible-test - Clean up future boilerplate. (#76874) 4 years ago
update-bundled.requirements.in ansible-test - Update import test and sanity requirements. (#76308) 4 years ago
update-bundled.requirements.txt ansible-test - Update import test and sanity requirements. (#76308) 4 years ago