Skip to content

Fix LibCI failure counter - #13851

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
OhadMeir:ci
Mar 17, 2025
Merged

Fix LibCI failure counter#13851
Nir-Az merged 1 commit into
realsenseai:developmentfrom
OhadMeir:ci

Conversation

@OhadMeir

Copy link
Copy Markdown
Contributor

Following PR#13817

LibCI counts failed tests number erroneously. Error counter should be handled via log module calls only.

@OhadMeir
OhadMeir requested a review from Nir-Az March 13, 2025 15:17
if test_wrapper_( test, configuration, repetition, retry, test.config.retries, serial_numbers ):
return True

log._n_errors += 1

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.

Will it still count errors w/o this change?

@OhadMeir OhadMeir Mar 17, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, errors are counted by the failed test calling log.e.
In this function there was a loop for the retries that "knew" that each retry will increase the log, so it decreased it back, and this line was supposed to add one to the counter for all retries. Previous PR removed the decrease (and made the log.e call only on last retry), but I did not remove this increase.

@Nir-Az
Nir-Az merged commit c1153f2 into realsenseai:development Mar 17, 2025
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