Skip to content

Conversation

@Kamoppl
Copy link

@Kamoppl Kamoppl commented Oct 2, 2025

No description provided.

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
dirty_ratio_test_threshold = random.randint(0, 100)

with TestRun.step("Disable cache cleaning"):
cache.set_seq_cutoff_policy(SeqCutOffPolicy.never)
Copy link
Contributor

Choose a reason for hiding this comment

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

Cutoff has been set to never in :322

.read_write(ReadWrite.randwrite)
)

dirty_ratio_test_threshold = random.randint(0, 100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Picking a random threshold doesn't guarante that the corner cases with threshold=0 and threshold=100 are tested. Instead of 10 random iterations I suggest 3 predefined cases with both corner cases and and one value from the middle of the range.

Copy link
Contributor

Choose a reason for hiding this comment

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

There could also be another testcase to check the behavior when decreasing and increasing the threshold when the flush is in progress

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