fix: floor provisioner job queue wait metric by zedkipp · Pull Request #22184 · coder/coder
zedkipp
marked this pull request as ready for review
After a PostgreSQL round-trip, job timestamps lose their monotonic clock component, making the subtraction susceptible to wall-clock adjustments producing a small negative delta. Floor at 1ms since a zero or negative queue wait is meaningless. Fixes TestProvisionerJobQueueWaitMetric flakes where small negative values (~ -2ms) are observed.
zedkipp
deleted the
zedkipp/job-queue-negative
branch
zedkipp
changed the title
fix: floor provisioner job queue wait metric at zero
fix: floor provisioner job queue wait metric
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters