Skip to content

Commit

Permalink
docs: document test-only ci command
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
  • Loading branch information
nebril committed Oct 27, 2020
1 parent dd7d270 commit ce8be45
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions Documentation/contributing/testing/ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,43 @@ After you don't need to run tests on your branch, please remove the branch from

.. note::

It is also possible to run specific tests from this suite via ``test-focus`` and ``test-gke``. It takes trailing words as a regex. If you want to run only one ``It`` block, you need to prepend it with a test suite and create a regex, e.g ``test-focus K8sDatapathConfig.*Check connectivity with automatic direct nodes routes``
It is also possible to run specific tests from this suite via ``test-only``. The comment can contain 3 arguments: ``--focus`` which specifies which tests should be run, ``--kernel_version`` for supported kernel version (net-next, 49, 419 are possible values right now), ``--k8s_version`` for k8s version. If you want to run only one ``It`` block, you need to prepend it with a test suite and create a regex, e.g ``test-only --focus="K8sDatapathConfig.*Check connectivity with automatic direct nodes routes" --k8s_version=1.18 --kernel_version=net-next`` will run specified test in 1.18 Kubernetes cluster running on net-next nodes. Kubernetes version defaults to 1.17, kernel version defaults to 4.19.

+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8s"`` | Runs all kubernetes tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sConformance"`` | Runs all k8s conformance tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sChaos"`` | Runs all k8s chaos tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sDatapathConfig"`` | Runs all k8s datapath configuration tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sDemos"`` | Runs all k8s demo tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sKubeProxyFreeMatrix"`` | Runs all k8s kube-proxy free matrix tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sFQDNTest"`` | Runs all k8s fqdn tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sHealthTest"`` | Runs all k8s health tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sHubbleTest"`` | Runs all k8s Hubble tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sIdentity"`` | Runs all k8s identity tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sIstioTest"`` | Runs all k8s Istio tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sKafkaPolicyTest"`` | Runs all k8s Kafka tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sPolicyTest"`` | Runs all k8s policy tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sServicesTest"`` | Runs all k8s services tests |
+------------------------------------------------+-------------------------------------------+
| ``test-only --focus="K8sUpdates"`` | Runs k8s update tests |
+------------------------------------------------+-------------------------------------------+


Running Runtime test suite is still done via ``test-focus`` command.

+---------------------------------------+-------------------------------------------+
| ``test-focus K8s`` | Runs all kubernetes tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sBandwidthTest`` | Runs all k8s bandwidth tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sConformance`` | Runs all k8s conformance tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sChaos`` | Runs all k8s chaos tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sDatapathConfig`` | Runs all k8s datapath configuration tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sDemos`` | Runs all k8s demo tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sKubeProxyFreeMatrix`` | Runs all k8s kube-proxy free matrix tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sFQDNTest`` | Runs all k8s fqdn tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sHealthTest`` | Runs all k8s health tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sHubbleTest`` | Runs all k8s Hubble tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sIdentity`` | Runs all k8s identity tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sIstioTest`` | Runs all k8s Istio tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sKafkaPolicyTest`` | Runs all k8s Kafka tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sPolicyTest`` | Runs all k8s policy tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sServicesTest`` | Runs all k8s services tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus K8sUpdates`` | Runs k8s update tests |
+---------------------------------------+-------------------------------------------+
| ``test-focus Runtime`` | Runs all runtime tests |
+---------------------------------------+-------------------------------------------+
Expand Down

0 comments on commit ce8be45

Please sign in to comment.