From: Milind Changire Date: Tue, 29 Nov 2022 06:40:29 +0000 (+0530) Subject: doc/dev/developer_guide/testing_integration_tests: Document the random selection... X-Git-Tag: v20.0.0~1061^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7830383a1bf83886860b50ef33510de070d5a178;p=ceph.git doc/dev/developer_guide/testing_integration_tests: Document the random selection operator Document about the '$' operator which is the random selection operator. Fixes: https://tracker.ceph.com/issues/55198 Signed-off-by: Milind Changire --- diff --git a/doc/dev/developer_guide/testing_integration_tests/tests-integration-testing-teuthology-intro.rst b/doc/dev/developer_guide/testing_integration_tests/tests-integration-testing-teuthology-intro.rst index 3cbe51241cc9..7c6916138dd3 100644 --- a/doc/dev/developer_guide/testing_integration_tests/tests-integration-testing-teuthology-intro.rst +++ b/doc/dev/developer_guide/testing_integration_tests/tests-integration-testing-teuthology-intro.rst @@ -308,16 +308,16 @@ directory tree within the ``suites/`` subdirectory of the `ceph/qa sub-directory The set of all tests defined by a given subdirectory of ``suites/`` is called an "integration test suite", or a "teuthology suite". -Combination of yaml facets is controlled by special files (``%`` and -``+``) that are placed within the directory tree and can be thought of as -operators. The ``%`` file is the "convolution" operator and ``+`` -signifies concatenation. +Combination of YAML facets is controlled by special files (``%``, ``+`` and ``$``) +that are placed within the directory tree and can be thought of as +operators. The ``%`` file is the "convolution" operator, ``+`` signifies +concatenation and ``$`` is the "random selection" operator. -Convolution operator -^^^^^^^^^^^^^^^^^^^^ +Convolution operator - ``%`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The convolution operator, implemented as a (typically empty) file called ``%``, -tells teuthology to construct a test matrix from yaml facets found in +tells teuthology to construct a test matrix from YAML facets found in subdirectories below the directory containing the operator. For example, the `ceph-deploy suite @@ -412,8 +412,8 @@ tests will still preserve the correct numerator (subset of subsets). You can disable nested subsets using the ``--no-nested-subset`` argument to ``teuthology-suite``. -Concatenation operator -^^^^^^^^^^^^^^^^^^^^^^ +Concatenation operator - ``+`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For even greater flexibility in sharing yaml files between suites, the special file plus (``+``) can be used to concatenate files within a @@ -552,6 +552,15 @@ rest of the cluster (``5-finish-upgrade.yaml``). The last stage is requiring the updated release (``ceph require-osd-release quincy``, ``ceph osd set-require-min-compat-client quincy``) and running the ``final-workload``. +Random Selection Operator - ``$`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The presence of a file named ``$`` provides a hint to teuthology to randomly +include one of the YAML fragments in the test. Such a scenario is typically +seen when we need to choose one of the flavors of the features/options to be +tested randomly. + + Position Independent Linking ----------------------------