)]}'
{"id":"openstack%2Fpython-observabilityclient~1018206","triplet_id":"openstack%2Fpython-observabilityclient~master~Id3df498078cb5ef28b639753ab9294640182bf67","project":"openstack/python-observabilityclient","branch":"master","hashtags":[],"change_id":"Id3df498078cb5ef28b639753ab9294640182bf67","subject":"Replace the masking regex in modify_query with a scanner","status":"NEW","created":"2026-12-01 12:20:56.000000000","updated":"2026-12-01 13:36:49.000000000","submit_type":"MERGE_IF_NECESSARY","mergeable":true,"submittable":false,"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"df8a585da1f247cc406d2c9bd0364df687aefcab","_number":1018206,"virtual_id_number":1018206,"owner":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},{"tag":"autogenerated:zuul:check","value":1,"date":"2026-12-01 13:36:49.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":1,"default_value":0,"optional":true},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"rejected":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"all":[{"value":-1,"date":"2026-12-01 12:21:04.000000000","permitted_voting_range":{"min":-1,"max":0},"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-12-01 13:36:49.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"2438b389f9aead7b84950523235e6680315a92a6","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"date":"2026-12-01 12:20:56.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"85999e423746479b582f65e004f82016afe56b81","author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"date":"2026-12-01 12:21:04.000000000","message":"Patch Set 1: Workflow-1","accounts_in_message":[],"_revision_number":1},{"id":"df8a585da1f247cc406d2c9bd0364df687aefcab","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-12-01 13:36:49.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/bce7dca1e6344cde9fa758b457835fbf\n\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/6de7684de1544357a88e9b1c60f59db8 : SUCCESS in 5m 21s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/a9efa4dbe88b4b699478d87de12ca301 : SUCCESS in 3m 51s\n- openstack-tox-py314 https://zuul.opendev.org/t/openstack/build/91df900d67fc409b82cb7fa4a0851465 : SUCCESS in 5m 26s\n- openstack-tox-py315 https://zuul.opendev.org/t/openstack/build/1aa89999de94414faec048a48d665310 : SUCCESS in 5m 35s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/b6283ad2cde34f1fb41bb62ec0d9860a : SUCCESS in 3m 41s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/0b302e532669435c96d435dd296be364 : SUCCESS in 3m 28s\n- telemetry-dsvm-integration https://zuul.opendev.org/t/openstack/build/e451a150f732473aa8d1a4eb7ff504f7 : SUCCESS in 53m 30s (non-voting)\n- telemetry-dsvm-integration-ipv6-only https://zuul.opendev.org/t/openstack/build/9fd4e3da35e54c9eb407b033d0776a4a : SUCCESS in 49m 40s (non-voting)\n- telemetry-dsvm-integration-centos-9s https://zuul.opendev.org/t/openstack/build/994b4b2ab232419a92feb2256239607b : SUCCESS in 34m 30s (non-voting)\n- telemetry-dsvm-integration-centos-9s-fips https://zuul.opendev.org/t/openstack/build/9a82db4bb4ec49c6b872ac23147821a0 : SUCCESS in 1h 15m 02s (non-voting)\n- observabilityclient-dsvm-functional https://zuul.opendev.org/t/openstack/build/f9cc9c2cb74d4b17828610545932b6d8 : SUCCESS in 19m 59s\n\nWarning:\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/openstack/devstack/playbooks/post.yaml for job telemetry-dsvm-integration-centos-9s-fips.  Add to preserve-home-paths if safe, or otherwise remove.\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/opendev/base-jobs/playbooks/base/post.yaml for job telemetry-dsvm-integration-centos-9s-fips.  Add to preserve-home-paths if safe, or otherwise remove.\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/opendev/base-jobs/playbooks/base/cleanup.yaml for job telemetry-dsvm-integration-centos-9s-fips.  Add to preserve-home-paths if safe, or otherwise remove.\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/opendev/base-jobs/playbooks/base/post-logs.yaml for job telemetry-dsvm-integration-centos-9s-fips.  Add to preserve-home-paths if safe, or otherwise remove.","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"f5b20336fcb6560691d5c3556705e1dc292f8843","revisions":{"f5b20336fcb6560691d5c3556705e1dc292f8843":{"kind":"REWORK","_number":1,"created":"2026-12-01 12:20:56.000000000","uploader":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"ref":"refs/changes/06/1018206/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-observabilityclient","ref":"refs/changes/06/1018206/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-observabilityclient refs/changes/06/1018206/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-observabilityclient refs/changes/06/1018206/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-observabilityclient refs/changes/06/1018206/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-observabilityclient refs/changes/06/1018206/1"}}},"commit":{"parents":[{"commit":"91b13bd2f1b9998965d2edebf75dab15957c6de0","subject":"Fix modify_query for __name__ matcher queries","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-observabilityclient/commit/91b13bd2f1b9998965d2edebf75dab15957c6de0"}]}],"author":{"name":"Daniel Pawlik","email":"dpawlik@redhat.com","date":"2026-12-01 12:17:26.000000000","tz":60},"committer":{"name":"Daniel Pawlik","email":"dpawlik@redhat.com","date":"2026-12-01 12:20:43.000000000","tz":60},"subject":"Replace the masking regex in modify_query with a scanner","message":"Replace the masking regex in modify_query with a scanner\n\nThe regex that blanks quoted strings and # comments was questioned\nin review of [1] as hard to read. Replace it with a small scanner\nthat applies the same rules step by step: a comment runs to the\nend of the line, a raw string has no escapes, and an unclosed\nstring runs to the end of the query.\n\nThe scanner keeps two behaviours the regex had by accident: a\nbackslash followed by a newline, or at the very end of the query,\nends the string match, and scanning goes on after the opening quote.\nBoth only happen in invalid PromQL.\n\nNo behaviour change: the masked output matches the regex on 700k\nrandom queries, and modify_query output matches the previous version\non 20k random queries.\n\n[1] https://review.opendev.org/c/openstack/python-observabilityclient/+/1017740\n\nAssisted-By: Claude Opus 5.5\nRelated-Bug: 2175029\nChange-Id: Id3df498078cb5ef28b639753ab9294640182bf67\nSigned-off-by: Daniel Pawlik \u003cdpawlik@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-observabilityclient/commit/f5b20336fcb6560691d5c3556705e1dc292f8843"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-observabilityclient/commit/f5b20336fcb6560691d5c3556705e1dc292f8843"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"OK","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY"},{"label":"Workflow","status":"MAY","applied_by":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"}}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Verified\u003dMAX","label:Verified\u003dMIN"],"atom_explanations":{"label:Verified\u003dMAX":"","label:Verified\u003dMIN":""}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Code-Review\u003dMAX","label:Code-Review\u003dMIN"],"atom_explanations":{"label:Code-Review\u003dMAX":"","label:Code-Review\u003dMIN":""}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":["label:Workflow\u003dMIN"],"failing_atoms":["label:Workflow\u003dMAX"],"atom_explanations":{"label:Workflow\u003dMAX":"","label:Workflow\u003dMIN":""}}}]}
