Skip to content

Exporter error propagation#1886

Open
asher-pem-arm wants to merge 4 commits into
labgrid-project:masterfrom
ARM-software:exporter-error-propagation
Open

Exporter error propagation#1886
asher-pem-arm wants to merge 4 commits into
labgrid-project:masterfrom
ARM-software:exporter-error-propagation

Conversation

@asher-pem-arm

Copy link
Copy Markdown

Forward acquire/release failure reasons through the coordinator to the client.
This makes coordinator and exporter failures visible to users instead of returning only a generic lock/acquire failure.
The MR is split into focused commits:

report coordinator-side acquire/release failures to the client
preserve exporter failure reasons
report exporter command timeouts
reduce exported resource details in user-facing errors

Without this, it is hard to tell whether a failure happened in the client, coordinator, exporter.

alextercete and others added 4 commits June 3, 2026 18:08
Replace boolean success/failure handling in the resource acquire and release
helpers with CoordinatorError exceptions. This lets AcquirePlace and
ReleasePlace return coordinator-side failure reasons to the client.

This makes coordinator-side acquire/release failures actionable for users
instead of only reporting a generic failed operation.

Signed-off-by: Alex Tercete <alex.tercete@arm.com>
Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper
Co-authored-by: Idan Saadon <idan.saadon@arm.com>
Signed-off-by: Alex Tercete <alex.tercete@arm.com>
Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper
Co-authored-by: Idan Saadon <idan.saadon@arm.com>
Convert exporter acquire/release command timeouts into ExporterError failures.
This returns a clear timeout reason to the client instead of relying on an empty TimeoutError message.

Signed-off-by: Alex Tercete <alex.tercete@arm.com>
Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper
Co-authored-by: Idan Saadon <idan.saadon@arm.com>
Avoid including the full resource representation in exporter acquire/release failure messages returned to the client.
The exporter-provided reason is enough for users, while the full resource details can be noisy and may expose more information than needed.

Signed-off-by: Alex Tercete <alex.tercete@arm.com>
Reviewed-by: Alex Tercete <alex.tercete@arm.com> # gatekeeper
Co-authored-by: Idan Saadon <idan.saadon@arm.com>

@Emantor Emantor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second commit message will need an actual message instead of the title line and it may be beneficial to squash some commits.

I would like some test infrastructure for these new changes, but this requires rework of the coordinator/exporter/client testing in the testsuite first, which is out of scope for this PR.

Implementation wise this looks good and should improve our error reporting to the user.

@asher-pem-arm

Copy link
Copy Markdown
Author

@Emantor happy to squash down to one commit if you think fits better?

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