Skip to content

Conversation

@wk9874
Copy link
Collaborator

@wk9874 wk9874 commented Sep 23, 2025

Fix incorrect metric name validation

Issue: #863

Python Version(s) Tested: 3.10

Operating System(s): Ubuntu

📝 Summary

Regex for metric key validation in the python API did not match that in the server (was missing + and parentheses). Updated to match server

🔍 Diagnosis

Bug identified when using ReMKiT connector and parsing variable names like e-e_odd_C3Il+2_h=2_harmonic_1

🔄 Changes

METRIC_KEY_REGEX updated to match server and log_metrics tests updated to include a metric name with all allowed characters

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.

@wk9874
Copy link
Collaborator Author

wk9874 commented Sep 23, 2025

@kzscisoft I will need a 2.2.1 python release with this fix (and maybe other bug fixes, TBD) included to allow for the ReMKiT connector work to progress

@kzscisoft
Copy link
Collaborator

@kzscisoft I will need a 2.2.1 python release with this fix (and maybe other bug fixes, TBD) included to allow for the ReMKiT connector work to progress

Are you sure that these names are allowed? I see unusual characters like >

@kzscisoft kzscisoft merged commit f875531 into dev Sep 24, 2025
20 checks passed
@kzscisoft kzscisoft deleted the wk9874/863-metric-name-validation branch September 24, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants