Skip to content

Fix regression testing false negative - #3255

Merged
AlexandreSinger merged 3 commits into
masterfrom
reg_test_false_negative
Aug 28, 2025
Merged

Fix regression testing false negative#3255
AlexandreSinger merged 3 commits into
masterfrom
reg_test_false_negative

Conversation

@AmirhosseinPoolad

Copy link
Copy Markdown
Contributor

Fixes #3254 . See this action run:

https://github.com/verilog-to-routing/vtr-verilog-to-routing/actions/runs/17196322572/job/48779145751

The test has passed the CI but there are actually errors:
Image

Why did it pass? Well there this piece of code:
Image

But that's not the root cause. The QoR parsing script returned -1 in case of a mismatch between arch file name in the actual run and the golden results. In case of 1 run failure, the -1 would cancel the 1 and as a result the regression tests would pass while having errors. This commit fixes that by not throwing an exception in that specific case (Therefore not returning -1) and taking the absolute value of the QoR and run failures before summing them up.

The QoR parsing script returned -1 in case of a mismatch between arch file name in
the actual run and the golden results. If there was 1 run failures, the -1 would
cancel the 1 and as a result the regression tests would pass while having errors.
This commit fixes that by not throwing an exception in that specific case (Therefore
not returning -1) and taking the absolute value of the QoR and run failures.
@github-actions github-actions Bot added scripts Utility & Infrastructure scripts lang-python Python code tests labels Aug 26, 2025
@AmirhosseinPoolad

Copy link
Copy Markdown
Contributor Author

Just to add, the only reason all the strong tests were actually ran in the linked CI run was that the scatter gather tests were at the end of the task list. If you moved it to the beginning, the script would crash at the start, no other tasks would be run, and CI would've still passed.

@AmirhosseinPoolad

AmirhosseinPoolad commented Aug 28, 2025

Copy link
Copy Markdown
Contributor Author

Changed the error message to be more consistent with the other error messages:
image

@AlexandreSinger AlexandreSinger 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.

LGTM

@AlexandreSinger
AlexandreSinger merged commit 5d4ef4e into master Aug 28, 2025
30 checks passed
@AlexandreSinger
AlexandreSinger deleted the reg_test_false_negative branch August 28, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang-python Python code scripts Utility & Infrastructure scripts tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Strong tests not failing if there's a mismatch in architecture in golden results vs test results

2 participants