Skip to content

Metrics Cache test doesn't run on Postgres #16710

@DanielleMaywood

Description

@DanielleMaywood

Currently, coderd/metricscache/metricscache_test.go runs tests against the dbmem implementation only. This is an issue as the implementation of GetTemplateAverageBuildTime has diverged between dbmem and Postgres.

The divergence occurred here #14576, when dbmem moved to a continuous percentile instead of a discrete percentile. It is worth noting that the original dbmem implementation also exhibited slightly different behavior than Postgres as it calculated the discrete percentile slightly differently, although this likely wasn't spotted as the test wasn't ran on Postgres.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy