Regression Triage
Learn how to turn a large regression result into a small set of actionable debug cases by classifying failures, identifying patterns, and prioritizing the next investigation.
Learning objectives
- Explain the purpose of regression triage and why failure count alone is not enough.
- Classify failures as infrastructure, timeout, testbench, assertion, scoreboard, or DUT-related problems.
- Group related failures using error signatures, tests, seeds, configurations, and affected components.
- Select a representative failure for reproduction and focused debug.
Step 1: Understand the concept
A regression can produce dozens or hundreds of failures, but that does not necessarily mean there are dozens or hundreds of independent bugs. One defect can cause many tests to fail, while unrelated infrastructure problems can create additional noise.
Regression triage is the process of converting those raw results into a prioritized set of investigations. The goal is not to debug every failure immediately. The goal is to determine which failures are related, which are actionable, and which should be investigated first.
A useful triage record should answer:
- What failed? Test, seed, configuration, and failure type.
- Where did it fail? Assertion, scoreboard, monitor, driver, DUT, simulator, or infrastructure.
- What was the first useful error? Avoid relying on secondary errors.
- Does it reproduce? Re-run the exact test and seed before drawing conclusions.
- Is it related to another failure? Compare error signatures and execution conditions.
- What should happen next? Reproduce, debug, quarantine, fix infrastructure, or investigate a likely common cause.
Step 2: Classify the failure before debugging it
Start by determining what kind of failure occurred. Classification prevents wasted effort—for example, opening a waveform for a test that never reached simulation because compilation failed.
| Failure category | Typical evidence | First action |
|---|---|---|
| Infrastructure | Compile failure, missing file, simulator startup error | Fix the execution environment |
| Timeout / hang | No progress, phase timeout, watchdog failure | Determine where progress stopped |
| Testbench | Configuration error, null handle, invalid sequence behavior | Inspect the verification component |
| Assertion | Protocol or temporal property violation | Inspect the assertion context and triggering signals |
| Scoreboard | Expected/actual transaction mismatch | Compare transaction flow and prediction logic |
| DUT-related | Observed behavior violates the specification | Reproduce and trace the DUT behavior |
Classification is not a final root-cause decision. A scoreboard failure may ultimately reveal a DUT defect, a predictor defect, or a synchronization problem. It simply tells you where to begin.
Step 3: Study the failure signature
Suppose a regression produces these results:
TEST SEED CONFIG RESULT
---
basic_read_test 10482 default PASS
burst_test 28731 default FAIL
burst_test 91344 default FAIL
dma_stress_test 48192 default FAIL
dma_stress_test 77521 low_power FAIL
reset_recovery_test 22107 default PASS
Now inspect the first useful messages:
burst_test:
expected response ID=4, observed ID=0
dma_stress_test:
expected response ID=4, observed ID=0
dma_stress_test:
expected response ID=4, observed ID=0
Although three simulations failed, the identical mismatch suggests that they may share a common cause. Instead of opening three independent investigations, choose one representative failure and determine whether the others reproduce the same signature.
Useful grouping fields include:
- error ID or message signature
- affected interface or agent
- transaction type
- test name
- configuration
- assertion or scoreboard location
- first failing timestamp or phase
Step 4: Build a triage record
A compact triage record makes regression results easier to review and prevents the same failure from being investigated repeatedly.
typedef enum {
TRIAGE_NEW,
TRIAGE_REPRODUCED,
TRIAGE_GROUPED,
TRIAGE_DEBUGGING,
TRIAGE_RESOLVED
} triage_status_e;
class failure_record;
string test_name;
int unsigned seed;
string config_name;
string signature;
string category;
triage_status_e status;
function void print();
`uvm_info("TRIAGE",
$sformatf(
"test=%s seed=%0d config=%s category=%s status=%s signature=%s",
test_name,
seed,
config_name,
category,
status.name(),
signature
),
UVM_LOW)
endfunction
endclass
The exact implementation can vary, but the principle is consistent: make failure information structured enough that humans and regression infrastructure can recognize patterns.
Step 5: Prioritize the investigation
Not every failure deserves the same immediate attention. A practical priority considers reproducibility, impact, frequency, and whether the failure blocks other verification work.
- Investigate infrastructure blockers first. A broken compile or simulator setup can invalidate an entire regression.
- Check widespread signatures. A failure affecting many tests may indicate a common underlying problem.
- Reproduce deterministic failures. A failure that reproduces with the recorded seed is easier to debug than an unexplained intermittent result.
- Look for recent changes. Correlate new failures with recent RTL, testbench, configuration, or tool changes.
- Select representative cases. One well-understood failure can often explain an entire group.
Step 6: Follow the triage workflow
Use the following sequence when reviewing a nightly regression:
Regression results
|
v
Classify failures
|
v
Find first useful error
|
v
Group matching signatures
|
v
Select representative case
|
v
Reproduce with test + seed + config
|
v
Inspect logs / assertions / waveform
|
v
Identify root cause
|
v
Update triage status
This keeps triage separate from detailed debug. Triage decides where to spend debug effort; detailed debug determines why the failure occurred.
Try it yourself
Given the following regression results, group the failures before opening any waveform:
TEST SEED FAILURE
---
read_test 1201 expected=0x55 actual=0x15
burst_test 4421 expected=0x55 actual=0x15
burst_test 8832 expected=0x55 actual=0x15
interrupt_test 7712 IRQ timeout
dma_test 3319 expected=0x55 actual=0x15
reset_test 9921 simulation timeout
For each group:
- Assign a failure category.
- Identify the likely common signature.
- Select one representative seed.
- Write down the information required to reproduce it.
- Decide which group you would investigate first and explain why.
expected=0x55 actual=0x15 failures have the same root cause. Explain why debugging all three independently would provide less value than reproducing one representative case first.
Verification checkpoint
You understand regression triage when you can turn a raw failure list into a prioritized investigation plan without immediately opening every waveform.
- Can you classify a failure before attempting detailed debug?
- Can you distinguish primary failures from secondary errors?
- Can you recognize when multiple tests share a failure signature?
- Can you select a representative seed for reproduction?
- Can you explain why a failure should be investigated now rather than later?
Key takeaways
- Regression triage turns a large set of failures into a manageable set of investigations.
- Classify failures before debugging so infrastructure and simulation problems are not mixed together.
- Use error signatures, components, configurations, and execution context to identify related failures.
- Preserve the test, seed, configuration, and first useful error for every actionable failure.
- Debug representative failures first when several regression results appear to share a common cause.
- Triage determines where to spend debug effort; detailed debug determines the root cause.