Add network_uuid filter to Grafana URLs for matrix job differentiation #4503
+29
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why this should be merged
Matrix jobs sharing the same workflow and job ID produce Grafana URLs that aggregate metrics across all jobs, conflating results from distinct block ranges. Each job already exports a unique
network_uuidlabel, but it wasn't included in the Grafana URL filters.How this works
UUID lifecycle:
c-chain-reexecution-benchmarkaction creates UUID viauuidgenNETWORK_UUIDenv var to all stepsgetOrCreateNetworkUUID()reads env var instead of generating new UUIDoutput-metrics-url.shappends&var-filter=network_uuid|=|{UUID}when setKey changes:
vm_reexecute_test.go: AddedgetOrCreateNetworkUUID()helper, moved UUID init to TestMainoutput-metrics-url.sh: Conditional network_uuid filter in URL constructionrun-monitored-tmpnet-cmd/action.yml: Newnetwork_uuidinput parameterc-chain-reexecution-benchmark/action.yml: Generate and propagate UUIDResult: Each matrix job gets isolated metrics in Grafana, no more cross-job aggregation.
How this was tested
Need to be documented in RELEASES.md?
No. Internal CI/metrics infrastructure change.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.