Skip to content

Comments

New mechanism to skip tasks and suites#271

Open
sergiocazzolato wants to merge 1 commit intocanonical:masterfrom
sergiocazzolato:new-skip-condition
Open

New mechanism to skip tasks and suites#271
sergiocazzolato wants to merge 1 commit intocanonical:masterfrom
sergiocazzolato:new-skip-condition

Conversation

@sergiocazzolato
Copy link
Contributor

@sergiocazzolato sergiocazzolato commented Jan 30, 2026

A skip condition determines whether a task or suite should be skipped before it begins execution.

Skip conditions can only be defined at the task or suite level. They are evaluated before the task preparation phase. If the condition evaluates to true, the entire task or suite is skipped — including the prepare, execute, and restore phases.

We considered introducing a SKIP command similar to REBOOT, but this approach implies partially running the prepare phases (e.g., prepare-each at project/backend/suite level). This means the task wouldn’t actually be skipped, and determining what should be restored becomes unclear.

Using a skip condition is cleaner and more predictable from a developer’s perspective, and aligns with how skip/conditional execution works in most testing tools across languages.

Executed locally the tests: https://pastebin.canonical.com/p/P7fxgCPdb3/

A skip condition determines whether a task or suite should be skipped
before it begins execution.

Skip conditions can only be defined at the task or suite level. They are
evaluated before the task preparation phase. If the condition evaluates
to true, the entire task or suite is skipped — including the prepare,
execute, and restore phases.

We considered introducing a SKIP command similar to REBOOT, but this
approach implies partially running the prepare phases (e.g.,
prepare-each at project/backend/suite level). This means the task
wouldn’t actually be skipped, and determining what should be restored
becomes unclear.

Using a skip condition is cleaner and more predictable from a
developer’s perspective, and aligns with how skip/conditional execution
works in most testing tools across languages.
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.

1 participant