Skip to content

Issue 848 replace simple regression tests#903

Merged
kblricks merged 10 commits intoSharedDevelopmentfrom
issue-848-replace-simple-regression-tests
Jan 28, 2026
Merged

Issue 848 replace simple regression tests#903
kblricks merged 10 commits intoSharedDevelopmentfrom
issue-848-replace-simple-regression-tests

Conversation

@kblricks
Copy link

@kblricks kblricks commented Jan 21, 2026

Closes #848

Description

This PR adds a C++ file that compares two matrices instead of using the previous method of calling diff.
It also changes the tests.yml file to use the new compare_matrices testing method

Checklist (Mandatory for new features)

  • Added Documentation
  • Added Unit Tests

Testing (Mandatory for all changes)

  • GPU Test: test-medium-connected.xml Passed
  • GPU Test: test-large-long.xml Passed

@kblricks kblricks marked this pull request as ready for review January 21, 2026 09:31
Copilot AI review requested due to automatic review settings January 21, 2026 09:31
@kblricks kblricks self-assigned this Jan 21, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces the simple diff command used in regression testing with a custom C++ matrix comparison tool that provides more intelligent comparison of XML matrix files with floating-point tolerance.

Changes:

  • Implemented a new C++ tool (compare_matrices.cpp) that parses XML matrix files and compares them with configurable floating-point tolerance
  • Updated GitHub Actions workflow to compile and use the new comparison tool instead of diff
  • Applied formatting improvements to the workflow YAML file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
Testing/RegressionTesting/compare_matrices.cpp Complete rewrite of matrix comparison tool with XML parsing, metadata validation, and floating-point tolerance for value comparisons
.github/workflows/tests.yml Added build step for compare_matrices and replaced all diff commands with the new tool; applied formatting fixes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kblricks kblricks requested a review from stiber January 21, 2026 09:38
@kblricks kblricks linked an issue Jan 21, 2026 that may be closed by this pull request
Copy link
Contributor

@stiber stiber left a comment

Choose a reason for hiding this comment

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

Please see the comments for this review, including the copilot suggestions they reference (apparently, though I wrote these as responses to copilot comments, they don't link to those, so you'll need to scroll to the points in the code to see the copilot suggestions).

@stiber
Copy link
Contributor

stiber commented Jan 21, 2026

Do subsequent tests run if an earlier test fails? They used to, but it seems like this action has that fixed. Please confer with @stardriftfx on this.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kblricks kblricks requested a review from stiber January 25, 2026 04:50
Copy link
Contributor

@stiber stiber left a comment

Choose a reason for hiding this comment

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

Kyle, please respond to and/or resolve all comments in "Conversation" before requesting my review. Otherwise, I have no way of knowing if any of the matters raised have been addressed. Do the same for all copilot comments; many are at least worth considering.

@kblricks
Copy link
Author

Do subsequent tests run if an earlier test fails? They used to, but it seems like this action has that fixed. Please confer with @stardriftfx on this.

Subsequent tests should not run if an earlier test fails, after commit 5ece139 which merged the fix from SharedDevelopment to my branch

@kblricks kblricks requested a review from stiber January 28, 2026 08:02
Copy link
Contributor

@stiber stiber left a comment

Choose a reason for hiding this comment

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

Looks good!

@kblricks kblricks merged commit db153ad into SharedDevelopment Jan 28, 2026
2 checks passed
@kblricks kblricks deleted the issue-848-replace-simple-regression-tests branch January 28, 2026 18:12
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.

Replace simple regression tests with Python/C++ result comparisons

2 participants