Skip to content

Validate # HELP / # TYPE ordering in CI via prometheus_client parse #421

@mvillmow

Description

@mvillmow

The new unit tests verify ordering by line index, but there's no test that feeds the collect() output through a real Prometheus text-format parser (e.g. prometheus_client.exposition or the openmetrics Python library). Adding one integration-style test that round-trips through a parser would catch any subtle formatting violations (e.g. missing newline, stray whitespace) that the line-index approach can miss.

Follow-up from #155

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTesting finding

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions