Skip to content

feat: let a regression include other regressions - #269

Merged
hcallahan-lowrisc merged 1 commit into
lowRISC:masterfrom
martin-velay:nested_regressions
Oct 5, 2026
Merged

hcallahan-lowrisc merged 1 commit into
lowRISC:masterfrom
martin-velay:nested_regressions

Conversation

@martin-velay

@martin-velay martin-velay commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Add a regressions key to regressions, naming other regressions whose tests it also runs.

A regression's tests only accepts test names, and an unknown key stops dvsim, so a regression made of two smaller ones has to repeat both lists. With this change a top-level combined can run a regresion_a and a regresion_b together:

{
  name: combined
  regressions: ["regresion_a", "regresion_b"]
}

Inclusion is transitive and a test reached twice runs once. Only the tests of an included regression are taken, which keeps the current rule that a regression's modes and options apply to every test it runs. Including a regression that runs all tests (no tests key) runs all tests. A missing name or a cycle stops dvsim with an error. The key merges across files like the other list keys, so a cfg can add it to the smoke that a common cfg declares.

@martin-velay
martin-velay requested a review from tye-b October 5, 2026 11:44

@tye-b tye-b left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, thanks @martin-velay!

A regression's tests key only accepts test names, so a regression made of
two smaller ones had to repeat both lists. The new regressions key names
other regressions whose tests it also runs. Only their tests are taken, and
the modes and options of the including regression apply to all of them.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @martin-velay, this all LGTM. The additional tests to cover this feature are useful.

@hcallahan-lowrisc
hcallahan-lowrisc added this pull request to the merge queue Oct 5, 2026
Merged via the queue into lowRISC:master with commit 817ecbf Oct 5, 2026
6 checks passed
@martin-velay
martin-velay deleted the nested_regressions branch October 5, 2026 15:27
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