Awesome Reviewers

Tests should be deterministic, isolated, and assert the intended behavior (not just a coincidence or shared prior state). Concretely:

Example (state reset + independent setup):

add_block_preprocessor(sub {
    my ($block) = @_;

    # Ensure Redis-backed tests start from a known state
    require("lib.test_redis").flush_all();

    # Optionally set a deterministic default request
    if (!$block->request) {
        $block->set_value("request", "GET /t");
    }
});

Example (avoid shared-state/vacuous “tail -n 1”):

Apply this standard when adding or modifying tests in the Testing category to reduce CI flakiness and increase confidence in coverage.