Skip to content

Harden TrendingTask test for smaller risk of leftovers in test QCDB - #2710

Merged
Barthelemy merged 1 commit into
AliceO2Group:masterfrom
knopers8:harden-trending-task-test
Nov 23, 2026
Merged

Barthelemy merged 1 commit into
AliceO2Group:masterfrom
knopers8:harden-trending-task-test

Conversation

@knopers8

Copy link
Copy Markdown
Collaborator

There were a few TrendingTask test leftovers in the test QCDB from last few months. While the root cause is unknown, hopefully the following changes improve the situation:

  • we create cleanTestObjects before storing the first object instead of after creating all of them
  • we catch exceptions in cleanTestObjects for better error reporting in case of a failed truncate and a crash due to an unhandled exception in the destructor.
  • we add additional REQUIRE checks before risking out-of-bound access, to avoid the test crashing and skipping the cleanup

Hopefully it fixes QC-1365

There were a few TrendingTask test leftovers in the test QCDB from last few months.
While the root cause is unknown, hopefully the following changes improve the situation:
- we create `cleanTestObjects` before storing the first object instead of after creating all of them
- we catch exceptions in `cleanTestObjects` for better error reporting in case of a failed `truncate` and a crash due to an unhandled exception in the destructor.
- we add additional REQUIRE checks before risking out-of-bound access, to avoid the test crashing and skipping the cleanup

Hopefully it fixes QC-1365

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

Thanks

@Barthelemy
Barthelemy merged commit e41694e into AliceO2Group:master Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants