Skip to content

quicktest: add -with-tag and -without-tag suite filters - #7227

Open
gthvn1 wants to merge 1 commit into
xapi-project:masterfrom
xcp-ng:gtn-split-quicktest
Open

quicktest: add -with-tag and -without-tag suite filters#7227
gthvn1 wants to merge 1 commit into
xapi-project:masterfrom
xcp-ng:gtn-split-quicktest

Conversation

@gthvn1

@gthvn1 gthvn1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Storage CI runs quicktest once per SR under test, but not every suite acutally
depends on the SR passed via -sr. Suites like message, xenstore, event etc.
exercise xapi behavior that has nothing to do with storage and produce the same
result no matter which SR is passed. Today they still re-run in full for every
SR.

This patch tags every suite in quicktest.ml with a tag list (currently only
Sr exists) and adds two new flags, -with-tag and -without-tag, to select
suites by tag. A suite with no tags is common to every SR. Both flags are
repeatable and can be freely combined with each other and with -run-only for
finer grained selection. -list-tests also respects them. -list-tests also
respect them, so quicktest -list-tests -with-tag sr shows exactly what a real
-with-tag sr run would execute.

Using a tag list rather than a closed variant keeps the door open for other
axes to filter later (e.g. slow-running suites).

Comment thread ocaml/quicktest/quicktest.ml Outdated
Comment thread ocaml/quicktest/quicktest.ml Outdated
@gthvn1
gthvn1 force-pushed the gtn-split-quicktest branch from 6c836f8 to ae594ca Compare August 17, 2026 16:52
@gthvn1
gthvn1 force-pushed the gtn-split-quicktest branch from ae594ca to b6eda6a Compare August 18, 2026 11:19
Comment thread ocaml/quicktest/quicktest_args.ml
Storage CI runs quicktest once per SR under test, but not every suite acutally
depends on the SR passed via -sr. Suites like message, xenstore, event etc.
exercise xapi behavior that has nothing to do with storage and produce the same
result no matter which SR is passed. Today they still re-run in full for every
SR.

This patch tags every suite in quicktest.ml with a `tag list` (currently only
`Sr` exists) and adds two new flags, -with-tag and -without-tag, to select
suites by tag. A suite with no tags is common to every SR. Both flags are
repeatable and can be freely combined with each other and with -run-only for
finer grained selection. -list-tests also respects them. -list-tests also
respect them, so `quicktest -list-tests -with-tag sr` shows exactly what a real
-with-tag sr run would execute.

Using a tag list rather than a closed variant keeps the door open for other
axes to filter later (e.g. slow-running suites).

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@vates.tech>
@gthvn1
gthvn1 force-pushed the gtn-split-quicktest branch from b6eda6a to f0b54f8 Compare August 20, 2026 08:05
@gthvn1 gthvn1 changed the title quicktest: add -sr-only and -common-only suite filters quicktest: add -with-tag and -without-tag suite filters Aug 20, 2026
@gthvn1
gthvn1 requested a review from last-genius August 20, 2026 08:11

@changlei-li changlei-li left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR message as well.
Have you tested this?

@gthvn1

gthvn1 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Have you tested this?

What I have tested is a "backport" on lcm (it conflicts so it is not just a cherry-pick) because the version of xcp-ng I'm using (8.3) is based on lcm. Maybe I can try to built our master and just copy it for testing. The quicktestbin should work even if version are not the same. I will check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants