Skip to content

54 bug update comprehensive result overwrites failure description instead of accumulating it upd#60

Merged
peterbarancek merged 3 commits into
devfrom
54-_BUG_UpdateComprehensiveResult_overwrites_failure_description_instead_of_accumulating_it_upd
Jun 12, 2026
Merged

54 bug update comprehensive result overwrites failure description instead of accumulating it upd#60
peterbarancek merged 3 commits into
devfrom
54-_BUG_UpdateComprehensiveResult_overwrites_failure_description_instead_of_accumulating_it_upd

Conversation

@peterbarancek

Copy link
Copy Markdown
Collaborator

No description provided.

…scription_instead_of_accumulating_it_upd' of https://github.com/Inxton/TcOpen into 54-_BUG_UpdateComprehensiveResult_overwrites_failure_description_instead_of_accumulating_it_upd
Copilot AI review requested due to automatic review settings June 12, 2026 08:45
…failure_description_instead_of_accumulating_it_upd

Copilot AI 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.

Pull request overview

This PR updates how TcoComprehensiveResult failure descriptions and error codes are accumulated so they don’t get overwritten when an inspector (or inspection group) reports failure/inconclusive results.

Changes:

  • Adjusted TcoInspector.UpdateComprehensiveResult to accumulate descriptions into the in/out result instead of restoring and rewriting from the original snapshot.
  • Simplified UpdateDescriptions in both TcoInspector and TcoInspectionGroup to append onto the current inoResult values (removing the extra inOriginalResult input).
  • Updated TcoInspectionGroup.UpdateComprehensiveResult logic to combine the original overall result with the current run result when _done is reached.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspector/TcoInspector.TcPOU Stops resetting the overall result on fail/inconclusive and appends failure/error info into the current comprehensive result.
src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU Refactors failure/error aggregation in group result computation, including concatenation with the original overall result at completion.

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

Comment on lines +551 to +552
_refOverallResult.Failures :=concat( _originalOverallResult.Failures,_refOverallResult.Failures);
_refOverallResult.ErrorCodes :=concat( _originalOverallResult.ErrorCodes,_refOverallResult.ErrorCodes);
@peterbarancek peterbarancek merged commit f5c5bf3 into dev Jun 12, 2026
2 checks passed
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