Skip to content

perf: avoid allocating a mapping lambda on every labelValues() call #964

perf: avoid allocating a mapping lambda on every labelValues() call

perf: avoid allocating a mapping lambda on every labelValues() call #964

---
name: JMX Exporter Compatibility
on:
pull_request:
workflow_dispatch:
inputs:
repository:
description: JMX Exporter repository to test, in owner/name form
required: false
default: prometheus/jmx_exporter
ref:
description: JMX Exporter branch, tag, or commit to test
required: true
permissions: {}
jobs:
jmx-exporter-compatibility:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: v2026.9.7
sha256: d479d7c0df37652ddfd6d1887ef92a67a17effc7ec4ac612f46845099f814c6f
- name: Cache local Maven repository
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Run JMX Exporter compatibility tests
env:
JMX_EXPORTER_REPOSITORY: ${{ inputs.repository || 'prometheus/jmx_exporter' }}
JMX_EXPORTER_REF: ${{ inputs.ref }}
run: mise run jmx-exporter:compat-test