Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: How Does Avocado Handle Sets of Tags, and misc updates

...

Code Block
languagepy
def test_sample_twoevict(self):
  """Another
sample test.   :avocado: tags=all,pr,fulldaily_regression
  :avocado: tags=hw,largevm
  :avocado: tags=feature1pool,feature2pool_evict
  :avocado: tags=sample,sample_onepool_evict_basic
  """

How

...

Does Avocado Handle Sets of Tags?

Avocado uses a space to represent “and”, a comma to represent “or”, and a hyphen to represent “not”. For example:

  1. pr ior - All tests tagged with pr and all tests tagged with ior

  2. pr,ior - All tests tagged with both pr and ior

  3. pr,-ior - All tests tagged with pr but not ior

How Do I Use Test Tags in a PR?

The /wiki/spaces/CI/pages/1389759093 are used to specify which tests are ran run for a PR. By default, all tests tagged with pr are ran. I.e. Test-tag: pr. To run specific tests, you should first identify which tags you need. See Feature Tags for a list of common tags. To run a specific test case, you will need to find it’s its tag in the test file. There are two pragmas to specify which tags to run:

...

Avocado Tag

Description

pr

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

daily_regression

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

full_regression

Ran in CI 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.

deployment

Ran when deploying a new DAOS installation.

...

Avocado Tag

Description

checksum

Verifies checksum features.

container

Verifies container features.

control

Verifies controlplane features.

datamover

Verifies Data Mover utilities.

Additional sub-tags:

  • fs_copy - daos filesystem copy tests

  • cont_clone - daos container clone tests

  • dcp - mpifileutils/dcp (distributed copy) tests

  • dsync - mpifileutils/dsync (distributed sync) tests

  • dserialize - mpifileutils/daos-serialize and mpifileutils/daos-deserialize (distributed serialization) tests

daosperf

Verifies daos_perf.

deployment

Verifies DAOS on a newly deployed system.

dfuse

Verifies dfuse.

ec

Verifies ec features.

ior

Verifies ior.

mdtest

Verifies mdtest.

osa

Verifies online and offline osa features.

pool

Verifies features related to pool operations.

security

Verifies security features such as ACLs, pool and container permissions.

snap

Verifies snapshot features.

telemetry

Verifies telemetry features.

tx

Verifies transaction features.

...