Skip to content

csv report errors#1803

Merged
SFJohnson24 merged 5 commits into
mainfrom
pos_csv
Jul 16, 2026
Merged

csv report errors#1803
SFJohnson24 merged 5 commits into
mainfrom
pos_csv

Conversation

@SFJohnson24

@SFJohnson24 SFJohnson24 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

fixes bug where errors were not reported on CSV and a successful execution versus an error execution looked identical

CORE-Report-2026-07-10T14-58-03.csv
CORE-Report-2026-07-10T15-13-33.csv

result.get("executionStatus")
== ExecutionStatus.EXECUTION_ERROR.value
):
for error in self._error_details(validation_result, result):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the _error_details() function is already called once per result in _generate_error_details() function during init (to build data_sheets["Issue_details"] and is now called here again for the same result. Could we compute it once and cache/resuse it instead of running it twice?

result.get("executionStatus")
== ExecutionStatus.EXECUTION_ERROR.value
):
for error in self._error_details(validation_result, result):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This loop also processes the EXECUTION_ERROR entries that already exist in the ISSUE_DETAILS, but we only skip re-adding them because their variables/attributes field happen to be "" so zip() produces nothing,. If this empty field behavior ever changes this will silently start double counting the execution errors in the csv.

@RamilCDISC RamilCDISC left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The PR resolves some csv report errors. The validation was done by:

  1. Reviewing the PR for any unwanted code or comments.
  2. Reviewing the PR in accordance with AC.
  3. Reviewing the PR for updated tests.
  4. Reviewing the attached csv reports.
  5. Ensuring all unit and regression testing pass.
  6. Ensuring results are coherent after update.
  7. Ensure the update made is not fragile and ensures proper working for edge cases.
  8. Ensure full integration in existing system.

@SFJohnson24
SFJohnson24 merged commit 7850d53 into main Jul 16, 2026
13 checks passed
@SFJohnson24
SFJohnson24 deleted the pos_csv branch July 16, 2026 14:04
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.

2 participants