Allow using coordinator and exporter programatically#1867
Open
alextercete wants to merge 2 commits into
Open
Conversation
Print to stdout when the exporter and coordinator are ready. External programs can detect this and the coordinator's listening port. Signed-off-by: Alex Tercete <alex.tercete@arm.com> Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper Co-authored-by: Luke Hackwell <luke.hackwell@arm.com>
Signed-off-by: Alex Tercete <alex.tercete@arm.com> Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper Co-authored-by: Luke Hackwell <luke.hackwell@arm.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1867 +/- ##
========================================
+ Coverage 45.8% 46.0% +0.2%
========================================
Files 182 180 -2
Lines 14720 14462 -258
========================================
- Hits 6743 6654 -89
+ Misses 7977 7808 -169
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Emantor
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
We spin up a local coordinator and exporter for automated testing, and we want to be able to tell whether they're ready before running our tests. Also, we use port
0with the coordinator to let the kernel allocate a free port, so we need to know which port was actually used. So now you can do:And it will print to
stdout:We also fixed an issue when interrupting the coordinator/exporter (e.g.
Ctrl+c):Checklist