Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
def test_sample_onetwo(self):
  """AAnother sample test.
  :avocado: tags=sampleall,samplefull_oneregression
  """
def test_sample_two(self):
  """Another sample test.:avocado: tags=hw,large
  :avocado: tags=feature1,feature2
  :avocado: tags=sample,sample_twoone
  """

How Do I use Test Tags in a PR?

...

Whether to use Test-tag or Features mostly depends on whether you want to include the full_regression tests for the specified feature tag. In the future, full_regression tests will not be excluded. Regardless, pr tests are almost always required to be successfully ran for a PR to be merged.

List of Frequency Tags

These tags determine when a test runs. Some tests might be ran at multiple frequencies.

Avocado Tag

Description

pr

Ran for every PR. These are generally small core tests.

daily_regression

Ran once daily. These are generally less critical than pr tests.

full_regression

Ran weekly. These are generally less critical than daily_regression, or longer-running tests. These usually do not overlap with daily_regression tests.

manual

Manual tests for special purposes. These tests might: not run in CI, require special configuration, be for specific environments.

soak

SOAK tests are ran manually at specified intervals.

List of Stage/Environment Tags

These tags determine where a test runs. Each test should only have one set of these tags.

Avocado Tag

Description

hw,small

Tests that are ran on the Small Hardware Functional Test stage

hw,medium,ib2

Tests that are ran on the Medium Hardware Functional Test stage.

hw,large

Tests that are ran on the Large Hardware Functional Test stage.

vm

Tests that are ran on the VM Functional Test stages. This tag is usually not specified explicitly. Instead, the lack of a hw tag represents VM tests.

Anchor
Feature-Tags
Feature-Tags
List of Feature Tags

These tags group tests by common Features. This list is currently incomplete.

Avocado Tag

Description

checksum

Tests that verify or use checksum features.

control

Tests that verify controlplane features.

datamover

Tests related to Data Mover utilities, including dcp, dsync, daos fs copy, daos cont clone, daos-serialize

daosperf

Tests that verify daos_perf.

dfuse

Tests that verify or use dfuse.

ec

Tests that verify ec features.

ior

Tests that verify or use ior.

mdtest

Tests that verify or use mdtest.

osa

Tests that verify online and offline osa features.

security

Tests that verify security features.

snap

Tests that verify snapshot features.

tx

Tests that verify transaction features.

...