Only increment stats when the worker acknowledged the test#373
Only increment stats when the worker acknowledged the test#373kangze-jia merged 3 commits intomainfrom
Conversation
a9c8024 to
14cf9e8
Compare
b5df285 to
b1ea42b
Compare
…place - Record stats only when worker acknowledges; duplicate acks do not increment - Redis: record_stats_delta (HINCRBY); record_success returns true when ack'd or replaced - Stat correction when success replaces failure; real assertion count (test.assertions) in delta - Test helper: Requeue before Skip when both set; test_aggregation and integration expectations updated - Remove [stats] debug logging from Redis BuildRecord; test_redis_reporter assertions = 8
|
@kangze-jia How do we test this in an actual pipeline run? |
Good question. Here are my thoughts:
This will require some manual sampling across a few Buildkite builds though. |
I think I am trying to understand how we get these code changes into a test pipeline before we merge this |
Got it. I created a branch (trigger-ci-status-test) which hit my personal ci-queue branch by updating Gemfile.lock file (https://app.graphite.com/github/pr/shop/world/419165/Add-no-op-comment-to-trigger-CI-selective-tests%3B-include-Gemfile-changes) and scheduled a job to run that branch: https://buildkite.com/shopify/world-shopify-selective-tests/builds?branch=trigger-ci-status-test&page=7 I checked the log stats which look good to me. |
b1ea42b to
158f5a4
Compare
Only increment error stats when the worker acknowledged the test otherwise we end up with an incorrect counter.