update snapshot count function#216
update snapshot count function#216Ahmed-Elsaka-JC wants to merge 5 commits intoeclipse-score:mainfrom
Conversation
- update snapshot count function Fixes eclipse-score#192
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
2bbfea7 to
f87ae84
Compare
|
The created documentation from the pull request is available at: docu-html |
update tests Fixes eclipse-score#192
9fdf6cf to
b9743e1
Compare
There was a problem hiding this comment.
Do not modify test logic.
Either expand list of xfails or (better) deal with other issue first #108
There was a problem hiding this comment.
@arkjedrz current logic is not correct for scenarios we have like snapshot_max_count = 0 or 3.
so may i ask why we are not allowed to change test logic ?
There was a problem hiding this comment.
Those tests expect snapshot_max_count to be parametrizable, and number of existing snapshots is compared to the number of max number of snapshots allowed.
| "snapshot_max_count": snapshot_max_count, | ||
| }, | ||
| "count": 1, | ||
| "count": snapshot_max_count, |
There was a problem hiding this comment.
This test is called TestSnapshotCountFirstFlush. It should always try to perform a single flush operation.
Results shall be as following:
snapshot_countmust always == 1 forsnapshot_max_count>= 1.snapshot_countmust always == 0 forsnapshot_max_count== 0.
This cannot be done correctly without #108 fixed.
| "snapshot_max_count": snapshot_max_count, | ||
| }, | ||
| "count": snapshot_max_count + 1, | ||
| "count": snapshot_max_count, |
There was a problem hiding this comment.
This test is called TestSnapshotCountFull and the description states: "Checks that the snapshot count increases with each flush, up to the maximum allowed count.".
This test is to verify that snapshots pool saturates at the point specified by snapshot_max_count. It tries to flush one time more than there are snapshots allowed in the system - that's on purpose.
If You're seeing 2 snapshots were found when snapshot_max_count = 1 - it means that max value was not respected.
Again, this test is not possible to perform due to lack of #108
Signed-off-by: Ahmed Elsaka <ahmed.elsaka@bmw.de>
Signed-off-by: Ahmed Elsaka <ahmed.elsaka@bmw.de>
There was a problem hiding this comment.
Those tests expect snapshot_max_count to be parametrizable, and number of existing snapshots is compared to the number of max number of snapshots allowed.
| "snapshot_max_count": snapshot_max_count, | ||
| }, | ||
| "count": 1, | ||
| "count": snapshot_max_count, |
There was a problem hiding this comment.
This test is called TestSnapshotCountFirstFlush. It should always try to perform a single flush operation.
Results shall be as following:
snapshot_countmust always == 1 forsnapshot_max_count>= 1.snapshot_countmust always == 0 forsnapshot_max_count== 0.
This cannot be done correctly without #108 fixed.
| "snapshot_max_count": snapshot_max_count, | ||
| }, | ||
| "count": snapshot_max_count + 1, | ||
| "count": snapshot_max_count, |
There was a problem hiding this comment.
This test is called TestSnapshotCountFull and the description states: "Checks that the snapshot count increases with each flush, up to the maximum allowed count.".
This test is to verify that snapshots pool saturates at the point specified by snapshot_max_count. It tries to flush one time more than there are snapshots allowed in the system - that's on purpose.
If You're seeing 2 snapshots were found when snapshot_max_count = 1 - it means that max value was not respected.
Again, this test is not possible to perform due to lack of #108
Fixes #192